Interview Prep/DevSecOps/Kubernetes Security

What is Falco and how do its rules work?

IntermediateConceptKubernetes Security
Answer

Falco is a CNCF runtime security tool that watches syscalls (and Kubernetes audit events via plugins) and alerts when behaviour matches a rule: shell in a container, write below /etc, read of /etc/shadow, unexpected outbound connection.

- rule: Shell spawned in container
  desc: Interactive shell started inside a container
  condition: spawned_process and container and proc.name in (bash, sh, zsh)
  output: "Shell in container (user=%user.name container=%container.name image=%container.image.repository cmd=%proc.cmdline)"
  priority: WARNING
  tags: [container, mitre_execution]

Falco detects; it does not block. Alerts go through Falcosidekick to Slack, a SIEM, or a response function.

All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Kubernetes Security