Detection rules › Sigma

Kubernetes Secrets Enumeration

Status
test
Severity
low
Log source
product kubernetes, category application, service audit
Author
Leo Tsaousis (@laripping)
Source
github.com/SigmaHQ/sigma

Detects enumeration of Kubernetes secrets.

MITRE ATT&CK coverage

TacticTechniques
Credential AccessT1552.007 Unsecured Credentials: Container API

Event coverage

ProviderEventTitle
Kubernetes-secretslist-secretslist secrets

Rules detecting the same action

Other rules on this platform that filter on the same API call or operation.

Rule body yaml

title: Kubernetes Secrets Enumeration
id: eeb3e9e1-b685-44e4-9232-6bb701f925b5
related:
    - id: 7ee0b4aa-d8d4-4088-b661-20efdf41a04c
      type: derived
status: test
description: Detects enumeration of Kubernetes secrets.
references:
    - https://microsoft.github.io/Threat-Matrix-for-Kubernetes/techniques/List%20K8S%20secrets/
author: Leo Tsaousis (@laripping)
date: 2024-03-26
tags:
    - attack.t1552.007
    - attack.credential-access
logsource:
    category: application
    product: kubernetes
    service: audit
detection:
    selection:
        verb: 'list'
        objectRef.resource: 'secrets'
    condition: selection
falsepositives:
    - The Kubernetes dashboard occasionally accesses the kubernetes-dashboard-key-holder secret
level: low

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    verb: 'list'
    objectRef.resource: 'secrets'

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
objectRef.resourceeq
  • secrets
verbeq
  • list