Node Workload State
Méthode d’Inspection :
kubectl get pods -A --field-selector spec.nodeName=$TAINTED_NODECritère de Succès : Only standard authorized DaemonSets remain active.
Traite les évasions de conteneurs et charges Kubernetes compromises en figeant l’état d’exécution du runtime (cri-o / containerd), en drainant les nœuds infectés, révoquant les signatures d’images et renforçant Pod Security Admission.
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
Méthode d’Inspection :
kubectl get pods -A --field-selector spec.nodeName=$TAINTED_NODECritère de Succès : Only standard authorized DaemonSets remain active.
Admission Controller Enforcement
Méthode d’Inspection :
kubectl run test-pod --image=$IMAGE_REGISTRY_URICritère de Succès : Admission webhook denies pod admission with policy violation message.