Linux init (PID 1) Secret Dump via GDB

This rule monitors for the potential memory dump of the init process (PID 1) through gdb. Attackers may leverage memory dumping techniques to attempt secret extraction from privileged processes. Tools that display this behavior include "truffleproc" and "bash-memory-dump". This behavior should not happen by default, and should be investigated thoroughly.

Elastic rule (View on GitHub)

 1[metadata]
 2creation_date = "2023/08/30"
 3integration = ["endpoint"]
 4maturity = "production"
 5min_stack_comments = "New fields added: required_fields, related_integrations, setup"
 6min_stack_version = "8.3.0"
 7updated_date = "2023/08/30"
 8
 9[rule]
10author = ["Elastic"]
11description = """
12This rule monitors for the potential memory dump of the init process (PID 1) through gdb. Attackers may leverage memory 
13dumping techniques to attempt secret extraction from privileged processes. Tools that display this behavior include
14"truffleproc" and "bash-memory-dump". This behavior should not happen by default, and should be investigated thoroughly.
15"""
16from = "now-9m"
17index = ["logs-endpoint.events.*"]
18language = "eql"
19license = "Elastic License v2"
20name = "Linux init (PID 1) Secret Dump via GDB"
21references = [
22    "https://github.com/controlplaneio/truffleproc",
23    "https://github.com/hajzer/bash-memory-dump"
24]
25risk_score = 47
26rule_id = "d4ff2f53-c802-4d2e-9fb9-9ecc08356c3f"
27severity = "medium"
28tags = ["Domain: Endpoint", "OS: Linux", "Use Case: Threat Detection", "Tactic: Credential Access", "Data Source: Elastic Defend"]
29timestamp_override = "event.ingested"
30type = "eql"
31query = '''
32process where host.os.type == "linux" and event.action == "exec" and event.type == "start" and 
33process.name == "gdb" and process.args in ("--pid", "-p") and process.args == "1"
34'''
35
36[[rule.threat]]
37framework = "MITRE ATT&CK"
38
39[[rule.threat.technique]]
40id = "T1003"
41name = "OS Credential Dumping"
42reference = "https://attack.mitre.org/techniques/T1003/"
43
44[[rule.threat.technique.subtechnique]]
45id = "T1003.007"
46name = "Proc Filesystem"
47reference = "https://attack.mitre.org/techniques/T1003/007/"
48
49[rule.threat.tactic]
50id = "TA0006"
51name = "Credential Access"
52reference = "https://attack.mitre.org/tactics/TA0006/"

References

Related rules

to-top