Kubectl Secrets Enumeration Across All Namespaces
This rule detects the use of the "kubectl get secrets --all-namespaces" command, which enumerates secret resources across the entire Kubernetes cluster. Attackers may use this command to identify accessible secrets…
Description
This rule detects the use of the "kubectl get secrets --all-namespaces" command, which enumerates secret resources across the entire Kubernetes cluster. Attackers may use this command to identify accessible secrets in multiple namespaces, aiding credential discovery, privilege escalation, or lateral movement.
Detection logic
Its licence does not clear it for publishing here
Sunturai publishes a detection's own text where the licence it arrived under has been reviewed and permits it, and Elastic License 2.0 has not. The query as its source wrote it, its canonical form and the hash that pins this revision are in the workspace record.
Detection requirements
- Platform
- ContainersIaaSIdentity ProviderLinuxmacOSNetwork DevicesOffice SuiteSaaSWindows
The rule states no platform. This is derived from the 2 ATT&CK techniques it maps to.
- Log source category
- event_index
MITRE ATT&CK mappings
0 exclusive techniques.This is coverage no other published rule has; it is not this rule's total technique count.
References
| Reference | Cited by |
|---|---|
| kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#get | Only this detection cites it |
From the source
- At source
- Open at source
- Upstream identifier
- a87d49f0-24ae-4d6e-a0b4-5fd2f6188d6a
- Tagged by the source as
- Data Source: Auditd ManagerData Source: CrowdstrikeData Source: Elastic DefendData Source: Elastic Defend for ContainersData Source: Elastic EndgameData Source: SentinelOneDomain: ContainersDomain: EndpointDomain: KubernetesNoise: MediumOS: LinuxOS: macOSPerformance: NormalPlatform: KubernetesPlatform: LinuxPlatform: macOSResources: Investigation GuideRule Type: Event Correlation (EQL)Tactic: Credential AccessTactic: DiscoveryUse Case: Threat Detection
Licence
- Published under
- Elastic License 2.0Read the licence
- Attribution
- Required
Authorship
- Written by
- Published
- Sep 20, 2026
- Version
- 3