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
title: DLL loaded from a temp, roaming or UNC path without a valid signatureid: 3f695c6a-38b9-4653-b059-74daf2242d98status: experimentaldescription: | 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.references: - https://attack.mitre.org/techniques/T1129 - https://attack.mitre.org/detectionstrategies/DET0018author: Siemphony pipeline (machine-derived from MITRE ATT&CK v19.2)date: 2026-08-16tags: - attack.execution - attack.t1129logsource: category: image_load product: windowsdetection: selection_path: ImageLoaded|contains: - '\AppData\Local\Temp\' - '\AppData\Roaming\' - '\Windows\Temp\' - '\Users\Public\' - '\ProgramData\' # Two literal backslashes — the prefix of a UNC path such as \\host\share\x.dll - '\\\\' filter_valid_signature: SignatureStatus: 'Valid' condition: selection_path and not filter_valid_signaturefalsepositives: - "Software installers and updaters that stage their payload DLLs in %TEMP% or %ProgramData% and load them before the signing catalogue is registered, so Sysmon reports SignatureStatus as Unavailable rather than Valid. MITRE's RareSignerThreshold knob is the intended place to record which publishers a given estate expects to see loading from those paths." - "Line-of-business and in-house applications deployed to %APPDATA% or run from a file share, which load their own unsigned helper DLLs on every start. These generate a steady, per-host-identical stream rather than a one-off load." - "Development and build machines, where compilers, test runners and package managers load freshly produced unsigned DLLs out of temp directories continuously." - "Anti-malware, EDR and telemetry agents whose signature status is reported as Unavailable because the catalogue file is not readable at load time; the loading Image is a fixed agent binary and can be excluded by path."level: mediumSentinel · 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.