DLL loaded from a temp, roaming or UNC path without a valid signature
MITRE's Windows analytic for Shared Modules describes a process loading a DLL from a user-writable, temp or UNC location, or from an unsigned/invalid signer, shortly before or after that DLL is written to disk and the loading process beacons out. Only the module load itself is a single event, so this rule matches Sysmon Module Load where `ImageLoaded` sits under one of the paths named by MITRE's SuspiciousPathRegex knob (%TEMP%, %APPDATA%, \\server\share) and the signature is anything other than Valid — the UnsignedOnly knob turned into logic. The file-write and network legs of the chain need a join across three log sources and a timer, which Sigma cannot express, so they are deliberately absent rather than faked with invented fields. UNVERIFIED AS AUTHORED — derived from MITRE ATT&CK DET0018, 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.
DeviceImageLoadEvents| where ((FolderPath contains "\\AppData\\Local\\Temp\\" or FolderPath contains "\\AppData\\Roaming\\" or FolderPath contains "\\Windows\\Temp\\" or FolderPath contains "\\Users\\Public\\" or FolderPath contains "\\ProgramData\\" or FolderPath contains "\\\\") and not (SignatureStatus =~ "Valid"))
Splunk · SPL
Run this as a search.
index=* ((ImageLoaded="*\\AppData\\Local\\Temp\\*" OR ImageLoaded="*\\AppData\\Roaming\\*" OR ImageLoaded="*\\Windows\\Temp\\*" OR ImageLoaded="*\\Users\\Public\\*" OR ImageLoaded="*\\ProgramData\\*" OR ImageLoaded="*\\\\*") AND NOT (SignatureStatus="Valid"))Elastic · ES|QL
Run this as a search.
FROM logs-*| WHERE ((TO_LOWER(file.path) LIKE "*\\\\appdata\\\\local\\\\temp\\\\*" OR TO_LOWER(file.path) LIKE "*\\\\appdata\\\\roaming\\\\*" OR TO_LOWER(file.path) LIKE "*\\\\windows\\\\temp\\\\*" OR TO_LOWER(file.path) LIKE "*\\\\users\\\\public\\\\*" OR TO_LOWER(file.path) LIKE "*\\\\programdata\\\\*" OR TO_LOWER(file.path) LIKE "*\\\\\\\\*") AND NOT (TO_LOWER(file.code_signature.status) == "valid"))
Wazuh · XML rule
Deploy to your manager — this is a rule, not a search.
<group name="sigma,windows,image_load,"> <!-- 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="ImageLoaded" type="pcre2">(?i)(\\AppData\\Local\\Temp\\|\\AppData\\Roaming\\|\\Windows\\Temp\\|\\Users\\Public\\|\\ProgramData\\|\\\\)</field> <field name="SignatureStatus" negate="yes" type="pcre2">(?i)^Valid$</field> <description>DLL loaded from a temp, roaming or UNC path without a valid signature</description> <mitre> <id>T1129</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.