Process started from an image with a document or image extension
AN0630 asks for files carrying a harmless extension that are nonetheless executed as binaries. Windows loads a portable executable by its header and not by its name, so a payload saved as invoice.pdf or logo.jpg runs perfectly well when something calls CreateProcess on it — and when it does, Sysmon EventID 1 records that full path in Image. This rule is exactly that single observation: a process whose own image file ends in an extension that is never used for executable content. The extension list is authored here from MITRE's benign_extensions knob, populated with the document and image types the technique description names. What it cannot see is worth stating plainly. The magic-byte comparison the analytic centres on (MITRE's MagicByteMismatchThreshold knob) has no carrier at all — neither Sysmon EventID 1 nor EventID 11 records file headers — so this rule infers the masquerade from the extension alone and would equally miss a payload named with no extension. It also misses the two most common execution paths for a masqueraded file: renaming it back to .exe before running it, and handing it to a loader such as rundll32.exe, where Image is the loader and the masqueraded name appears only inside CommandLine, mixed in with every benign command line that mentions a document. Prerequisite: Sysmon is not present in a default install, and its ProcessCreate section must not be filtered to a binary allowlist, or this rule returns zero rows — which reads as quiet when it means blind. UNVERIFIED AS AUTHORED — derived from MITRE ATT&CK DET0226, 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.
DeviceProcessEvents| where (FolderPath endswith ".jpg" or FolderPath endswith ".jpeg" or FolderPath endswith ".png" or FolderPath endswith ".gif" or FolderPath endswith ".bmp" or FolderPath endswith ".txt" or FolderPath endswith ".log" or FolderPath endswith ".pdf" or FolderPath endswith ".rtf" or FolderPath endswith ".doc" or FolderPath endswith ".docx" or FolderPath endswith ".xls" or FolderPath endswith ".xlsx" or FolderPath endswith ".csv")
Splunk · SPL
Run this as a search.
index=* (Image="*.jpg" OR Image="*.jpeg" OR Image="*.png" OR Image="*.gif" OR Image="*.bmp" OR Image="*.txt" OR Image="*.log" OR Image="*.pdf" OR Image="*.rtf" OR Image="*.doc" OR Image="*.docx" OR Image="*.xls" OR Image="*.xlsx" OR Image="*.csv")Elastic · ES|QL
Run this as a search.
FROM logs-*| WHERE (TO_LOWER(process.executable) LIKE "*.jpg" OR TO_LOWER(process.executable) LIKE "*.jpeg" OR TO_LOWER(process.executable) LIKE "*.png" OR TO_LOWER(process.executable) LIKE "*.gif" OR TO_LOWER(process.executable) LIKE "*.bmp" OR TO_LOWER(process.executable) LIKE "*.txt" OR TO_LOWER(process.executable) LIKE "*.log" OR TO_LOWER(process.executable) LIKE "*.pdf" OR TO_LOWER(process.executable) LIKE "*.rtf" OR TO_LOWER(process.executable) LIKE "*.doc" OR TO_LOWER(process.executable) LIKE "*.docx" OR TO_LOWER(process.executable) LIKE "*.xls" OR TO_LOWER(process.executable) LIKE "*.xlsx" OR TO_LOWER(process.executable) LIKE "*.csv")
Wazuh · XML rule
Deploy to your manager — this is a rule, not a search.
<group name="sigma,windows,process_creation,"> <!-- Rule ids must be unique on your manager; 100000+ is the user range. --> <rule id="100000" level="12"> <!-- Set <if_sid> to the decoder/base rule for windows so this only evaluates relevant events. --> <field name="Image" type="pcre2">(?i)(\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$|\.txt$|\.log$|\.pdf$|\.rtf$|\.doc$|\.docx$|\.xls$|\.xlsx$|\.csv$)</field> <description>Process started from an image with a document or image extension</description> <mitre> <id>T1036.008</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.