diff --git a/etc/non-ecs-schema.json b/etc/non-ecs-schema.json index cacf22545..46ab6229d 100644 --- a/etc/non-ecs-schema.json +++ b/etc/non-ecs-schema.json @@ -8,7 +8,9 @@ } }, "winlogbeat-*": { - "winlog.event_data.OriginalFileName": "keyword" + "winlog.event_data.OriginalFileName": "keyword", + "winlog.event_data.GrantedAccess": "keyword", + "winlog.event_data.CallTrace": "keyword" }, "filebeat-*": { "o365.audit.NewValue": "keyword" diff --git a/rules/windows/credential_access_potential_lsa_memdump_via_mirrordump.toml b/rules/windows/credential_access_potential_lsa_memdump_via_mirrordump.toml new file mode 100644 index 000000000..9bfa6099c --- /dev/null +++ b/rules/windows/credential_access_potential_lsa_memdump_via_mirrordump.toml @@ -0,0 +1,52 @@ +[metadata] +creation_date = "2021/09/27" +maturity = "production" +updated_date = "2021/09/27" + +[rule] +author = ["Elastic"] +description = """ +Identifies suspicious access to an LSASS handle via DuplicateHandle from an unknown call trace module. +This may indicate an attempt to bypass the NtOpenProcess API to evade detection and dump Lsass memory +for credential access. +""" +from = "now-9m" +index = ["winlogbeat-*", "logs-windows.*"] +language = "eql" +license = "Elastic License v2" +name = "Potential Credential Access via DuplicateHandle in LSASS" +references = ["https://github.com/CCob/MirrorDump"] +risk_score = 47 +rule_id = "02a4576a-7480-4284-9327-548a806b5e48" +severity = "medium" +tags = ["Elastic", "Host", "Windows", "Threat Detection", "Credential Access"] +timestamp_override = "event.ingested" +type = "eql" + +query = ''' +process where event.code == "10" and + + /* LSASS requesting DuplicateHandle access right to another process */ + process.name : "lsass.exe" and winlog.event_data.GrantedAccess == "0x40" and + + /* call is coming from an unknown executable region */ + winlog.event_data.CallTrace : "*UNKNOWN*" +''' + + +[[rule.threat]] +framework = "MITRE ATT&CK" +[[rule.threat.technique]] +id = "T1003" +name = "OS Credential Dumping" +reference = "https://attack.mitre.org/techniques/T1003/" + + [[rule.threat.technique.subtechnique]] + name = "LSASS Memory" + id = "T1003.001" + reference = "https://attack.mitre.org/techniques/T1003/001/" + +[rule.threat.tactic] +id = "TA0006" +name = "Credential Access" +reference = "https://attack.mitre.org/tactics/TA0006/"