Operator On The Wire
Join
← Back to Knowledge Base
BLUE TEAM / THREAT HUNT / WINDOWS / PERSISTENCE

LSA Persistence

This note documents detection patterns related to LSA Persistence within Windows environments.


Direct Indicators

LogEvent IDMeaningForensic ValueNotes
Sysmon13Registry value setCriticalDetects Security Packages / Authentication Packages modification.
Sysmon12Registry object create/deleteHighKey creation around LSA persistence paths.
Security4657Registry value modifiedHighNative audit if enabled.
Sysmon7Image loadedCriticalSuspicious DLL loaded into lsass.exe.
Sysmon1Process creationHighPayload dropper prior to persistence registration.
Security4688Process creationHighRegistry tooling execution context.

Indirect Indicators

IndicatorWhat To Look ForForensic ValueNotes
Security Packages alteredExtra DLL addedCriticalCore LSA persistence primitive.
DLL outside System32User path DLLCriticalStrong malicious signal.
lsass loads unsigned DLLRare and high-value anomalyCriticalStrong persistence clue.
Authentication Packages changedUnexpected providerCriticalSensitive path abuse.
Reboot precedes loadDelayed triggerHighLSA often activates on restart.
Registry write by script/toolreg.exe / PowerShellHighSetup clue.

Common Tools

ToolUsage
reg.exeModify LSA package lists
PowerShellRegistry persistence writes
mimikatzSSP insertion / auth package abuse
custom malwareLSA package persistence

Relevant Artifacts

  • Sysmon Event IDs 12, 13, 7, 1
  • Security Event IDs 4657, 4688
  • Registry paths:
    • HKLM\SYSTEM\CurrentControlSet\Control\Lsa
  • Key values:
    • Security Packages
    • Authentication Packages
    • Notification Packages
  • DLL path
  • Prefetch for registry tools
  • Amcache / ShimCache

MITRE ATT&CK References

  • T1547.002 Authentication Package
  • T1112 Modify Registry

Decision Tree

  1. Which LSA value changed?

    • Security Packages
    • Authentication Packages
    • Notification Packages
  2. DLL path trusted?

    • System32
    • Temp
    • AppData
  3. DLL signed?

    • Yes
    • No
  4. Trigger observed?

    • Reboot
    • lsass load
  5. Expand:

    • Adjacent credential access
    • Registry timeline
    • DLL provenance
  6. Scope:

    • Single host
    • Multiple hosts
    • Campaign persistence

Example Detection Templates

KQL

Sysmon
| where EventID == 13
| where TargetObject has "\\Control\\Lsa"
| project TimeGenerated, Computer, TargetObject, Details
Sysmon
| where EventID == 7
| where Image endswith "\\lsass.exe"
| project TimeGenerated, Computer, ImageLoaded

EQL

registry where registry.path like "*\\Control\\Lsa*"
sequence by host.name with maxspan=1h
  [ registry where registry.path like "*\\Control\\Lsa*" ]
  [ library where process.name == "lsass.exe" ]

Sigma

title: LSA Persistence Detection
id: 7e2b4c12-lsa-persistence
status: experimental
description: Detects suspicious LSA package persistence
references:
  - https://attack.mitre.org/
author: Vergil
date: 2026-03-07
logsource:
  product: windows
  service: sysmon
detection:
  selection:
    EventID: 13
  keywords:
    TargetObject|contains: '\Control\Lsa'
  condition: selection and keywords
fields:
  - TargetObject
  - Details
falsepositives:
  - Legitimate security software
level: high
tags:
  - attack.persistence

Mitigation & Hardening

Control AreaMitigationEffectivenessNotes
Registry monitoringAlert on LSA writesCriticalHigh-value signal
DLL signing checksValidate lsass-loaded modulesCriticalStrong anomaly detection
Baseline package listsRare endpoint changesHighLow false positives
Reboot correlationWatch delayed loadsHighConfirms activation
Restrict admin rightsReduce registry abuseHighPrevent persistence