Use this when detecting suspicious behaviour in running containers.
Runtime Security
Container runtime security monitors running containers for suspicious behaviour — unexpected processes, shells, file changes or network connections — with tools like Falco, and enforces policies at admission.
1. Runtime security detects unexpected behaviour: shells in containers, writes to binaries, privilege escalation.
2. Falco, Tetragon, EDR.
3. Read-only root filesystems.
4. Alert to SIEM.
5. Respond by killing/isolating pods.
container activity → runtime sensor → alert
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Common mistakes Narrow the fault
- Alerts with no owner, so nobody responds.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Shells, unexpected processes and writes are red flags.
- Falco and similar tools watch syscalls.
- Admission policies stop risky deployments.
falco --list— runtime rules- Falco/EDR container alerts — detections
- Drift detection (new binaries in containers) — integrity
ReferenceWhy it matters1 section · depth on demand
In depth
Runtime security monitors containers while they run and detects or blocks malicious behaviour: unexpected processes (a shell in a web container), writes to system directories, privilege escalation, suspicious network connections, cryptomining.
| Tool | Approach |
|---|---|
| Falco | eBPF/kernel event rules |
| Tetragon, Tracee | eBPF-based detection and enforcement |
| Commercial CNAPP/CWPP | Behaviour baselines, drift prevention |
| seccomp, AppArmor, SELinux | Restrict system calls and access |
- rule: Shell in container
condition: spawned_process and container and proc.name in (bash, sh, zsh)
output: "Shell started in container %container.name by %user.name"
priority: WARNING
Immutable containers make drift detection powerful: any new executable at runtime is suspicious.
ReferenceImportant terms & boundaries2 sections · depth on demand
Tools
| Tool | Approach |
|---|---|
| Falco | Syscall rules (eBPF) |
| Tetragon | eBPF observability and enforcement |
| Sysdig, commercial CNAPP | Runtime detection |
Example alerts: shell in a container, write below /etc, unexpected outbound connection.
Example
Falco rule idea: alert when a shell starts inside a container (spawned_process and container and shell_procs). Check rule output in journalctl -u falco.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Container Security → Runtime Security. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://csrc.nist.gov/pubs/sp/800/190/final · confidence 94%