Suspicious Lsass Process Access
Identifies access attempts to LSASS handle, this may indicate an attempt to dump credentials from Lsass memory.
Elastic rule (View on GitHub)
1[metadata]
2creation_date = "2023/01/22"
3integration = ["windows"]
4maturity = "production"
5min_stack_comments = "Build time field required_fields divergence between -8.7 and 8.8+ due to schema versions."
6min_stack_version = "8.8.0"
7updated_date = "2023/10/23"
8
9[rule]
10author = ["Elastic"]
11description = """
12Identifies access attempts to LSASS handle, this may indicate an attempt to dump credentials from Lsass memory.
13"""
14from = "now-9m"
15index = ["winlogbeat-*", "logs-windows.*"]
16language = "eql"
17license = "Elastic License v2"
18name = "Suspicious Lsass Process Access"
19references = ["https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1003.001/T1003.001.md"]
20risk_score = 47
21rule_id = "128468bf-cab1-4637-99ea-fdf3780a4609"
22setup = """
23If enabling an EQL rule on a non-elastic-agent index (such as beats) for versions <8.2,
24events will not define `event.ingested` and default fallback for EQL rules was not added until version 8.2.
25Hence for this rule to work effectively, users will need to add a custom ingest pipeline to populate
26`event.ingested` to @timestamp.
27For more details on adding a custom ingest pipeline refer - https://www.elastic.co/guide/en/fleet/current/data-streams-pipeline-tutorial.html
28"""
29severity = "medium"
30tags = ["Domain: Endpoint", "OS: Windows", "Use Case: Threat Detection", "Tactic: Credential Access", "Data Source: Sysmon Only"]
31timestamp_override = "event.ingested"
32type = "eql"
33
34query = '''
35process where host.os.type == "windows" and event.code == "10" and
36 winlog.event_data.TargetImage : "?:\\WINDOWS\\system32\\lsass.exe" and
37 not winlog.event_data.GrantedAccess :
38 ("0x1000", "0x1400", "0x101400", "0x101000", "0x101001", "0x100000", "0x100040", "0x3200", "0x40", "0x3200") and
39 not process.name : ("procexp64.exe", "procmon.exe", "procexp.exe", "Microsoft.Identity.AadConnect.Health.AadSync.Host.ex") and
40 not process.executable : (
41 "?:\\ProgramData\\Microsoft\\Windows Defender\\platform\\*",
42 "?:\\ProgramData\\WebEx\\webex\\*",
43 "?:\\Program Files (x86)\\*",
44 "?:\\Program Files\\*",
45 "?:\\Windows\\CCM\\CcmExec.exe",
46 "?:\\Windows\\LTSvc\\LTSVC.exe",
47 "?:\\Windows\\Sysmon.exe",
48 "?:\\Windows\\Sysmon64.exe",
49 "?:\\Windows\\system32\\csrss.exe",
50 "?:\\Windows\\System32\\lsm.exe",
51 "?:\\Windows\\system32\\MRT.exe",
52 "?:\\Windows\\System32\\msiexec.exe",
53 "?:\\Windows\\system32\\wbem\\wmiprvse.exe",
54 "?:\\Windows\\system32\\wininit.exe",
55 "?:\\Windows\\SystemTemp\\GUM*.tmp\\GoogleUpdate.exe",
56 "?:\\Windows\\sysWOW64\\wbem\\wmiprvse.exe"
57 ) and
58 not winlog.event_data.CallTrace : ("*mpengine.dll*", "*appresolver.dll*", "*sysmain.dll*")
59'''
60
61
62[[rule.threat]]
63framework = "MITRE ATT&CK"
64[[rule.threat.technique]]
65id = "T1003"
66name = "OS Credential Dumping"
67reference = "https://attack.mitre.org/techniques/T1003/"
68[[rule.threat.technique.subtechnique]]
69id = "T1003.001"
70name = "LSASS Memory"
71reference = "https://attack.mitre.org/techniques/T1003/001/"
72
73
74
75[rule.threat.tactic]
76id = "TA0006"
77name = "Credential Access"
78reference = "https://attack.mitre.org/tactics/TA0006/"
References
Related rules
- Potential Credential Access via DuplicateHandle in LSASS
- Potential Credential Access via LSASS Memory Dump
- Potential Credential Access via Renamed COM+ Services DLL
- Potential LSASS Clone Creation via PssCaptureSnapShot
- Potential LSASS Memory Dump via PssCaptureSnapShot