Interview Prep/DevSecOps/Compliance as Code, Threat Modeling & Incident Response

Which tools do you use for container and Kubernetes forensics?

AdvancedProductionCompliance as Code, Threat Modeling & Incident Response
Answer
  • kubectl debug with an ephemeral container to inspect a running pod without changing its image.
  • crictl on the node: crictl inspect, crictl ps -a, and exporting the container filesystem.
  • Checkpointing a running container through the kubelet checkpoint API (feature gated), which captures memory and state for offline analysis.
  • Node volume snapshots analysed in a forensics account.
  • Runtime event history from Falco, Tetragon or GuardDuty Runtime Monitoring.
  • Kubernetes audit logs and cloud logs to reconstruct the API actions.

Containers are short-lived, so the logs and runtime events collected before the incident are usually more valuable than the pod itself.

All DevSecOps questions Roadmap: Policy as code

More on Compliance as Code, Threat Modeling & Incident Response