Detect LSASS Driver in Splunk
Adversaries may modify or add LSASS drivers to obtain persistence on compromised systems. The Windows security subsystem is a set of components that manage and enforce the security policy for a computer or domain. The Local Security Authority (LSA) is the main component responsible for local security policy and user authentication. The LSA includes multiple DLLs associated with various security functions, all running in the context of the LSASS process (lsass.exe). Adversaries may target LSASS drivers to obtain persistence. By either replacing or adding illegitimate drivers, an adversary can use LSA operations to continuously execute malicious payloads. Known examples include Wingbird (which drops sspisrv.dll alongside lsass.exe) and Pasam (which infects the SAM DLL).
MITRE ATT&CK
- Tactic
- Persistence Privilege Escalation
- Technique
- T1547 Boot or Logon Autostart Execution
- Sub-technique
- T1547.008 LSASS Driver
- Canonical reference
- https://attack.mitre.org/techniques/T1547/008/
SPL Detection Query
index=wineventlog sourcetype="XmlWinEventLog:Microsoft-Windows-Sysmon/Operational" EventCode=7
Image="*\\lsass.exe"
NOT (ImageLoaded="C:\\Windows\\System32\\*" OR ImageLoaded="C:\\Windows\\SysWOW64\\*" OR ImageLoaded="C:\\Windows\\WinSxS\\*")
| table _time, host, Image, ImageLoaded, Hashes, Signed, SignatureStatus
| sort - _time Detects non-standard DLL loads into lsass.exe using Sysmon Event ID 7 (Image Loaded). Excludes DLLs from System32, SysWOW64, and WinSxS. Any DLL loaded into lsass from another location indicates LSASS driver abuse or credential-stealing malware.
Data Sources
Required Sourcetypes
False Positives & Tuning
- Third-party security products injecting monitoring DLLs into lsass.exe
- Smart card and biometric credential providers
- Windows Updates loading new LSA DLLs from temporary update paths
Other platforms for T1547.008
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.
- Test 1Drop DLL Alongside LSASS Copy (Wingbird Pattern)
Expected signal: Sysmon Event ID 11: FileCreate for both lsass.exe and sspisrv.dll in C:\Windows\Temp\. The co-location of these files in a non-standard path is the indicator.
- Test 2Enumerate LSASS Loaded Modules
Expected signal: Sysmon Event ID 1: Process creation for tasklist with /m /fi flags targeting lsass.exe.
- Test 3Check LSA Protection Status
Expected signal: Sysmon Event ID 1: Process creation for reg.exe querying the LSA key.
References (5)
- https://attack.mitre.org/techniques/T1547/008/
- https://technet.microsoft.com/library/dn408187.aspx
- https://technet.microsoft.com/library/cc961760.aspx
- https://msdn.microsoft.com/library/windows/desktop/ff919712.aspx
- https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1547.008/T1547.008.md
Unlock Pro Content
Get the full detection package for T1547.008 including response playbook, investigation guide, and atomic red team tests.