Strace Process Activity
Strace is a useful diagnostic, instructional, and debugging tool. This rule identifies a privileged context execution of strace which can be used to escape restrictive environments by instantiating a shell in order to elevate privileges or move laterally.
Elastic rule (View on GitHub)
1[metadata]
2creation_date = "2020/02/18"
3deprecation_date = "2022/07/28"
4maturity = "deprecated"
5updated_date = "2022/07/28"
6
7[rule]
8author = ["Elastic"]
9description = """
10Strace is a useful diagnostic, instructional, and debugging tool. This rule identifies a privileged context execution of
11strace which can be used to escape restrictive environments by instantiating a shell in order to elevate privileges or
12move laterally.
13"""
14false_positives = [
15 """
16 Strace is a dual-use tool that can be used for benign or malicious activity. Some normal use of this command may
17 originate from developers or SREs engaged in debugging or system call tracing.
18 """,
19]
20from = "now-9m"
21index = ["auditbeat-*", "logs-endpoint.events.*"]
22language = "kuery"
23license = "Elastic License v2"
24name = "Strace Process Activity"
25references = ["https://en.wikipedia.org/wiki/Strace"]
26risk_score = 21
27rule_id = "d6450d4e-81c6-46a3-bd94-079886318ed5"
28severity = "low"
29tags = ["Elastic", "Host", "Linux", "Threat Detection", "Privilege Escalation"]
30timestamp_override = "event.ingested"
31type = "query"
32
33query = '''
34event.category:process and event.type:(start or process_started) and process.name:strace
35'''
36
37
38[[rule.threat]]
39framework = "MITRE ATT&CK"
40[[rule.threat.technique]]
41id = "T1068"
42name = "Exploitation for Privilege Escalation"
43reference = "https://attack.mitre.org/techniques/T1068/"
44
45
46[rule.threat.tactic]
47id = "TA0004"
48name = "Privilege Escalation"
49reference = "https://attack.mitre.org/tactics/TA0004/"
References
Related rules
- Setgid Bit Set via chmod
- Attempt to Disable IPTables or Firewall
- Auditd Login Attempt at Forbidden Time
- Auditd Login from Forbidden Location
- Auditd Max Failed Login Attempts