Skip to content

Commit d0bff94

Browse files
authored
[New BBR] Kubectl Configuration Discovery (#4835)
1 parent bc87ca1 commit d0bff94

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
[metadata]
2+
creation_date = "2025/06/19"
3+
integration = ["endpoint", "auditd_manager"]
4+
maturity = "production"
5+
updated_date = "2025/06/19"
6+
7+
[rule]
8+
author = ["Elastic"]
9+
building_block_type = "default"
10+
description = """
11+
This rule detects the execution of kubectl commands that are commonly used for configuration discovery in Kubernetes
12+
environments. It looks for process events where kubectl is executed with arguments that query configuration information,
13+
such as configmaps. In environments where kubectl is not expected to be used, this could indicate potential reconnaissance
14+
activity by an adversary.
15+
"""
16+
from = "now-119m"
17+
index = ["logs-endpoint.events.*", "endgame-*", "auditbeat-*", "logs-auditd_manager.auditd-*"]
18+
interval = "60m"
19+
language = "eql"
20+
license = "Elastic License v2"
21+
name = "Kubectl Configuration Discovery"
22+
risk_score = 21
23+
rule_id = "98ac2919-f8b3-4d2d-b85b-e1c13ac0c68b"
24+
severity = "low"
25+
tags = [
26+
"Domain: Container",
27+
"Domain: Endpoint",
28+
"Domain: Kubernetes",
29+
"OS: Linux",
30+
"Use Case: Threat Detection",
31+
"Tactic: Discovery",
32+
"Rule Type: BBR",
33+
"Data Source: Elastic Defend",
34+
"Data Source: Elastic Endgame",
35+
"Data Source: Auditd Manager",
36+
]
37+
timestamp_override = "event.ingested"
38+
type = "eql"
39+
query = '''
40+
process where host.os.type == "linux" and event.type == "start" and
41+
event.action in ("exec", "exec_event", "executed", "process_started") and
42+
process.name == "kubectl" and process.args in ("get", "describe") and process.args in ("configmap", "configmaps")
43+
'''
44+
45+
[[rule.threat]]
46+
framework = "MITRE ATT&CK"
47+
48+
[[rule.threat.technique]]
49+
id = "T1613"
50+
name = "Container and Resource Discovery"
51+
reference = "https://attack.mitre.org/techniques/T1613/"
52+
53+
[rule.threat.tactic]
54+
id = "TA0007"
55+
name = "Discovery"
56+
reference = "https://attack.mitre.org/tactics/TA0007/"

0 commit comments

Comments
 (0)