Detect drift: a running container behaves differently than its image.
AdvancedScenarioSecurity and scanning
Answer
Situation read → Possible compromise or unmanaged changes.
What I'd do → docker diff, compare running processes (docker top), check network connections (ss -tnp inside netns via nsenter), then use runtime tools (Falco, Tetragon) to alert on unexpected exec/file writes. Make containers read-only to turn drift into failures.
Why → Immutability makes anomalies loud.
Interview tip → Snapshot with docker export for forensics before killing it.
More on Security and scanning
A scan reports 300 CVEs in your base image. How do you triage?IntermediateAdd vulnerability scanning to CI so critical findings block the merge.BeginnerWhy is mounting `/var/run/docker.sock` into a container dangerous?IntermediateA developer asks for `--privileged`. What do you do?IntermediateHarden a container run command for a stateless web API.IntermediateA pentester got root inside a container. How bad is it?Advanced