Potential Kubectl Masquerading via Unexpected Process
This rule detects potential kubectl masquerading activity by monitoring for process events where the process name is not "kubectl" but the command line arguments include kubectl-related commands. This could indicate…
Description
This rule detects potential kubectl masquerading activity by monitoring for process events where the process name is not "kubectl" but the command line arguments include kubectl-related commands. This could indicate an adversary attempting to masquerade as legitimate kubectl activity to evade detection. This rule covers evasion gaps introduced by renaming the kubectl binary, or placing it in an unusual directory.
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
- ContainersESXiLinuxmacOSOffice SuiteWindows
The rule states no platform. This is derived from the 5 ATT&CK techniques it maps to.
- Log source category
- event_index
References
| Reference | Cited by |
|---|---|
| kubernetes.io/docs/reference/kubectl/ | Only this detection cites it |
From the source
- At source
- Open at source
- Upstream identifier
- 2388c687-cb2c-4b7b-be8f-6864a2385048
- Tagged by the source as
- Data Source: CrowdstrikeData Source: Elastic DefendData Source: Elastic Defend for ContainersData Source: Elastic EndgameData Source: SentinelOneDomain: ContainersDomain: EndpointDomain: KubernetesNoise: MediumOS: LinuxOS: macOSPerformance: NormalPlatform: KubernetesPlatform: LinuxPlatform: macOSProfile: RecommendedResources: Investigation GuideRule Type: Event Correlation (EQL)Tactic: Defense EvasionThreat: MasqueradingUse Case: Threat Detection
Licence
- Published under
- Elastic License 2.0Read the licence
- Attribution
- Required
Authorship
- Written by
- Published
- Sep 20, 2026
- Version
- 3