The Machine With Many Faces Post-Exploitation Identity Misus... - #405
Open
carlospolop wants to merge 1 commit into
Open
carlospolop wants to merge 1 commit into
carlospolop wants to merge 1 commit into
Conversation
Collaborator
Author
🔗 Additional ContextOriginal Blog Post: https://unit42.paloaltonetworks.com/kubernetes-spiffe-spire-identity-spoofing Content Categories: Based on the analysis, this content was categorized under "Pentesting Cloud > Kubernetes Pentesting > SPIFFE/SPIRE Workload Identity Spoofing (Cgroup-Based Workload Attestation Abuse), cross-referenced from Attacking Kubernetes from inside a Pod and Kubernetes Hardening". Repository Maintenance:
Review Notes:
Bot Version: HackTricks News Bot v1.0 |
Collaborator
Author
|
merge |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 Automated Content Update
This PR was automatically generated by the HackTricks News Bot based on a technical blog post.
📝 Source Information
🎯 Content Summary
Research focus, prerequisites and impact. Published on September 10, 2026, Unit 42 describes a post-exploitation workload-identity spoofing technique against SPIFFE/SPIRE. The attacker must already have root-level or equivalent administrative control of a Kubernetes node running a SPIRE Agent. By manipulating Linux cgroup metadata used during workload attestation, the attacker can make an attacker-controlled process appear to belong to another workload colocated on the same n...
🔧 Technical Details
Cgroup-based workload selector spoofing. A root attacker on a Kubernetes node can manipulate the cgroup metadata associated with an attacker-controlled process. The SPIRE Kubernetes workload attestor reads
/proc/<pid>/mountinfoor/proc/<pid>/cgroupsand parses a pod UID and container ID from paths such as/kubepods.slice/.../kubepods-besteffort-pod<pod_uid>.slice/cri-containerd-<container_id>.scope. If the values are made to reference another colocated pod, the agent queries Kubernetes metadata and collects selectors for that pod, allowing the attacker process to be evaluated as the target workload. The technique abuses trust in mutable node-local metadata after root compromise rather than bypassing the cryptographic verification of an already-issued SVID.Credential harvesting through the local Workload API. After spoofing the process metadata, the attacker requests