Local Account TokenFilter Policy Disabled

Identifies registry modification to the LocalAccountTokenFilterPolicy policy. If this value exists (which doesn't by default) and is set to 1, then remote connections from all local members of Administrators are granted full high-integrity tokens during negotiation.

Elastic rule (View on GitHub)

 1[metadata]
 2creation_date = "2022/11/01"
 3integration = ["endpoint", "windows"]
 4maturity = "production"
 5min_stack_comments = "New fields added: required_fields, related_integrations, setup"
 6min_stack_version = "8.3.0"
 7updated_date = "2023/06/22"
 8
 9[rule]
10author = ["Elastic"]
11description = """
12Identifies registry modification to the LocalAccountTokenFilterPolicy policy. If this value exists (which doesn't by
13default) and is set to 1, then remote connections from all local members of Administrators are granted full
14high-integrity tokens during negotiation.
15"""
16from = "now-9m"
17index = ["winlogbeat-*", "logs-endpoint.events.*", "logs-windows.*", "endgame-*"]
18language = "eql"
19license = "Elastic License v2"
20name = "Local Account TokenFilter Policy Disabled"
21references = [
22    "https://www.stigviewer.com/stig/windows_server_2008_r2_member_server/2014-04-02/finding/V-36439",
23    "https://posts.specterops.io/pass-the-hash-is-dead-long-live-localaccounttokenfilterpolicy-506c25a7c167",
24    "https://www.welivesecurity.com/wp-content/uploads/2018/01/ESET_Turla_Mosquito.pdf",
25]
26risk_score = 47
27rule_id = "07b1ef73-1fde-4a49-a34a-5dd40011b076"
28severity = "medium"
29tags = [
30    "Domain: Endpoint",
31    "OS: Windows",
32    "Use Case: Threat Detection",
33    "Tactic: Defense Evasion",
34    "Tactic: Privilege Escalation",
35    "Data Source: Elastic Endgame",
36    "Data Source: Elastic Defend"
37]
38timestamp_override = "event.ingested"
39type = "eql"
40
41query = '''
42registry where host.os.type == "windows" and registry.path : (
43  "HKLM\\*\\LocalAccountTokenFilterPolicy",
44  "\\REGISTRY\\MACHINE\\*\\LocalAccountTokenFilterPolicy") and
45  registry.data.strings : ("1", "0x00000001")
46'''
47
48
49[[rule.threat]]
50framework = "MITRE ATT&CK"
51[[rule.threat.technique]]
52id = "T1112"
53name = "Modify Registry"
54reference = "https://attack.mitre.org/techniques/T1112/"
55
56
57[rule.threat.tactic]
58id = "TA0005"
59name = "Defense Evasion"
60reference = "https://attack.mitre.org/tactics/TA0005/"
61[[rule.threat]]
62framework = "MITRE ATT&CK"
63[[rule.threat.technique]]
64id = "T1078"
65name = "Valid Accounts"
66reference = "https://attack.mitre.org/techniques/T1078/"
67[[rule.threat.technique.subtechnique]]
68id = "T1078.003"
69name = "Local Accounts"
70reference = "https://attack.mitre.org/techniques/T1078/003/"
71
72
73
74[rule.threat.tactic]
75id = "TA0004"
76name = "Privilege Escalation"
77reference = "https://attack.mitre.org/tactics/TA0004/"

References

Related rules

to-top