T1556.002
Password Filter DLL
Adversaries may register malicious password filter DLLs to harvest credentials as they are validated. Windows password filters are DLLs that implement password policy enforcement — the LSA calls each registered filter with plaintext credentials before accepting a password change. A malicious filter receives plaintext passwords every time any user changes their password. Threat groups Strider (ProjectSauron/Remsec) and OilRig have deployed this technique against domain controllers.
Microsoft Sentinel / Defender
kusto
let PasswordFilterRegistryKeys = dynamic([
@"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\Notification Packages",
@"HKLM\SYSTEM\CurrentControlSet\Control\Lsa\Notification Packages"
]);
let RegistryChanges = DeviceRegistryEvents
| where Timestamp > ago(24h)
| where RegistryKey has "Control\\Lsa" and RegistryValueName =~ "Notification Packages"
| project Timestamp, DeviceName, AccountName, ActionType, RegistryKey,
RegistryValueName, RegistryValueData, InitiatingProcessFileName, InitiatingProcessCommandLine;
let DLLsInSystem32 = DeviceFileEvents
| where Timestamp > ago(24h)
| where FolderPath =~ @"C:\Windows\System32"
| where FileName endswith ".dll"
| where InitiatingProcessFileName !in~ ("msiexec.exe", "wusa.exe", "TrustedInstaller.exe", "svchost.exe")
| project Timestamp, DeviceName, FileName, FolderPath, InitiatingProcessFileName,
InitiatingProcessCommandLine, SHA256;
union RegistryChanges, DLLsInSystem32
| sort by Timestamp desc critical severity
high confidence
Data Sources
Windows Registry: Registry Key Modification File: File Creation Microsoft Defender for Endpoint
Required Tables
DeviceRegistryEvents DeviceFileEvents
False Positives
- Legitimate enterprise password policy enforcement tools (e.g., Enzoic, nFront Security Password Filter) that register valid password filter DLLs
- Microsoft's own passfilt.dll which is installed by default and listed in Notification Packages
- Domain controller software updates or Group Policy enforcement tools that modify LSA security packages
- Third-party identity management solutions (e.g., CyberArk, BeyondTrust) that install password interception components
Last updated: 2026-04-13 Research depth: deep
References (6)
- https://attack.mitre.org/techniques/T1556/002/
- http://carnal0wnage.attackresearch.com/2013/09/stealing-passwords-every-time-they.html
- https://clymb3r.wordpress.com/2013/09/15/intercepting-password-changes-with-function-hooking/
- https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1556.002/T1556.002.md
- https://docs.microsoft.com/en-us/windows/win32/secauthn/password-filter-programming-considerations
- https://www.secureworks.com/research/skeleton-key-malware-analysis
Unlock Pro Content
Get the full detection package for T1556.002 including response playbook, investigation guide, and atomic red team tests.
Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance