Skills2026年4月11日·1 分钟阅读

Falco — Cloud Native Runtime Security & Threat Detection

Falco is an open-source runtime security tool that detects abnormal activity in containers and hosts using eBPF and syscalls. Real-time threat detection for Kubernetes.

Agent 就绪

先审查再安装

这个资产需要先审查。复制的指令会要求 Agent dry-run、列出写入项,确认后再继续。

Needs Confirmation · 64/100策略:需确认
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Single
信任
信任等级:Established
入口
step-1.md
先审查命令
npx -y tokrepo@latest install e6d09344-3558-11f1-9bc6-00163e2b0d79 --target codex

先 dry-run,确认写入项后再运行此命令。

TL;DR
Falco detects runtime threats in containers and Kubernetes using eBPF syscall monitoring and custom rules.
§01

What it is

Falco is an open-source runtime security tool that detects abnormal behavior in containers, hosts, and Kubernetes clusters. It uses eBPF to monitor system calls in real time and matches them against security rules. When a rule triggers (e.g., a container spawns an unexpected shell, reads sensitive files, or makes suspicious network connections), Falco generates an alert.

Falco targets security teams and SREs who need runtime threat detection for containerized environments. It acts as an intrusion detection system (IDS) that runs alongside your workloads without modifying application code.

§02

How it saves time or tokens

Falco provides out-of-the-box security rules for common threats: shell execution in containers, sensitive file access, unexpected network activity, and privilege escalation. Without Falco, you would need to build custom monitoring for each of these scenarios. Falco's rules are maintained by the community and updated for new attack patterns. Integration with Kubernetes admission controllers lets you block suspicious workloads before they run.

§03

How to use

  1. Install Falco via Helm:
helm repo add falcosecurity https://falcosecurity.github.io/charts
helm install falco falcosecurity/falco \
  --namespace falco --create-namespace \
  --set driver.kind=modern_ebpf
  1. View Falco alerts:
kubectl logs -n falco -l app.kubernetes.io/name=falco -f
  1. Customize rules by editing the Falco rules file or adding custom rule ConfigMaps.
§04

Example

# Custom Falco rule: Detect shell in container
- rule: Terminal shell in container
  desc: A shell was used as the entrypoint/exec for a container
  condition: >
    spawned_process and container and
    shell_procs and proc.tty != 0
  output: >
    Shell spawned in container
    (user=%user.name container=%container.name
    shell=%proc.name parent=%proc.pname)
  priority: WARNING
  tags: [container, shell, mitre_execution]
§05

Related on TokRepo

This tool integrates with standard development workflows and requires minimal configuration to get started. It is available as open-source software with documentation and community support through the official repository. The project follows semantic versioning for stable releases.

For teams evaluating this tool, the key advantage is reducing manual work in repetitive tasks. The automation provided by the built-in features means less custom code to maintain and fewer integration points to manage. This translates directly to lower maintenance costs and faster iteration cycles.

§06

Common pitfalls

  • Falco's eBPF driver requires a recent kernel version (5.8+); older kernels fall back to the kernel module driver, which requires additional privileges.
  • Default rules generate many alerts on busy clusters; tune the rules to suppress known-good behaviors to reduce alert fatigue.
  • Falco monitors but does not block by default; integrate with Kubernetes admission controllers or response engines (falco-sidekick) for active enforcement.

常见问题

What is eBPF and why does Falco use it?+

eBPF (extended Berkeley Packet Filter) allows running sandboxed programs in the Linux kernel without loading kernel modules. Falco uses eBPF to intercept system calls efficiently, providing runtime visibility without the security risks of kernel modules.

Does Falco work outside Kubernetes?+

Yes. Falco monitors system calls on any Linux host, containerized or not. It works with Docker, containerd, CRI-O, and bare metal systems. Kubernetes integration adds container and pod metadata to alerts.

How does Falco differ from a firewall?+

Firewalls filter network traffic based on rules. Falco monitors system call behavior at runtime, detecting actions like file access, process execution, and privilege changes. They serve complementary roles in a defense-in-depth strategy.

Can I write custom Falco rules?+

Yes. Falco rules are written in YAML using a condition/output format. Conditions match on system call properties (process name, user, container, file path). The rule language supports macros and lists for reusability.

Is Falco a CNCF project?+

Yes. Falco is a CNCF graduated project, which means it has met the maturity requirements for production adoption. It is maintained by the Falco community with contributions from multiple organizations.

引用来源 (3)

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产