T1547.002 Splunk · SPL

Detect Authentication Package in Splunk

Adversaries may abuse authentication packages to execute DLLs when the system boots. Windows authentication package DLLs are loaded by the Local Security Authority (LSA) process at system start. They provide support for multiple logon processes and multiple security protocols to the operating system. Adversaries can use the autostart mechanism provided by LSA authentication packages for persistence by placing a reference to a binary in the Windows Registry location HKLM\SYSTEM\CurrentControlSet\Control\Lsa\ with the key value of 'Authentication Packages'=<target binary>. The binary will then be executed by the system when the authentication packages are loaded.

MITRE ATT&CK

Tactic
Persistence Privilege Escalation
Technique
T1547 Boot or Logon Autostart Execution
Sub-technique
T1547.002 Authentication Package
Canonical reference
https://attack.mitre.org/techniques/T1547/002/

SPL Detection Query

Splunk (SPL)
spl
index=wineventlog sourcetype="XmlWinEventLog:Microsoft-Windows-Sysmon/Operational" EventCode=13
  TargetObject="*\\Control\\Lsa\\Authentication Packages*"
| table _time, host, TargetObject, Details, Image, User
| sort - _time
critical severity high confidence

Detects modifications to the LSA Authentication Packages registry value using Sysmon Event ID 13 (Registry Value Set). Changes to this value cause the specified DLL to be loaded by lsass.exe at boot, providing persistent code execution in the context of the LSA with access to credentials.

Data Sources

Windows Registry: Windows Registry Key ModificationSysmon Event ID 13

Required Sourcetypes

XmlWinEventLog:Microsoft-Windows-Sysmon/Operational

False Positives & Tuning

  • Windows OS upgrades or cumulative updates modifying LSA configuration
  • Enterprise security products registering legitimate authentication packages
  • Domain controller role installation or ADFS configuration
Download portable Sigma rule (.yml)

Other platforms for T1547.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 1Add Authentication Package via Registry

    Expected signal: Sysmon Event ID 13: RegistryValueSet on HKLM\SYSTEM\CurrentControlSet\Control\Lsa\Authentication Packages. MDE DeviceRegistryEvents with the modified multi-string value.

  2. Test 2Query Current Authentication Packages

    Expected signal: Sysmon Event ID 1: Process creation for reg.exe with command line arguments querying the Lsa key. No registry modification events generated.

  3. Test 3Add Authentication Package via PowerShell

    Expected signal: Sysmon Event ID 13: RegistryValueSet with Image=powershell.exe. PowerShell ScriptBlock Log Event ID 4104 with the full script content. Sysmon Event ID 1 for the PowerShell process creation.

Unlock Pro Content

Get the full detection package for T1547.002 including response playbook, investigation guide, and atomic red team tests.

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections