Step-by-step answer
Core 75 min7 stepsBuild and attack a local code runner
A standard-library Python runner that starts a fresh python:3.12-slim container per call with no network, a read-only root, memory, CPU and process limits, a non-root user, a host-side timeout and a stdout cap, then removes the container whatever happened. An eight-payload attack suite checks which limit stops which attack, and a fake docker CLI exercises the host-side logic without a daemon.
Back to the exercise