VeriKQL by Kaushik Saha

T1491 Defacement

Impacton attack.mitre.org

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

How MITRE detects it

DET0238 Defacement via File and Web Content Modification Across Platforms

AN0662 Windows

Adversary modifies website or application-hosted content via unauthorized file changes or script injections, often by exploiting web servers or CMS access.

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.

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.

WinEventLog:ApplicationUnexpected web application errors or CMS logs showing modification to index.html, default.aspx, or other public-facing files
  • Windows event logs (Azure Monitor Agent) → Event
    Event | where EventLog in ("Application")
  • Windows Forwarded Events → WindowsEvent
    WindowsEvent | where Channel in ("Application")

AN0663 Linux

Adversary gains shell access or uploads a malicious script to deface hosted web content in Nginx, Apache, or other services.

MITRE log sourceIn Microsoft Sentinel
auditd:SYSCALLwriteNot mapped to Sentinel yet.
apache:access_logUnusual HTTP POST or PUT requests to paths such as '/uploads/', '/admin/', or CMS plugin foldersNot mapped to Sentinel yet.
linux:syslogUnauthorized sudo or shell access, especially leading to file changes in /var/www or /srv/httpNot mapped to Sentinel yet.

AN0664 macOS

Adversary modifies internal or external site content through manipulated application bundles, hosted content, or web server configs.

MITRE log sourceIn Microsoft Sentinel
macos:unifiedlogExecution of unexpected terminal or web scripts modifying /Library/WebServer/DocumentsNot mapped to Sentinel yet.
macos:unifiedlogFile creation or overwrite in common web-hosting foldersNot mapped to Sentinel yet.

AN0665 ESXi

Adversary defaces internal VM-hosted portals or web UIs by modifying static content on datastore-mounted paths.

MITRE log sourceIn Microsoft Sentinel
esxi:vmkernelUnauthorized file modifications within datastore volumes via shell access or vCLINot mapped to Sentinel yet.

AN0666 IaaS

Adversary uses compromised instance credentials or web application access to deface content hosted in S3 buckets, Azure Blob Storage, or GCP Buckets.

MITRE log sourceIn Microsoft Sentinel
CloudTrail:PutObjectPutObjectNot mapped to Sentinel yet.
AWS:CloudTrailGetObject, CopyObjectNot mapped to Sentinel yet.

Content Hub rules tagged with it (8)

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

How the Content Hub rules for T1491 are built: their tables, filters, joins, schedules and windows.

In Sigma rules

4 SigmaHQ community rules name it or one of its sub-techniques in their tags.

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

Sub-techniques

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.