0Pricing
Cyber Security Academy · Lesson

Runtime Security

Protect running containers.

Runtime Security is a free Cyber Security Academy lesson on CoddyKit — lesson 3 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Cyber Security Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

What Is Runtime Security

Runtime security protects containers while they are actually running, not just before they start.

Scanning catches problems in the image; runtime security watches for attacks during live operation.

Why Runtime Matters

A perfectly scanned image can still be attacked at runtime.

Attackers exploit bugs, abuse credentials, or trigger unexpected behavior after the container is launched, which scanning alone cannot catch.

Run as Non-Root

The simplest runtime hardening is to avoid root.

Define a non-root user so a compromised process has limited power:

USER 1001

Add this to your image and the container runs unprivileged.

Read-Only Filesystems

Most apps do not need to write to their own filesystem.

Making it read-only stops attackers from dropping malicious files:

docker run --read-only myapp

Drop Capabilities

Linux capabilities grant fine-grained powers. Containers rarely need all of them.

Drop everything, then add back only what you need:

docker run --cap-drop ALL --cap-add NET_BIND_SERVICE myapp

Set Resource Limits

Limits prevent one container from starving others.

docker run --memory 256m --cpus 0.5 myapp

This protects the host against accidental or malicious resource exhaustion.

Seccomp Profiles

Seccomp restricts which system calls a container may use.

Blocking dangerous syscalls shrinks the attack surface even if the app is compromised. Most runtimes ship a sensible default profile.

Behavioral Monitoring

Runtime tools watch what a container actually does.

A tool like Falco can alert when something unexpected happens, such as a shell spawning inside a web container.

Detecting Drift

A running container should behave like its image. When new binaries appear or unexpected processes start, that is drift.

Drift often signals that an attacker has gained a foothold.

Responding to Threats

When runtime monitoring detects an attack, you can respond fast:

  • Kill the suspicious process
  • Isolate the container from the network
  • Replace it with a fresh, clean instance

Immutable Containers

A strong pattern is treating containers as immutable: never patch a running one, just replace it.

This keeps every container clean and makes attacker persistence much harder.

Quick Check

Which runtime setting most reduces the damage if a container process is compromised?

Recap

Runtime security protects live containers with non-root users, read-only filesystems, dropped capabilities, resource limits, seccomp, and behavioral monitoring.

Treat containers as immutable and respond fast to detected threats.

Frequently asked questions

Is the “Runtime Security” lesson free?

Yes — the full text of “Runtime Security” is free to read here on the web, and the Cyber Security Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Cyber Security Academy course, upgrade to CoddyKit PRO.

What will I learn in “Runtime Security”?

Protect running containers. You practise Cyber Security Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start Cyber Security Academy?

No prior experience is required. Cyber Security Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 3 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “Runtime Security” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this Cyber Security Academy lesson?

Yes. Every Cyber Security Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. Container Threats
  2. Image Scanning
  3. Runtime Security
  4. Kubernetes Security Basics
← Back to Cyber Security Academy