Node Workload State
Inspection Method:
kubectl get pods -A --field-selector spec.nodeName=$TAINTED_NODESuccess Criteria: Only standard authorized DaemonSets remain active.
Addresses container escapes and hijacked Kubernetes workloads by checkpointing container runtime state (cri-o / containerd), cordoning and draining tainted worker nodes, revoking container registry digest signatures, and deploying hardened pod security admission policies.
kubectlcrictltarcosigntrivy# Use crictl to capture container diff layercrictl checkpoint --export=/tmp/container_checkpoint.tar $CONTAINER_IDsha256sum /tmp/container_checkpoint.tar > /tmp/container_checkpoint.sha256# Upload to forensic evidence bucketaws s3 cp /tmp/container_checkpoint.tar s3://forensic-evidence-vault/containers/Container memory dump, Container rootfs diff tarball# Prevent new pods from scheduling onto nodekubectl cordon $TAINTED_NODE# Evict all pods gracefully with zero tolerance for compromised podkubectl drain $TAINTED_NODE --delete-emptydir-data --force --ignore-daemonsets# Delete compromised workload manifestkubectl delete deployment $COMPROMISED_DEPLOYMENT -n $NAMESPACEPod description YAML, Kubernetes audit log excerpt# Taint image in registrycosign clean $IMAGE_REGISTRY_URI# Re-scan image with Trivy to identify root exploittrivy image --severity CRITICAL $IMAGE_REGISTRY_URIImage vulnerability bill of materials (SBOM)Node Workload State
Inspection Method:
kubectl get pods -A --field-selector spec.nodeName=$TAINTED_NODESuccess Criteria: Only standard authorized DaemonSets remain active.
Admission Controller Enforcement
Inspection Method:
kubectl run test-pod --image=$IMAGE_REGISTRY_URISuccess Criteria: Admission webhook denies pod admission with policy violation message.