Detect Modify Authentication Process in Elastic Security
Adversaries may modify authentication mechanisms and processes to access user credentials or enable otherwise unwarranted access to accounts. The authentication process is handled by mechanisms such as the Local Security Authentication Server (LSASS) process and the Security Accounts Manager (SAM) on Windows, pluggable authentication modules (PAM) on Unix-based systems, and authorization plugins on macOS systems. By modifying an authentication process, an adversary may authenticate to a service or system without using valid accounts, or may passively harvest credentials as users authenticate. Techniques include registering malicious password filter DLLs that receive plaintext passwords during every password change, injecting security support providers (SSPs) into LSASS to intercept credentials, installing skeleton keys to accept any password for domain accounts, modifying PAM stack configuration files to permit unauthorized access, and replacing legitimate authentication binaries with trojanized versions that exfiltrate credentials.
MITRE ATT&CK
- Technique
- T1556 Modify Authentication Process
- Canonical reference
- https://attack.mitre.org/techniques/T1556/
Elastic Detection Query
any where
(
(
event.category == "registry" and
event.type in ("change", "creation") and
registry.path : (
"*\\Control\\Lsa\\Notification Packages*",
"*\\Control\\Lsa\\Security Packages*",
"*\\Control\\Lsa\\Authentication Packages*",
"*\\Control\\Lsa\\OSConfig\\Security Packages*",
"*\\Control\\NetworkProvider\\Order*",
"*\\CurrentVersion\\Winlogon\\GinaDLL*",
"*\\CurrentVersion\\Authentication\\Credential Providers*"
) and
not process.name : (
"TrustedInstaller.exe", "MsMpEng.exe", "msiexec.exe",
"wuauclt.exe", "WindowsUpdateAgent.exe", "svchost.exe"
)
)
or
(
event.category == "library" and
process.name : "lsass.exe" and
not dll.name : (
"ntdll.dll", "kernel32.dll", "kernelbase.dll", "msvcrt.dll",
"kerberos.dll", "msv1_0.dll", "wdigest.dll", "tspkg.dll",
"pku2u.dll", "cloudap.dll", "schannel.dll", "cryptdll.dll",
"samsrv.dll", "lsasrv.dll", "netlogon.dll", "ntlmshared.dll"
)
)
or
(
event.category == "authentication" and
event.code in ("4610", "4614")
)
) Detects T1556 modifications to Windows LSA authentication mechanisms across three detection branches: (1) registry modifications to LSA key paths covering Notification Packages (password filter DLLs), Security Packages (SSPs), Authentication Packages, Network Provider Order, GinaDLL, and Credential Providers — excluding known legitimate modifiers; (2) unexpected DLLs loaded by lsass.exe not present in the known-good baseline, covering in-memory SSP and password filter injection; (3) Windows Security audit events 4610 and 4614 for authentication and notification package loading by SAM/LSA. Covers skeleton key, Ebury, SILENTTRINITY, and Mimikatz SSP injection patterns.
Data Sources
Required Tables
False Positives & Tuning
- Third-party MFA or smart card middleware (Duo Security, RSA Authentication Agent, Yubico, PIV/PKINIT providers) registering credential provider DLLs during initial installation or agent update
- Enterprise VPN or network authentication clients (Cisco AnyConnect, Palo Alto GlobalProtect) adding entries to the NetworkProvider Order key as part of their split-tunneling or authentication components
- Endpoint security products (CrowdStrike Falcon, Carbon Black, Symantec DLP) loading inspection DLLs into lsass.exe during sensor installation or major version upgrades — typically a one-time event at install time rather than recurring
Other platforms for T1556
Testing Methodology
Validate this detection against 4 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.
- Test 1Register Benign Password Filter DLL in LSA Notification Packages
Expected signal: Sysmon Event ID 13: TargetObject=HKLM\SYSTEM\CurrentControlSet\Control\Lsa\Notification Packages, Details contains 'df00tech-test-filter', Image=powershell.exe. Windows Security Event ID 4657 if SACL is configured on the LSA key. DeviceRegistryEvents in MDE: RegistryKey contains 'Notification Packages', RegistryValueData contains new DLL name, InitiatingProcessFileName=powershell.exe.
- Test 2Register Fake Security Support Provider (SSP) in LSA Security Packages
Expected signal: Sysmon Event ID 13: TargetObject=HKLM\SYSTEM\CurrentControlSet\Control\Lsa\Security Packages, Details appended with 'df00tech-test-ssp'. DeviceRegistryEvents: RegistryKey contains 'Security Packages', ActionType=RegistryValueSet. If system reboots, Security Event ID 4610 will fire listing the (missing) SSP DLL name — LSASS will generate an error in System event log.
- Test 3Modify PAM Configuration to Permit Authentication Bypass on Linux
Expected signal: Linux auditd: syscall=openat/write on path=/etc/pam.d/sshd with auid=<attacker_uid> if auditd watches are configured (-w /etc/pam.d/ -p wa -k pam_modification). Syslog: process writing to /etc/pam.d/sshd. File integrity monitoring (AIDE, Tripwire) will alert on hash change to /etc/pam.d/sshd. DeviceFileEvents (for Linux onboarded to MDE): FileModified on /etc/pam.d/sshd.
- Test 4Register Malicious Network Provider DLL via Registry
Expected signal: Sysmon Event ID 13: TargetObject=HKLM\SYSTEM\CurrentControlSet\Control\NetworkProvider\Order\ProviderOrder, Image=powershell.exe, Details contains appended provider name. DeviceRegistryEvents: RegistryKey contains 'NetworkProvider\Order', RegistryValueName='ProviderOrder', ActionType=RegistryValueSet.
References (9)
- https://attack.mitre.org/techniques/T1556/
- https://clymb3r.wordpress.com/2013/09/15/intercepting-password-changes-with-function-hooking/
- https://xorrior.com/persistent-credential-theft/
- https://www.secureworks.com/research/skeleton-key-malware-analysis
- https://adsecurity.org/?p=2053
- https://technet.microsoft.com/en-us/library/dn487457.aspx
- https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1556/T1556.md
- https://www.welivesecurity.com/2014/02/21/an-in-depth-analysis-of-linuxebury/
- https://github.com/SigmaHQ/sigma/blob/master/rules/windows/registry/registry_set/registry_set_lsa_packages.yml
Unlock Pro Content
Get the full detection package for T1556 including response playbook, investigation guide, and atomic red team tests.
Related Detections
Sub-techniques (9)
- T1556.001Domain Controller Authentication
- T1556.002Password Filter DLL
- T1556.003Pluggable Authentication Modules
- T1556.004Network Device Authentication
- T1556.005Reversible Encryption
- T1556.006Multi-Factor Authentication
- T1556.007Hybrid Identity
- T1556.008Network Provider DLL
- T1556.009Conditional Access Policies