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

References

Related rules

to-top