diff --git a/rules/windows/credential_access_lsass_handle_via_malseclogon.toml b/rules/windows/credential_access_lsass_handle_via_malseclogon.toml new file mode 100644 index 000000000..15f675f06 --- /dev/null +++ b/rules/windows/credential_access_lsass_handle_via_malseclogon.toml @@ -0,0 +1,59 @@ +[metadata] +creation_date = "2022/06/29" +maturity = "production" +updated_date = "2022/06/29" + +[rule] +author = ["Elastic"] +description = """ +Identifies suspicious access to LSASS handle from a call trace pointing to seclogon.dll and with a suspicious access +rights value. This may indicate an attempt to leak an LSASS handle via abusing the Secondary Logon service in preparation +for credential access. +""" +from = "now-9m" +index = ["winlogbeat-*", "logs-windows.*"] +language = "eql" +license = "Elastic License v2" +name = "Suspicious LSASS Access via MalSecLogon" +note = """## Setup + +If enabling an EQL rule on a non-elastic-agent index (such as beats) for versions <8.2, events will not define `event.ingested` and default fallback for EQL rules was not added until 8.2, so you will need to add a custom pipeline to populate `event.ingested` to @timestamp for this rule to work. +""" +references = ["https://splintercod3.blogspot.com/p/the-hidden-side-of-seclogon-part-3.html"] +risk_score = 73 +rule_id = "7ba58110-ae13-439b-8192-357b0fcfa9d7" +severity = "high" +tags = ["Elastic", "Host", "Windows", "Threat Detection", "Credential Access"] +timestamp_override = "event.ingested" +type = "eql" + +query = ''' +process where event.code == "10" and + winlog.event_data.TargetImage : "?:\\WINDOWS\\system32\\lsass.exe" and + + /* seclogon service accessing lsass */ + winlog.event_data.CallTrace : "*seclogon.dll*" and process.name : "svchost.exe" and + + /* PROCESS_CREATE_PROCESS & PROCESS_DUP_HANDLE & PROCESS_QUERY_INFORMATION */ + winlog.event_data.GrantedAccess == "0x14c0" +''' + + +[[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]] +id = "T1003.001" +name = "LSASS Memory" +reference = "https://attack.mitre.org/techniques/T1003/001/" + + + +[rule.threat.tactic] +id = "TA0006" +name = "Credential Access" +reference = "https://attack.mitre.org/tactics/TA0006/" +