T1556.002 Elastic Security · Elastic

Detect Password Filter DLL in Elastic Security

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.

MITRE ATT&CK

Tactic
Credential Access Defense Evasion Persistence
Technique
T1556 Modify Authentication Process
Sub-technique
T1556.002 Password Filter DLL
Canonical reference
https://attack.mitre.org/techniques/T1556/002/

Elastic Detection Query

Elastic Security (Elastic)
eql
any where
  (
    event.category == "registry" and
    event.type in ("change", "creation") and
    (
      registry.path : "*\\Control\\Lsa\\Notification Packages" or
      (registry.key : "*\\Control\\Lsa" and registry.value : "Notification Packages")
    )
  )
  or
  (
    event.category == "file" and
    event.type == "creation" and
    file.path : "C:\\Windows\\System32\\*.dll" and
    not process.name : ("msiexec.exe", "wusa.exe", "TrustedInstaller.exe",
                        "svchost.exe", "poqexec.exe", "MsMpEng.exe")
  )
critical severity high confidence

Detects T1556.002 Password Filter DLL via two signals: (1) modification of the LSA Notification Packages registry key used to register password filter DLLs, and (2) creation of DLL files in C:\Windows\System32\ by non-installer processes. Covers both the registry staging and DLL drop phases of the technique.

Data Sources

Elastic Endpoint SecurityElastic Agent (windows integration)Winlogbeat with Sysmon

Required Tables

logs-endpoint.events.registry-*logs-endpoint.events.file-*logs-windows.*

False Positives & Tuning

  • Third-party enterprise password policy enforcement products (e.g., nFront Password Filter, Enzoic for Active Directory, SpecOps Password Policy) that legitimately register DLLs under Notification Packages on domain controllers during installation or upgrades
  • Enterprise PAM/privileged identity solutions (CyberArk CPM, BeyondTrust) that install credential hooks in System32 and register with LSA as part of their deployment or agent updates
  • Windows in-place upgrades or cumulative update packages where Windows servicing processes create new DLLs in System32 during major OS feature updates — edge cases may exist outside the standard installer process allowlist
Download portable Sigma rule (.yml)

Other platforms for T1556.002


Testing Methodology

Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.

  1. Test 1Register a Benign Password Filter DLL

    Expected signal: Sysmon Event ID 13 (Registry Value Set): TargetObject=HKLM\SYSTEM\CurrentControlSet\Control\Lsa\Notification Packages, Details containing 'TestPasswordFilter'. Security Event ID 4657 (registry value modified) if object access auditing is enabled.

  2. Test 2Drop a DLL File in System32 from Non-System Process

    Expected signal: Sysmon Event ID 11 (File Create): TargetFilename=C:\Windows\System32\testpwdfilter.dll, Image=cmd.exe or powershell.exe. Security Event ID 4663 if file system auditing is enabled.

  3. Test 3Query Current LSA Notification Packages (Reconnaissance)

    Expected signal: Security Event ID 4656/4663 (registry key access) if object access auditing is enabled. Sysmon Event ID 12 (Registry Key Opened) for HKLM\SYSTEM\CurrentControlSet\Control\Lsa.

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

Related Detections