Executive Summary
Recent research from Palo Alto Networks’ Unit 42 has unveiled critical vulnerabilities in the Secure Production Identity Framework for Everyone (SPIFFE) and its implementation, SPIRE, particularly within Kubernetes environments. The study reveals that an attacker with root access to a compromised Kubernetes node can exploit these systems to impersonate co-located workloads and harvest SPIFFE Verifiable Identity Documents (SVIDs). This finding underscores a fundamental flaw in the trust model of machine identity systems, which assumes that the node itself is secure. While this technique has not yet been observed in the wild, it poses a significant risk to organizations relying on SPIFFE/SPIRE for workload identity management.
SPIFFE and SPIRE are designed to replace long-lived secrets with short-lived, cryptographically verifiable workload identities, enhancing security in cloud-native environments. However, the research demonstrates that an attacker can manipulate the Linux control group (cgroup) information used by the SPIRE agent during workload attestation, effectively tricking it into issuing a valid SVID to an attacker-controlled process. To assist defenders in assessing their vulnerability to such attacks, the research team has developed Spooffe, an open-source tool for testing cgroup metadata manipulation.
Organizations implementing SPIFFE/SPIRE should assume that root access to a node compromises all cryptographic identities associated with it. To mitigate risks, it is recommended to harden nodes, restrict root access, prohibit privileged containers, and minimize reliance on weak selectors.
Introduction
SPIFFE is an open standard aimed at addressing the “Secret Zero” problem—ensuring secure introduction of the initial secret necessary for establishing trust. It replaces long-lived secrets with short-lived workload identities, thereby enforcing strong identity boundaries between workloads. However, the effectiveness of SPIFFE relies on the assumption that the underlying node is trusted. If an attacker gains root access, they can exploit identity mechanisms to retrieve all identities authorized for that node.
This research investigates how attackers can leverage root access to harvest workload identities from a compromised node. It lays the groundwork by explaining machine identity and how SPIFFE establishes and verifies trust in cloud-native environments. The study also demonstrates workload impersonation through selector spoofing and introduces the Spooffe tool for automating the extraction of workload identities (SVIDs).
Workload Impersonation: Selector Spoofing via Cgroup
The attack method detailed in the research requires root-level access to the node. It reveals that workload attestation heavily relies on the workload’s cgroup path. An attacker with root access can manipulate this cgroup path, tricking the SPIRE agent into believing that the attestation claims belong to a different workload, thus obtaining that workload’s identity. This manipulation allows the attacker to impersonate the victim workload and access any services or resources trusted under that identity.
For instance, the research team created a registration entry for a pod named workload-a and successfully fetched its identity. They then demonstrated that by spoofing the cgroup path, they could retrieve the identity associated with workload-a using the SPIRE agent, effectively bypassing the security measures in place.
Conclusion
This research highlights a critical vulnerability in the SPIFFE/SPIRE framework: the assumption of node integrity. Once an attacker gains root access, they can manipulate cgroup information to mislead the SPIRE agent into issuing valid SVIDs to an attacker-controlled process. This breach of trust allows attackers to impersonate other workloads on the same node, posing a significant risk to organizations relying on these identity systems.
To safeguard against such vulnerabilities, organizations must treat node-level compromise as equivalent to the compromise of all identities scoped to that node. Implementing strict access controls, minimizing the use of privileged containers, and enhancing the robustness of identity selectors are essential steps in mitigating these risks.
For further details, refer to the full research findings by Palo Alto Networks here.
Follow Cyber Warriors Middle East for further cybersecurity features, analysis and insights.



