Detection rules › Sigma

Security package (SSP) loaded into LSA (native)

Status
experimental
Severity
high
Log source
product windows, service security
Author
mdecrevoisier
Source
github.com/mdecrevoisier/SIGMA-detection-rules

Detects scenarios where an attacker loads a malicious SSP (Security Support Provider) into the LSA process. Note that this rule will not work with "in memory" SSP injection (Mimikatz) as no event will be triggered.

Known false positives

  • None

MITRE ATT&CK coverage

Telemetry coverage

Rule body

title: Security package (SSP) loaded into LSA (native)
description: Detects scenarios where an attacker loads a malicious SSP (Security Support Provider) into the LSA process. Note that this rule will not work with "in memory" SSP injection (Mimikatz) as no event will be triggered.
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0003-Persistence/T1547-Boot%20or%20Logon%20Autostart%20Execution
- https://twitter.com/JohnLaTwC/status/1417106953881497602?s=09
- https://blog.xpnsec.com/exploring-mimikatz-part-2/
- https://docs.microsoft.com/en-us/windows/security/threat-protection/auditing/event-4622
- https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/dn408187(v=ws.11)?redirectedfrom=MSDN
- https://pentestlab.blog/2019/10/21/persistence-security-support-provider/
- https://www.ired.team/offensive-security/credential-access-and-credential-dumping/intercepting-logon-credentials-via-custom-security-support-provider-and-authentication-package
- https://securityintelligence.com/posts/hunting-evidence-dll-side-loading-powershell-sysmon/
- https://medium.com/threatpunter/detecting-adversary-tradecraft-with-image-load-event-logging-and-eql-8de93338c16
- https://github.com/S1ckB0y1337/Active-Directory-Exploitation-Cheat-Sheet#custom-ssp
- https://www.sentinelone.com/blog/how-attackers-exploit-security-support-provider-ssp-for-credential-dumping/
tags:
- attack.persistence
- attack.t1547.008
author: mdecrevoisier
status: experimental
logsource:
  product: windows
  service: security
detection:
  selection:
    EventID: 4622 # Security package loaded by LSA (Local Security Authority)
  filter:
    SecurityPackageName|contains: # native Windows SSP
      - '\Windows\system32\cloudAP.dll'  # CloudAP
      - '\Windows\system32\kerberos.dll' # Kerberos
      - '\Windows\system32\lsasrv.dll'   # Negotiate
      - '\Windows\system32\msv1_0.dll'   # NTLM
      - '\Windows\system32\negoexts.dll' # NegoExtender
      - '\Windows\system32\pku2u.dll'    # pku2u
      - '\Windows\system32\schannel.dll' # Schannel
      - '\Windows\system32\tspkg.dll'    # TSSSP
      - '\Windows\system32\wdigest.dll'  # WDigest
  condition: selection and not filter
falsepositives:
- None
level: high

Stages and Predicates

Stage 0: condition

selection and not filter

Stage 1: selection

selection:
  EventID: 4622

Stage 2: not filter

filter:
  SecurityPackageName|contains:
    - '\Windows\system32\cloudAP.dll'
    - '\Windows\system32\kerberos.dll'
    - '\Windows\system32\lsasrv.dll'
    - '\Windows\system32\msv1_0.dll'
    - '\Windows\system32\negoexts.dll'
    - '\Windows\system32\pku2u.dll'
    - '\Windows\system32\schannel.dll'
    - '\Windows\system32\tspkg.dll'
    - '\Windows\system32\wdigest.dll'

Exclusions

The rule actively suppresses these predicates.