title: Privileged Or Host-Namespace Pod Created
id: 7e4d3c2b-1a09-4f8e-bc7d-6a5e4f3d2c1b
status: experimental
description: |
    Detects creation of a Pod that is privileged, shares a host namespace (hostPID, hostIPC,
    hostNetwork) or mounts a hostPath volume. These are the building blocks of a container
    escape to the node. Requires the audit policy to log pods at RequestResponse (or at least
    Request) level: at Metadata level the pod spec is absent and this rule cannot fire.
references:
    - https://kubernetes.io/docs/tasks/debug/debug-cluster/audit/
    - https://attack.mitre.org/techniques/T1611/
author: PurpleLog
date: 2026-10-17
tags:
    - attack.privilege-escalation
    - attack.t1611
logsource:
    product: kubernetes
    service: audit
detection:
    selection_create:
        verb: 'create'
        objectRef.resource: 'pods'
    selection_fields:
        - requestObject.spec.containers.securityContext.privileged: true
        - requestObject.spec.hostPID: true
        - requestObject.spec.hostIPC: true
        - requestObject.spec.hostNetwork: true
        - requestObject.spec.volumes.hostPath.path: '*'
    condition: selection_create and selection_fields
falsepositives:
    - Monitoring agents, CNI and storage DaemonSets legitimately run privileged or mount hostPath
    - Scope the rule to application namespaces and exclude known system workloads
level: high
