title: Linux Kubectl Bulk Secret Export or All-Namespaces Enumeration id: 68a4d912-8b31-4e72-9c10-68b20f84d681 status: experimental description: Detects kubectl commands enumerating Kubernetes Secrets across all namespaces or exporting Secret manifests to YAML or JSON. author: Odin by Brandefense date: 2026-11-25 logsource: category: process_creation product: linux detection: selection_bin: Image|endswith: '/kubectl' CommandLine|contains: 'secrets' selection_bulk: CommandLine|contains: - ' -A' - '--all-namespaces' - '-o yaml' - '-o json' filter_approved_hosts: ComputerName: - 'k8s-admin-01.corp.example' condition: selection_bin and selection_bulk and not filter_approved_hosts falsepositives: - Approved cluster backup jobs or emergency incident-response bastions listed in ComputerName level: high tags: - attack.credential-access - attack.t1552.007 --- title: Linux Kubectl Imperative Pod Creation or Spec Override id: 68a4d912-8b31-4e72-9c10-68b20f84d682 status: experimental description: Detects imperative kubectl pod creation or inline JSON spec overrides bypassing declarative GitOps deployment pipelines. author: Odin by Brandefense date: 2026-11-25 logsource: category: process_creation product: linux detection: selection_kubectl: Image|endswith: '/kubectl' selection_pod_action: CommandLine|contains: - ' run ' - 'create pod' - '--overrides=' filter_ci_runners: ComputerName: - 'ci-deployer-01.corp.example' condition: selection_kubectl and selection_pod_action and not filter_ci_runners falsepositives: - Authorized break-glass troubleshooting sessions on designated bastion hosts level: high tags: - attack.execution - attack.t1610 --- title: Linux Container ServiceAccount Token Read via CLI Utilities id: 68a4d912-8b31-4e72-9c10-68b20f84d683 status: experimental description: Detects curl, wget, cat, or base64 reading the mounted Kubernetes pod ServiceAccount bearer token file directly. author: Odin by Brandefense date: 2026-11-25 logsource: category: process_creation product: linux detection: selection_token_path: CommandLine|contains: '/var/run/secrets/kubernetes.io/serviceaccount/token' selection_reader: Image|endswith: - '/curl' - '/wget' - '/cat' - '/base64' filter_approved_hosts: ComputerName: - 'k8s-admin-01.corp.example' condition: selection_token_path and selection_reader and not filter_approved_hosts falsepositives: - Minimal init containers using curl to query the Kubernetes API where client libraries are absent level: high tags: - attack.credential-access - attack.t1552.001 - attack.t1552.007