πŸ“šBook Signing at KubeCon EU 2026Meet us at Booking.com HQ (Mon 18:30-21:00) & vCluster booth #521 (Tue 24 Mar, 12:30-1:30pm) β€” free book giveaway!RSVP Booking.com Event
Security intermediate ⏱ 15 minutes K8s 1.28+

Falco Runtime Security for Kubernetes

Deploy Falco for Kubernetes runtime threat detection. Detect shell spawns in containers, privilege escalation, sensitive file access, and suspicious network

By Luca Berton β€’ β€’ πŸ“– 5 min read

πŸ’‘ Quick Answer: security

The Problem

Engineers need production-ready guides for these essential Kubernetes ecosystem tools. Incomplete documentation leads to misconfiguration and security gaps.

The Solution

Install Falco

helm repo add falcosecurity https://falcosecurity.github.io/charts
helm install falco falcosecurity/falco \
  --namespace falco --create-namespace \
  --set falcosidekick.enabled=true \
  --set falcosidekick.config.slack.webhookurl="https://hooks.slack.com/..." \
  --set driver.kind=ebpf

How Falco Works

Falco uses eBPF probes to monitor system calls in real time β€” no sidecar needed. It runs as a DaemonSet and detects suspicious behavior inside containers.

Default Rules Detect

ThreatRuleSeverity
Shell in containerTerminal shell in containerWarning
Read sensitive fileRead sensitive file untrustedWarning
Write to /etcWrite below /etcError
Privilege escalationContainer privilege escalationCritical
Unexpected networkUnexpected outbound connectionWarning
Crypto miningDetect crypto miners using the Stratum protocolCritical

Custom Rules

# /etc/falco/rules.d/custom-rules.yaml
- rule: Unauthorized Process in Nginx
  desc: Detect unexpected processes in nginx containers
  condition: >
    spawned_process and container and
    container.image.repository = "nginx" and
    not proc.name in (nginx)
  output: >
    Unexpected process in nginx (user=%user.name command=%proc.cmdline
    container=%container.name image=%container.image.repository)
  priority: WARNING
  tags: [container, process]

- rule: Database Port Scan
  desc: Detect connections to database ports from non-app containers
  condition: >
    outbound and container and
    fd.sport in (3306, 5432, 27017, 6379) and
    not container.image.repository in (my-app, migration-tool)
  output: >
    Database connection from unauthorized container
    (container=%container.name image=%container.image.repository dest=%fd.name)
  priority: ERROR

Falcosidekick β€” Alert Routing

# Route alerts to multiple destinations
config:
  slack:
    webhookurl: "https://hooks.slack.com/..."
    minimumpriority: warning
  pagerduty:
    routingkey: "<key>"
    minimumpriority: critical
  elasticsearch:
    hostport: "http://elasticsearch:9200"
    index: falco
    minimumpriority: notice
graph TD
    A[Container syscalls] --> B[eBPF probe]
    B --> C[Falco engine]
    C --> D{Rule match?}
    D -->|Yes| E[Falcosidekick]
    E --> F[Slack / PagerDuty / SIEM]
    D -->|No| G[Normal operation]

Frequently Asked Questions

Falco vs Pod Security Standards?

PSS prevents misconfigurations at admission time. Falco detects runtime threats after pods are running. They’re complementary β€” PSS is prevention, Falco is detection.

Performance impact?

eBPF-based Falco adds <1% CPU overhead per node. It’s much lighter than ptrace-based or sidecar approaches.

Best Practices

  • Start with default configurations and customize as needed
  • Test in a non-production cluster first
  • Monitor resource usage after deployment
  • Keep components updated for security patches

Key Takeaways

  • This tool fills a critical gap in the Kubernetes ecosystem
  • Follow the principle of least privilege for all configurations
  • Automate where possible to reduce manual errors
  • Monitor and alert on operational metrics
#falco #runtime-security #threat-detection #intrusion-detection #security
Luca Berton
Written by Luca Berton

Principal Solutions Architect specializing in Kubernetes, AI/GPU infrastructure, and cloud-native platforms. Author of Kubernetes Recipes and creator of CopyPasteLearn courses.

Kubernetes Recipes book cover

Want More Kubernetes Recipes?

This recipe is from Kubernetes Recipes, our 750-page practical guide with hundreds of production-ready patterns.

Luca Berton Ansible Pilot Ansible by Example Open Empower K8s Recipes Terraform Pilot CopyPasteLearn ProteinLens