74 lines
2.5 KiB
TOML
74 lines
2.5 KiB
TOML
[metadata]
|
|
creation_date = "2022/08/30"
|
|
integration = ["system", "windows"]
|
|
maturity = "production"
|
|
updated_date = "2024/10/15"
|
|
min_stack_version = "8.14.0"
|
|
min_stack_comments = "Breaking change at 8.14.0 for the Windows Integration."
|
|
|
|
[rule]
|
|
author = ["Elastic"]
|
|
description = """
|
|
Identifies process creation with alternate credentials. Adversaries may create a new process with a different token to
|
|
escalate privileges and bypass access controls.
|
|
"""
|
|
from = "now-9m"
|
|
index = ["winlogbeat-*", "logs-system.*", "logs-windows.*"]
|
|
language = "eql"
|
|
license = "Elastic License v2"
|
|
name = "Process Creation via Secondary Logon"
|
|
references = ["https://attack.mitre.org/techniques/T1134/002/"]
|
|
risk_score = 47
|
|
rule_id = "42eeee3d-947f-46d3-a14d-7036b962c266"
|
|
setup = """## Setup
|
|
|
|
Audit events 4624 and 4688 are needed to trigger this rule.
|
|
|
|
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 version 8.2.
|
|
Hence for this rule to work effectively, users will need to add a custom ingest pipeline to populate
|
|
`event.ingested` to @timestamp.
|
|
For more details on adding a custom ingest pipeline refer - https://www.elastic.co/guide/en/fleet/current/data-streams-pipeline-tutorial.html
|
|
"""
|
|
severity = "medium"
|
|
tags = ["Domain: Endpoint", "OS: Windows", "Use Case: Threat Detection", "Tactic: Privilege Escalation", "Data Source: System"]
|
|
type = "eql"
|
|
|
|
query = '''
|
|
sequence by winlog.computer_name with maxspan=1m
|
|
|
|
[authentication where event.action:"logged-in" and
|
|
event.outcome == "success" and user.id : ("S-1-5-21-*", "S-1-12-1-*") and
|
|
|
|
/* seclogon service */
|
|
process.name == "svchost.exe" and
|
|
winlog.event_data.LogonProcessName : "seclogo*" and source.ip == "::1" ] by winlog.event_data.TargetLogonId
|
|
|
|
[process where event.type == "start"] by winlog.event_data.TargetLogonId
|
|
'''
|
|
|
|
|
|
[[rule.threat]]
|
|
framework = "MITRE ATT&CK"
|
|
[[rule.threat.technique]]
|
|
id = "T1134"
|
|
name = "Access Token Manipulation"
|
|
reference = "https://attack.mitre.org/techniques/T1134/"
|
|
[[rule.threat.technique.subtechnique]]
|
|
id = "T1134.002"
|
|
name = "Create Process with Token"
|
|
reference = "https://attack.mitre.org/techniques/T1134/002/"
|
|
|
|
[[rule.threat.technique.subtechnique]]
|
|
id = "T1134.003"
|
|
name = "Make and Impersonate Token"
|
|
reference = "https://attack.mitre.org/techniques/T1134/003/"
|
|
|
|
|
|
|
|
[rule.threat.tactic]
|
|
id = "TA0004"
|
|
name = "Privilege Escalation"
|
|
reference = "https://attack.mitre.org/tactics/TA0004/"
|
|
|