Skip to content

Container breakout via hostPath volume mount

Platform: Kubernetes

MITRE ATT&CK Tactics

  • Privilege Escalation

Description

Creates a Pod with the entire node root filesystem as a hostPath volume mount

References:

Warm-up:

  • Creates the Stratus Red Team namespace

Detonation:

  • Create a privileged busybox pod with the node root filesystem mounted at "/host" that reads "/etc/passwd" from the host filesystem

Instructions

Detonate with Stratus Red Team
stratus detonate k8s.privilege-escalation.hostpath-volume