T1556 Elastic Security · Elastic

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

Tactic
Credential Access Defense Evasion Persistence
Technique
T1556 Modify Authentication Process
Canonical reference
https://attack.mitre.org/techniques/T1556/

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*",
      "*\\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")
  )
)
critical severity high confidence

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

Elastic Security Endpoint (elastic-agent with endpoint integration)Winlogbeat with Sysmon (EventCode 7, 13)Windows Security Event Logs (EventID 4610, 4614) via Winlogbeat or Elastic Agent

Required Tables

logs-endpoint.events.registry-*logs-endpoint.events.library-*logs-windows.forwarded-*winlogbeat-*

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
Download portable Sigma rule (.yml)

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.

  1. 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.

  2. 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.

  3. 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.

  4. 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.

Unlock Pro Content

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

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections