Executive Summary
Palo Alto Networks Unit 42 has detailed a significant post-exploitation technique affecting the SPIFFE/SPIRE machine identity framework. While not yet observed in the wild, the research proves that a threat actor who has already obtained root-level access on a Kubernetes node can bypass workload isolation by spoofing Linux control group (cgroup) information. This allows the attacker to trick the SPIRE agent into issuing cryptographically verifiable identity documents (SVIDs) belonging to other workloads co-located on the same node.
Technical analysis revealed that the SPIRE agent's workload attestation process relies on the process ID (PID) and its associated cgroup path to verify identity. By creating a mock cgroup path and injecting their own PID, an attacker can successfully request SVIDs (X.509 or JWT) from the Workload API socket. This research led to the development of 'Spooffe,' an open-source tool designed to automate the discovery and extraction of these workload identities for security testing purposes.
This finding is critical for organizations using cloud-native identity frameworks, as it demonstrates that the security of machine identities is inextricably linked to the integrity of the underlying node. If a node is compromised, all identities scoped to it must be considered compromised. Defenders should prioritize hardening nodes, restricting privileged containers, and avoiding reliance on weak, easily spoofable selectors in their SPIRE registration entries.
