Suspicious Access to LDAP Attributes

Identify read access to a high number of Active Directory object attributes. The knowledge of objects properties can help adversaries find vulnerabilities, elevate privileges or collect sensitive information.

Elastic rule (View on GitHub)

 1[metadata]
 2creation_date = "2023/01/29"
 3integration = ["windows", "system"]
 4maturity = "production"
 5updated_date = "2024/07/08"
 6
 7[rule]
 8author = ["Elastic"]
 9description = """
10Identify read access to a high number of Active Directory object attributes. The knowledge of objects properties can
11help adversaries find vulnerabilities, elevate privileges or collect sensitive information.
12"""
13from = "now-9m"
14index = ["winlogbeat-*", "logs-system.security*", "logs-windows.forwarded*"]
15language = "eql"
16license = "Elastic License v2"
17name = "Suspicious Access to LDAP Attributes"
18risk_score = 73
19rule_id = "68ad737b-f90a-4fe5-bda6-a68fa460044e"
20setup = """The 'Audit Directory Service Changes' logging policy must be configured for (Success, Failure).
21Steps to implement the logging policy with Advanced Audit Configuration:
22
23Computer Configuration >
24Policies >
25Windows Settings >
26Security Settings >
27Advanced Audit Policies Configuration >
28Audit Policies >
29DS Access >
30Audit Directory Service Changes (Success,Failure)
31"""
32severity = "high"
33tags = [
34    "Domain: Endpoint",
35    "OS: Windows",
36    "Use Case: Threat Detection",
37    "Tactic: Discovery",
38    "Data Source: System",
39    "Data Source: Active Directory",
40    "Data Source: Windows",
41]
42timestamp_override = "event.ingested"
43type = "eql"
44
45query = '''
46any where event.action in ("Directory Service Access", "object-operation-performed") and
47 event.code == "4662" and not winlog.event_data.SubjectUserSid : "S-1-5-18" and
48 winlog.event_data.AccessMaskDescription == "Read Property" and length(winlog.event_data.Properties) >= 2000
49'''
50
51
52[[rule.threat]]
53framework = "MITRE ATT&CK"
54[[rule.threat.technique]]
55id = "T1069"
56name = "Permission Groups Discovery"
57reference = "https://attack.mitre.org/techniques/T1069/"
58
59
60[rule.threat.tactic]
61id = "TA0007"
62name = "Discovery"
63reference = "https://attack.mitre.org/tactics/TA0007/"

Related rules

to-top