Kubernetes Pod Creation Using Common Debug or Base Images

Detects successful Kubernetes pod creation requests using commonly abused base and debugging container images such as BusyBox, Alpine, Ubuntu, Netshoot, and network multitool variants, as well as container runtime and image-build images such as Docker-in-Docker (dind), Podman, BuildKit, Buildah, and Kaniko. Base and debug images are frequently used by attackers to deploy short-lived or interactive "throwaway" containers for reconnaissance, payload staging, or command execution. Container runtime and build images are used to run nested containers or build images on-host, bypassing registry-based image controls. This is a New Terms rule that surfaces the first time a given source, user agent, and user deploy such an image within the lookback window.

Elastic rule (View on GitHub)

 1[metadata]
 2creation_date = "2026/05/04"
 3integration = ["kubernetes"]
 4maturity = "production"
 5updated_date = "2026/11/13"
 6
 7[rule]
 8author = ["Elastic"]
 9description = """
10Detects successful Kubernetes pod creation requests using commonly abused base and debugging container images such as
11BusyBox, Alpine, Ubuntu, Netshoot, and network multitool variants, as well as container runtime and image-build images
12such as Docker-in-Docker (dind), Podman, BuildKit, Buildah, and Kaniko. Base and debug images are frequently used by
13attackers to deploy short-lived or interactive "throwaway" containers for reconnaissance, payload staging, or command
14execution. Container runtime and build images are used to run nested containers or build images on-host, bypassing
15registry-based image controls. This is a New Terms rule that surfaces the first time a given source, user agent, and
16user deploy such an image within the lookback window.
17"""
18index = ["logs-kubernetes.audit_logs-*"]
19language = "kuery"
20license = "Elastic License v2"
21name = "Kubernetes Pod Creation Using Common Debug or Base Images"
22risk_score = 21
23rule_id = "93120a05-caf5-47f6-a305-e8abee463fb9"
24severity = "low"
25tags = [
26    "Data Source: Kubernetes",
27    "Domain: Kubernetes",
28    "Use Case: Threat Detection",
29    "Tactic: Execution",
30    "Tactic: Defense Evasion",
31    "Rule Type: New Terms",
32    "Platform: Kubernetes",
33    "Domain: Containers",
34    "Domain: Cloud",
35]
36timestamp_override = "event.ingested"
37type = "new_terms"
38
39query = '''
40event.dataset:"kubernetes.audit_logs" and
41kubernetes.audit.stage:"ResponseComplete" and
42kubernetes.audit.annotations.authorization_k8s_io/decision:"allow" and
43kubernetes.audit.objectRef.resource:"pods" and
44kubernetes.audit.verb:"create" and
45kubernetes.audit.requestObject.spec.containers.image:(alpine* or busybox* or ubuntu\:* or debian\:* or *netshoot\:* or *network-multitool\:* or *dind* or *podman* or *buildkit* or *buildah* or *kaniko*)
46'''
47
48
49[[rule.threat]]
50framework = "MITRE ATT&CK"
51[[rule.threat.technique]]
52id = "T1609"
53name = "Container Administration Command"
54reference = "https://attack.mitre.org/techniques/T1609/"
55
56[[rule.threat.technique]]
57id = "T1610"
58name = "Deploy Container"
59reference = "https://attack.mitre.org/techniques/T1610/"
60
61
62[rule.threat.tactic]
63id = "TA0002"
64name = "Execution"
65reference = "https://attack.mitre.org/tactics/TA0002/"
66[[rule.threat]]
67framework = "MITRE ATT&CK"
68[[rule.threat.technique]]
69id = "T1610"
70name = "Deploy Container"
71reference = "https://attack.mitre.org/techniques/T1610/"
72
73[[rule.threat.technique]]
74id = "T1612"
75name = "Build Image on Host"
76reference = "https://attack.mitre.org/techniques/T1612/"
77
78
79[rule.threat.tactic]
80id = "TA0005"
81name = "Defense Evasion"
82reference = "https://attack.mitre.org/tactics/TA0005/"
83
84[rule.new_terms]
85field = "new_terms_fields"
86value = ["source.ip", "user_agent.original", "user.name"]
87[[rule.new_terms.history_window_start]]
88field = "history_window_start"
89value = "now-5d"

Related rules

to-top