Unusual Sudo Activity

Looks for sudo activity from an unusual user context. An unusual sudo user could be due to troubleshooting activity or it could be a sign of credentialed access via compromised accounts.

Elastic rule (View on GitHub)

 1[metadata]
 2creation_date = "2020/09/03"
 3integration = ["auditd_manager", "endpoint"]
 4maturity = "production"
 5updated_date = "2024/05/21"
 6
 7[rule]
 8anomaly_threshold = 75
 9author = ["Elastic"]
10description = """
11Looks for sudo activity from an unusual user context. An unusual sudo user could be due to troubleshooting activity or
12it could be a sign of credentialed access via compromised accounts.
13"""
14false_positives = [
15    """
16    Uncommon sudo activity can be due to an engineer logging onto a server instance in order to perform manual
17    troubleshooting or reconfiguration.
18    """,
19]
20from = "now-45m"
21interval = "15m"
22license = "Elastic License v2"
23machine_learning_job_id = ["v3_linux_rare_sudo_user"]
24name = "Unusual Sudo Activity"
25risk_score = 21
26rule_id = "1e9fc667-9ff1-4b33-9f40-fefca8537eb0"
27severity = "low"
28tags = [
29    "Domain: Endpoint",
30    "OS: Linux",
31    "Use Case: Threat Detection",
32    "Rule Type: ML",
33    "Rule Type: Machine Learning",
34    "Tactic: Privilege Escalation",
35]
36type = "machine_learning"
37[[rule.threat]]
38framework = "MITRE ATT&CK"
39[[rule.threat.technique]]
40id = "T1548"
41name = "Abuse Elevation Control Mechanism"
42reference = "https://attack.mitre.org/techniques/T1548/"
43
44
45[rule.threat.tactic]
46id = "TA0005"
47name = "Defense Evasion"
48reference = "https://attack.mitre.org/tactics/TA0005/"
49[[rule.threat]]
50framework = "MITRE ATT&CK"
51[[rule.threat.technique]]
52id = "T1548"
53name = "Abuse Elevation Control Mechanism"
54reference = "https://attack.mitre.org/techniques/T1548/"
55
56
57[rule.threat.tactic]
58id = "TA0004"
59name = "Privilege Escalation"
60reference = "https://attack.mitre.org/tactics/TA0004/"

Related rules

to-top