Lion Cipher Lab
Catch container persistence tricks as they happen: eBPF runtime detection with Tracee
- Cloud Security
- Intermediate
- ~60 min
- Free · no account required
Why it matters
Containers are meant to be predictable: an image is built once with everything it needs, then run unchanged. That predictability is a gift to defenders, because it makes certain behaviour stand out. A new executable appearing inside a running container, a cron file being edited, or someone touching sudoers are all things a healthy container almost never does, and they are classic signs of an attacker trying to stay. Runtime security tools watch for exactly this. Tracee, an open-source project from Aqua Security, uses eBPF (a safe way to run small programs inside the Linux kernel) to see every…
What you'll learn
- running Tracee as a privileged container that watches the host with eBPF
- limiting Tracee to chosen signatures with --events and to container activity with --scope container
- writing events as JSON to a file and triaging them with jq
- mapping a Tracee detection to its MITRE ATT&CK technique from the event's metadata
- reading a signature's source to learn exactly what triggers it, and what does not
- explaining why a dropped executable is suspicious in a container but normal on a build machine
Steps in this lab
- Why runtime detection works so well for containers
- Check the host, then start Tracee the documented way
- Point Tracee at four signatures and container activity only
- Know what each signature looks for before you trigger it
- Play the adversary, harmlessly, in a throwaway container
- Triage the detections with jq
- Decide what is normal, then clean up
Open the full interactive lab →