Sigma rule: Kubernetes Potential Enumeration Activity

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-1ea93a321068, updated 2026-04-28T00:00:00.000Z.

Rule

Title
Kubernetes Potential Enumeration Activity
Status
experimental
Level
medium
Author
uniqu3-us3r
Date
2026-04-28
File
rules/application/kubernetes/audit/kubernetes_audit_potential_enumeration_activity.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects potential Kubernetes enumeration or attack activity via the audit log.
This includes the execution of common shells, utilities, or specialized tools like 'Rakkess' (access_matrix) and 'TruffleHog' via Kubernetes API requests.
Attackers use these methods to perform reconnaissance (enumeration), secret harvesting, or execute code (exec) within a cluster.

Log source

product
kubernetes
service
audit

Detection

selection_status:
    responseStatus.code: 'ALLOW'
selection_request_uri:
    requestURI|contains:
        # Shells Encoded
        - '%2fbin%2fash'
        - '%2fbin%2fbash'
        - '%2fbin%2fbusybox'
        - '%2fbin%2fdash'
        - '%2fbin%2fsh'
        - '%2fbin%2fzsh'
        # Shells Plain
        - '/bin/ash'
        - '/bin/bash'
        - '/bin/busybox'
        - '/bin/dash'
        - '/bin/sh'
        - '/bin/zsh'
        # Tools Encoded
        - '%2fusr%2fbin%2fcurl'
        - '%2fusr%2fbin%2fkubectl'
        - '%2fusr%2fbin%2fperl'
        - '%2fusr%2fbin%2fpython'
        - '%2fusr%2fbin%2fwget'
        # Tools Plain
        - '/usr/bin/curl'
        - '/usr/bin/kubectl'
        - '/usr/bin/perl'
        - '/usr/bin/python'
        - '/usr/bin/wget'
selection_request_user_agent:
    userAgent|contains:
        - 'access_matrix'  # Rakkess
        - 'trufflehog'     # Secret scanning tool
        - 'azurehound'     # Azure/Cloud discovery
        - 'micro-scanner'  # Vulnerability scanning
condition: selection_status and 1 of selection_request_*

False positives (as the rule lists them)

  • Authorized administrative maintenance via kubectl
  • Automated internal infrastructure monitoring and certificate rotation
  • Security-approved vulnerability or secret scanning in DevSecOps pipelines

Tags

  • attack.execution
  • attack.discovery
  • attack.t1609
  • attack.t1613

MITRE ATT&CK ids this rule names

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/application/kubernetes/audit/kubernetes_audit_potential_enumeration_activity.yml

Sources and licences

  • SigmaHQ

    "Kubernetes Potential Enumeration Activity" by uniqu3-us3r (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/application/kubernetes/audit/kubernetes_audit_potential_enumeration_activity.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: Kubernetes Potential Enumeration Activity",
entity page, dataset version ref-1ea93a321068, updated 2026-04-28T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/597a7e84-187d-458b-9e4f-2f5a0e676711 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 597a7e84-187d-458b-9e4f-2f5a0e676711, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.