AppInit DLL registry values set for system-wide DLL injection
Matches a write to the AppInit_DLLs value, which user32.dll loads into every process that links it — the registry half of AN1536. The value lives under `...\Microsoft\Windows NT\CurrentVersion\Windows`, where the final `Windows` is a subkey and AppInit_DLLs is a value name inside it, so a Sysmon EventID 13 record ends with the value name and the match is an endswith on the value, not on the key: an endswith stopping at `\CurrentVersion\Windows` would never fire. The parent key is carried in the matched tail so the term is anchored; `AppInit_DLLs` on its own is a short substring that collides with unrelated per-application keys. Both the 64-bit key and its Wow6432Node twin are covered by the one term because the redirection element sits to the left of the suffix. MITRE names AppInit_DLLs; LoadAppInit_DLLs and RequireSignedAppInit_DLLs are added here rather than taken from MITRE — they are the values that arm the mechanism and disable its signature check, and an adversary must usually touch them too. Note that AppInit loading is inert on Windows 8 and later with Secure Boot enabled, so on those hosts a hit is an unauthorised write that will not execute, not confirmed code execution. The analytic's other half — the resulting unsigned DLL appearing in EventID 7 image loads across many processes — is a correlation over MITRE's TimeWindow knob that Sigma cannot express, so it is not attempted. Sysmon registry monitoring is an allowlist of paths; confirm this key is in yours before reading silence as a clean result. UNVERIFIED AS AUTHORED — derived from MITRE ATT&CK DET0557, 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.
DeviceRegistryEvents| where (RegistryKey endswith "\\Windows NT\\CurrentVersion\\Windows\\AppInit_DLLs" or RegistryKey endswith "\\Windows NT\\CurrentVersion\\Windows\\LoadAppInit_DLLs" or RegistryKey endswith "\\Windows NT\\CurrentVersion\\Windows\\RequireSignedAppInit_DLLs")
Splunk · SPL
Run this as a search.
index=* (TargetObject="*\\Windows NT\\CurrentVersion\\Windows\\AppInit_DLLs" OR TargetObject="*\\Windows NT\\CurrentVersion\\Windows\\LoadAppInit_DLLs" OR TargetObject="*\\Windows NT\\CurrentVersion\\Windows\\RequireSignedAppInit_DLLs")Elastic · ES|QL
Run this as a search.
FROM logs-*| WHERE (TO_LOWER(registry.path) LIKE "*\\\\windows nt\\\\currentversion\\\\windows\\\\appinit_dlls" OR TO_LOWER(registry.path) LIKE "*\\\\windows nt\\\\currentversion\\\\windows\\\\loadappinit_dlls" OR TO_LOWER(registry.path) LIKE "*\\\\windows nt\\\\currentversion\\\\windows\\\\requiresignedappinit_dlls")
Wazuh · XML rule
Deploy to your manager — this is a rule, not a search.
<group name="sigma,windows,registry_set,"> <!-- 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="TargetObject" type="pcre2">(?i)(\\Windows NT\\CurrentVersion\\Windows\\AppInit_DLLs$|\\Windows NT\\CurrentVersion\\Windows\\LoadAppInit_DLLs$|\\Windows NT\\CurrentVersion\\Windows\\RequireSignedAppInit_DLLs$)</field> <description>AppInit DLL registry values set for system-wide DLL injection</description> <mitre> <id>T1546.010</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.