File written to a wallpaper, logon background or intranet web root
Internal defacement on Windows lands as a file write: a new wallpaper, a replaced logon-screen background, or altered content under an intranet web root. This rule matches Sysmon File Creation — which also fires when an existing file is overwritten — on `TargetFilename` under the locations MITRE's FilePathPattern knob names, plus the two logon-branding directories that carry the same behaviour. Path is the only field the analytic actually constrains; MITRE's other knobs, TimeWindow (off-hours) and UserContext (which account is writing), are time and baseline conditions that Sigma cannot hold, so they are left to tuning rather than approximated with fields that would not mean what they appear to. UNVERIFIED AS AUTHORED — derived from MITRE ATT&CK DET0082, not hand-written and not tested by its author. Any lab result is on this rule's own page.Full descriptionShow less
The detection
The 4 SIEM queries below are previews produced by Siemphony’s own translator, not pySigma, and none has been executed against a real backend — review before you deploy.
detection.yml
Sentinel · KQL
Run this as a search.
DeviceFileEvents| where (FolderPath contains "\\Windows\\Web\\Wallpaper\\" or FolderPath contains "\\Windows\\Web\\Screen\\" or FolderPath contains "\\Windows\\Web\\4K\\" or FolderPath contains "\\AppData\\Roaming\\Microsoft\\Windows\\Themes\\" or FolderPath contains "\\System32\\oobe\\info\\backgrounds\\" or FolderPath contains "\\inetpub\\wwwroot\\")
Splunk · SPL
Run this as a search.
index=* (TargetFilename="*\\Windows\\Web\\Wallpaper\\*" OR TargetFilename="*\\Windows\\Web\\Screen\\*" OR TargetFilename="*\\Windows\\Web\\4K\\*" OR TargetFilename="*\\AppData\\Roaming\\Microsoft\\Windows\\Themes\\*" OR TargetFilename="*\\System32\\oobe\\info\\backgrounds\\*" OR TargetFilename="*\\inetpub\\wwwroot\\*")Elastic · ES|QL
Run this as a search.
FROM logs-*| WHERE (TO_LOWER(file.path) LIKE "*\\\\windows\\\\web\\\\wallpaper\\\\*" OR TO_LOWER(file.path) LIKE "*\\\\windows\\\\web\\\\screen\\\\*" OR TO_LOWER(file.path) LIKE "*\\\\windows\\\\web\\\\4k\\\\*" OR TO_LOWER(file.path) LIKE "*\\\\appdata\\\\roaming\\\\microsoft\\\\windows\\\\themes\\\\*" OR TO_LOWER(file.path) LIKE "*\\\\system32\\\\oobe\\\\info\\\\backgrounds\\\\*" OR TO_LOWER(file.path) LIKE "*\\\\inetpub\\\\wwwroot\\\\*")
Wazuh · XML rule
Deploy to your manager — this is a rule, not a search.
<group name="sigma,windows,file_event,"> <!-- Rule ids must be unique on your manager; 100000+ is the user range. --> <rule id="100000" level="7"> <!-- Set <if_sid> to the decoder/base rule for windows so this only evaluates relevant events. --> <field name="TargetFilename" type="pcre2">(?i)(\\Windows\\Web\\Wallpaper\\|\\Windows\\Web\\Screen\\|\\Windows\\Web\\4K\\|\\AppData\\Roaming\\Microsoft\\Windows\\Themes\\|\\System32\\oobe\\info\\backgrounds\\|\\inetpub\\wwwroot\\)</field> <description>File written to a wallpaper, logon background or intranet web root</description> <mitre> <id>T1491.001</id> </mitre> </rule></group>
Verdicts · reactions · comments
Community
Verdicts from engineers who actually deployed it, and the conversation around it.
Nobody has run this in a real environment and said what happened.
Verdicts from engineers who deployed it
0 castNo verdicts reported yet. The first one is worth more than the tenth — say what you ran it against.
Log in to report a verdict.
Log in to join the discussion.
No comments yet. Someone who deploys this will have something to say about it.