Detection rules › Sigma

New Kubernetes Service Account Created

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

Detects creation of new Kubernetes service account, which could indicate an attacker's attempt to persist within a cluster.

MITRE ATT&CK coverage

TacticTechniques
PersistenceT1136 Create Account

Event coverage

ProviderEventTitle
Kubernetes-serviceaccountscreate-serviceaccountscreate serviceaccounts

Rules detecting the same action

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

Rule body yaml

title: New Kubernetes Service Account Created
id: e31bae15-83ed-473e-bf31-faf4f8a17d36
related:
    - id: 12d027c3-b48c-4d9d-8bb6-a732200034b2
      type: derived
status: test
description: |
    Detects creation of new Kubernetes service account, which could indicate an attacker's attempt to persist within a cluster.
references:
    - https://microsoft.github.io/Threat-Matrix-for-Kubernetes/techniques/container%20service%20account/
author: Leo Tsaousis (@laripping)
date: 2024-03-26
tags:
    - attack.persistence
    - attack.t1136
logsource:
    category: application
    product: kubernetes
    service: audit
detection:
    selection:
        verb: 'create'
        objectRef.resource: 'serviceaccounts'
    condition: selection
falsepositives:
    - Unknown
level: low

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    verb: 'create'
    objectRef.resource: 'serviceaccounts'

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
  • serviceaccounts
verbeq
  • create