VeriKQL by Kaushik Saha

T1491.002 External Defacement

Impacton attack.mitre.org

ATT&CK Enterprise 20.0 · 20.1 released, update in review

How MITRE detects it

DET0590 Behavioral Detection of External Website Defacement across Platforms

AN1622 Windows

Adversary modifies externally-facing web content by accessing and overwriting hosted HTML/JS/CSS files, typically following web shell deployment, credential abuse, or exploitation of web application vulnerabilities.

MITRE log sourceIn Microsoft Sentinel
WinEventLog:SecurityEventCode=4663, 4670, 4656
  • Windows Security Events via AMA → SecurityEvent
    SecurityEvent | where EventID in (4663, 4670, 4656)
  • Security Events via Legacy Agent → SecurityEvent
    SecurityEvent | where EventID in (4663, 4670, 4656)
  • Windows Forwarded Events → WindowsEvent
    WindowsEvent | where Channel == "Security" | where EventID in (4663, 4670, 4656)

The same events land in SecurityEvent (Windows Security Events connectors) or WindowsEvent (Windows Event Forwarding); many built-in rules read SecurityEvent only.

NSM:ConnectionsUnusual POST requests to admin or upload endpointsNot mapped to Sentinel yet.
WinEventLog:SysmonEventCode=1
  • Windows event logs (Azure Monitor Agent) → Event
    Event | where Source == "Microsoft-Windows-Sysmon" | where EventID in (1)
  • Windows Forwarded Events → WindowsEvent
    WindowsEvent | where Provider == "Microsoft-Windows-Sysmon" | where EventID in (1)

Sysmon has no dedicated Sentinel connector: it is collected as a Windows event log into Event or WindowsEvent.

AN1623 Linux

Adversary compromises a Linux-based web server and modifies hosted web files by exploiting upload vulnerabilities, remote code execution, or replacing index.html via SSH/webshell.

MITRE log sourceIn Microsoft Sentinel
auditd:SYSCALLopen/write syscalls targeting web directory filesNot mapped to Sentinel yet.
NSM:ConnectionsSuccessful sudo or ssh from unknown IPsNot mapped to Sentinel yet.
NSM:FlowSuspicious POSTs to upload endpointsNot mapped to Sentinel yet.

AN1624 macOS

Adversary modifies web-facing content on macOS via web development environments like MAMP or misconfigured Apache instances, typically with access to the hosting user account or via persistence tools.

MITRE log sourceIn Microsoft Sentinel
macos:unifiedlogTerminal/Editor processes modifying web folderNot mapped to Sentinel yet.
macos:unifiedlogloginwindow or sshd events with external IPNot mapped to Sentinel yet.

AN1625 IaaS

Adversary modifies content in cloud-hosted websites (e.g., AWS S3-backed, Azure Blob-hosted sites) by gaining access to management consoles or APIs and uploading altered HTML/JS files.

MITRE log sourceIn Microsoft Sentinel
AWS:CloudTrailPutObjectNot mapped to Sentinel yet.
AWS:CloudTrailListBucketsNot mapped to Sentinel yet.
AWS:CloudTrailGetObject, CopyObjectNot mapped to Sentinel yet.

Content Hub rules tagged with it (0)

No Content Hub rule is tagged with this technique.

Rules tagged with this technique (or a sub-technique) in their metadata. Whether one fits your connectors is the coverage view (M2).

In Sigma rules

No SigmaHQ rule names it in their tags outright.

Community rules, not Microsoft's, and not checked by VeriKQL (Sigma is not KQL). From SigmaHQ/sigma at f083329, under the Detection Rule License (DRL) 1.1; each rule is credited to its author.

Mitigations

MITRE ATT&CK® is a registered trademark of The MITRE Corporation. VeriKQL is not affiliated with or endorsed by MITRE. ATT&CK data © The MITRE Corporation, used under its terms of use.