Detection rules › Sigma

GCP Break-glass Container Workload Deployed

Status
test
Severity
medium
Log source
product gcp, service gcp.audit
Author
Bryan Lim
Source
github.com/SigmaHQ/sigma

Detects the deployment of workloads that are deployed by using the break-glass flag to override Binary Authorization controls.

MITRE ATT&CK coverage

TacticTechniques
Privilege EscalationT1548 Abuse Elevation Control Mechanism

Rules detecting the same action

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

Rule body yaml

title: GCP Break-glass Container Workload Deployed
id: 76737c19-66ee-4c07-b65a-a03301d1573d
status: test
description: |
    Detects the deployment of workloads that are deployed by using the break-glass flag to override Binary Authorization controls.
references:
    - https://cloud.google.com/binary-authorization
author: Bryan Lim
date: 2024-01-12
tags:
    - attack.privilege-escalation
    - attack.t1548
logsource:
    product: gcp
    service: gcp.audit
detection:
    selection:
        data.protoPayload.resource.type: 'k8s_cluster'
        data.protoPayload.logName:
            - 'cloudaudit.googleapis.com/activity'
            - 'cloudaudit.googleapis.com%2Factivity'
        data.protoPayload.methodName: 'io.k8s.core.v1.pods.create'
    keywords:
        - 'image-policy.k8s.io/break-glass'
    condition: selection and keywords
falsepositives:
    - Unknown
level: medium

Stages and Predicates

Stage 0: condition

selection and keywords

Stage 1: selection

selection:
    data.protoPayload.resource.type: 'k8s_cluster'
    data.protoPayload.logName:
        - 'cloudaudit.googleapis.com/activity'
        - 'cloudaudit.googleapis.com%2Factivity'
    data.protoPayload.methodName: 'io.k8s.core.v1.pods.create'

Stage 2: keywords

keywords:
    - 'image-policy.k8s.io/break-glass'

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
data.protoPayload.logNameeq
  • cloudaudit.googleapis.com%2Factivity
  • cloudaudit.googleapis.com/activity
data.protoPayload.methodNameeq
  • io.k8s.core.v1.pods.create
data.protoPayload.resource.typeeq
  • k8s_cluster