In the latest installment of my attack-and-defense, Capture the Flag demo-focused webinar series, I demonstrate my attack on the Rick and Morty-themed “RickdiculouslyEasy Capture the Flag system” and then discuss how to break that attack.
Through this CTF, you will learn how to:
- Prevent the compromise through proactive measures
- Contain the compromise to reduce the probability of lateral movement
- Detect and respond to the compromise quickly
What’s New for this CTF?
For the Rickdiculously CTF exercise, I’ve added an extra vulnerability via a Docker container. The container brings a custom trojan horse to the system.
After we use the trojan horse to get root access, we turn around and use that access to introduce you to a powerful Linux kernel feature called "seccomp," short for "secure computing mode."
We then build a profile for our trojan horse application, one where the application can serve as a honeypot, revealing the bad actor who knows the trojan horse password, but depriving that actor of the root access they'd normally get.
Even if you've never heard of seccomp, the chances are good that you've used software that leverages it. Google's Chrome browser and Android mobile operating system both use seccomp. KVM, a hypervisor that powers public clouds, also uses seccomp, as do container runtimes like LXD and Docker.
If you're already familiar with Linux security modules like AppArmor and SELinux, it's useful to know that you can use seccomp with them as a complementary containment technology. While both AppArmor and SELinux focus on file path, network port, and root capability controls, seccomp confines a process based on the system call (syscall) list that it uses.