Native API DLL loaded from outside the system directories
T1106 is defined by invoking the native API directly, and a syscall stub executing inside a process emits no record in any log source Sigma can address — so this rule takes the precursor AN1465 actually names and nothing beyond it: a module load of `ntdll.dll`, `kernel32.dll` or `kernelbase.dll` from a path that is not one of the directories Windows serves these modules from. Note what such an event is and is not: all three are KnownDLLs, already mapped into every process before user code runs, so a LoadLibrary against a private copy resolves by base name to the module already present and maps nothing. What produces this event is an image-section map of an on-disk copy — NtCreateSection with SEC_IMAGE plus NtMapViewOfSection, the pattern unhooking tooling uses to obtain a clean export table — which does drive the image-load notify routine. An implant that reads the file and maps the PE into RW memory itself remains invisible here. The module list is MITRE's `DllName` knob populated with the three low-level providers, and the path filter carries the entire signal, so it is anchored with startswith rather than contains: a contains filter would be satisfied by any attacker-created directory whose path merely embeds `\Windows\System32\`. It assumes Windows on C:, and it requires Sysmon EID 7 with ImageLoad enabled and these three modules not filtered out — ImageLoad is the most expensive Sysmon event class, and the widely copied configurations ship an include list that does not name them, so a quiet result usually means the events were never generated. UNVERIFIED — derived from MITRE ATT&CK DET0529 and never executed against logs.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 endswith "\\ntdll.dll" or FolderPath endswith "\\kernel32.dll" or FolderPath endswith "\\kernelbase.dll") and not ((FolderPath startswith "C:\\Windows\\System32\\" or FolderPath startswith "C:\\Windows\\SysWOW64\\" or FolderPath startswith "C:\\Windows\\WinSxS\\" or FolderPath startswith "C:\\Windows\\SyChpe32\\" or FolderPath startswith "C:\\Windows\\SysArm32\\")))
Splunk · SPL
Run this as a search.
index=* ((ImageLoaded="*\\ntdll.dll" OR ImageLoaded="*\\kernel32.dll" OR ImageLoaded="*\\kernelbase.dll") AND NOT ((ImageLoaded="C:\\Windows\\System32\\*" OR ImageLoaded="C:\\Windows\\SysWOW64\\*" OR ImageLoaded="C:\\Windows\\WinSxS\\*" OR ImageLoaded="C:\\Windows\\SyChpe32\\*" OR ImageLoaded="C:\\Windows\\SysArm32\\*")))Elastic · ES|QL
Run this as a search.
FROM logs-*| WHERE ((TO_LOWER(file.path) LIKE "*\\\\ntdll.dll" OR TO_LOWER(file.path) LIKE "*\\\\kernel32.dll" OR TO_LOWER(file.path) LIKE "*\\\\kernelbase.dll") AND NOT ((TO_LOWER(file.path) LIKE "c:\\\\windows\\\\system32\\\\*" OR TO_LOWER(file.path) LIKE "c:\\\\windows\\\\syswow64\\\\*" OR TO_LOWER(file.path) LIKE "c:\\\\windows\\\\winsxs\\\\*" OR TO_LOWER(file.path) LIKE "c:\\\\windows\\\\sychpe32\\\\*" OR TO_LOWER(file.path) LIKE "c:\\\\windows\\\\sysarm32\\\\*")))
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)(\\ntdll\.dll$|\\kernel32\.dll$|\\kernelbase\.dll$)</field> <field name="ImageLoaded" negate="yes" type="pcre2">(?i)(^C:\\Windows\\System32\\|^C:\\Windows\\SysWOW64\\|^C:\\Windows\\WinSxS\\|^C:\\Windows\\SyChpe32\\|^C:\\Windows\\SysArm32\\)</field> <description>Native API DLL loaded from outside the system directories</description> <mitre> <id>T1106</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.