Threat Detection in Kubernetes with Falco

30 minutes
  • 2 Learning Objectives

About this Hands-on Lab

Runtime threat detection can be an important component of a secure Kubernetes environment. Falco is a powerful tool in detecting anomalous activity as it occurs. In this lab, you will practice your skills with behavioral analysis in Kubernetes by checking for threats in a real cluster using Falco.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Create a Falco Rules File Configured To Scan the Container

The container in question is running inside a Pod called nginx in the web namespace. The container is also called nginx. For this exercise, you can assume that the container name is unique in the cluster.

Create a falco rules file at /home/cloud-user/nginx-rules.yml with a rule to report any newly-spawned processes in this container.

The rule’s output should include the following:

  • timestamp
  • process name
  • uid
  • container id
  • container image name
Run Falco to Obtain a Report of the Activity and Save It to a File

Falco is already installed on the worker node. Using your rules file, run Falco for 45 seconds or so to obtain a report of the container’s activity.

Save the report to /home/cloud_user/falco-report.log.

Additional Resources

Your company, SecuriCorp, is using Kubernetes to run some application, including a web server.

You've gotten a call from one of your team members indicating that they have seen some suspicious activity occurring in a container. Use Falco to analyze the container for any spawning processes.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?