falco
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "falco":https://skillpi.com/zh/skills/deepskill-be18bc6137146407b56880fa936abc11a5a1cc2f6116f66d925d227108671f66。安装前核对上游来源和版本:https://skillhub.cn/skills/user_3c6cb52e/falco-runtime-security-monitor。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
skillhub.cn
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
Falco 容器运行时监控 - 使用 Falco 和 sysdig 库监控容器运行时事件,在检测到可疑系统调用模式时发送警报,并与 Kubernetes 审计日志及 Prometheus AlertManager 集成,实现实时威胁检测。
介绍来源: third_party · user_3c6cb52e · 1.0.0 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: falco
description: Expert guidance for Falco, the CNCF runtime security tool that detects anomalous behavior in containers and Kubernetes clusters using system call monitoring. Helps developers set up Falco for detecting shell spawns in containers, unexpected network connections, file access violations, and privilege escalation — all in real-time with zero application changes.
license: Apache-2.0
compatibility: No special requirements
metadata:
author: terminal-skills
version: 1.0.0
category: devops
tags:
- runtime-security
- kubernetes
- containers
- threat-detection
- ebpfFalco — Runtime Threat Detection
Overview
Falco, the CNCF runtime security tool that detects anomalous behavior in containers and Kubernetes clusters using system call monitoring. Helps developers set up Falco for detecting shell spawns in containers, unexpected network connections, file access violations, and privilege escalation — all in real-time with zero application changes.
Instructions
Deployment
# Helm install on Kubernetes
helm repo add falcosecurity https://falcosecurity.github.io/charts
helm install falco falcosecurity/falco \
--namespace falco --create-namespace \
--set driver.kind=modern_ebpf \
--set falcosidekick.enabled=true \
--set falcosidekick.config.slack.webhookurl="${SLACK_WEBHOOK}"
# Docker (single host)
docker run --rm -i -t \
--privileged \
-v /var/run/docker.sock:/host/var/run/docker.sock \
-v /proc:/host/proc:ro \
falcosecurity/falco:latest
Custom Rules
# falco_rules.local.yaml — Custom detection rules
# Detect shell spawned inside a container
- rule: Shell Spawned in Container
desc: A shell (bash, sh, zsh) was started inside a container
condition: >
spawned_process and container and
proc.name in (bash, sh, zsh, ash, dash) and
not proc.pname in (cron, supervisord, entrypoint.sh)
output: >
Shell spawned in container
(user=%user.name container=%container.name image=%container.image.repository
shell=%proc.name parent=%proc.pname cmdline=%proc.cmdline)
priority: WARNING
tags: [container, shell, mitre_execution]
# Detect sensitive file access
- rule: Read Sensitive File
desc: A process read a sensitive file (passwords, keys, tokens)
condition: >
open_read and container and
fd.name in (/etc/shadow, /etc/passwd, /root/.ssh/id_rsa,
/var/run/secrets/kubernetes.io/serviceaccount/token)
output: >
Sensitive file read (user=%user.name file=%fd.name container=%container.name
image=%container.image.repository command=%proc.cmdline)
priority: ERROR
tags: [filesystem, mitre_credential_access]
# Detect outbound connection to unexpected destinations
- rule: Unexpected Outbound Connection
desc: Container making outbound connection to non-allowlisted IP
condition: >
outbound and container and
not fd.sip in (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) and
not fd.sport in (53, 443, 80) and
not container.image.repository in (allowed_outbound_images)
output: >
Unexpected outbound connection
(container=%container.name image=%container.image.repository
connection=%fd.name user=%user.name command=%proc.cmdline)
priority: WARNING
tags: [network, mitre_exfiltration]
# Detect crypto mining
- rule: Crypto Mining Detected
desc: Process connecting to known mining pool or running mining binary
condition: >
spawned_process and container and
(proc.name in (xmrig, minerd, cpuminer, ethminer) or
proc.cmdline contains "stratum+tcp://" or
proc.cmdline contains "pool.minexmr")
output: >
Crypto mining activity detected
(container=%container.name image=%container.image.repository
command=%proc.cmdline user=%user.name)
priority: CRITICAL
tags: [crypto, mitre_resource_hijacking]
# Detect privilege escalation
- rule: Privilege Escalation via setuid
desc: Process changed to root via setuid binary
condition: >
spawned_process and container and
user.uid != 0 and proc.uid = 0 and
not proc.name in (sudo, su, ping)
output: >
Privilege escalation detected
(user=%user.name container=%container.name command=%proc.cmdline)
priority: CRITICAL
tags: [users, mitre_privilege_escalation]
# Lists referenced by rules
- list: allowed_outbound_images
items: [nginx, envoyproxy/envoy, haproxy]
Falcosidekick Integration
# Falcosidekick routes Falco alerts to 50+ outputs
# values.yaml for Helm
falcosidekick:
enabled: true
config:
slack:
webhookurl: "https://hooks.slack.com/services/xxx"
minimumpriority: "warning"
messageformat: |
*{{ .Priority }}* — {{ .Rule }}
{{ .Output }}
Container: {{ index .OutputFields "container.name" }}
Image: {{ index .OutputFields "container.image.repository" }}
pagerduty:
routingKey: "xxx"
minimumpriority: "critical"
# Forward to SIEM
elasticsearch:
hostPort: "https://es.example.com:9200"
index: "falco-alerts"
minimumpriority: "warning"
Installation
# Helm (Kubernetes — recommended)
helm repo add falcosecurity https://falcosecurity.github.io/charts
helm install falco falcosecurity/falco -n falco --create-namespace
# Linux package
curl -fsSL https://falco.org/repo/falcosecurity-packages.asc | gpg --dearmor -o /usr/share/keyrings/falco-archive-keyring.gpg
apt-get install falco
Examples
Example 1: Setting up Falco for a microservices project
User request:
I have a Node.js API and a React frontend running in Docker. Set up Falco for monitoring/deployment.
The agent creates the necessary configuration files based on patterns like # Helm install on Kubernetes, sets up the integration with the existing Docker setup, configures appropriate defaults for a Node.js + React stack, and provides verification commands to confirm everything is working.
Example 2: Troubleshooting custom rules issues
User request:
Falco is showing errors in our custom rules. Here are the logs: [error output]
The agent analyzes the error output, identifies the root cause by cross-referencing with common Falco issues, applies the fix (updating configuration, adjusting resource limits, or correcting syntax), and verifies the resolution with appropriate health checks.
Guidelines
- eBPF driver — Use
modern_ebpfdriver for best performance and compatibility; no kernel module compilation needed - Start with default rules — Falco ships with 100+ rules; enable them first, then add custom rules for your environment
- Allowlists over blocklists — Define what's expected (allowed images, allowed processes); flag everything else as anomalous
- Falcosidekick for routing — Route alerts to Slack, PagerDuty, SIEM; Falcosidekick supports 50+ outputs
- Priority levels — Use CRITICAL for active attacks, ERROR for policy violations, WARNING for suspicious activity
- MITRE ATT&CK tags — Tag rules with MITRE tactics; helps incident response teams understand the attack stage
- Tune for noise — Expect noise initially; add exceptions for known-good processes (health checks, init scripts)
- Combine with admission control — Falco detects at runtime; pair with OPA/Kyverno for preventive controls at deploy time
当前收录版本
1.0.0
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 提供完整的容器运行时安全监控解决方案,覆盖部署、规则配置、告警集成全流程
- 针对云原生高频安全需求,具备明确的生产环境实用价值
亮点
- 触发描述精准完整,覆盖 Falco 核心功能关键词,边界清晰不易误触
待提升项
-
缺少独立 When to Use 章节 原报告严重程度:轻微
文档结构完整但未设置独立的 'When to Use' 章节
改进建议:建议在 Overview 后增加独立的 'When to Use' 章节,明确说明适用场景和使用时机
亮点
- 文档结构清晰,包含端到端示例和最佳实践指南
- frontmatter 完整,符合 Skill 规范要求
亮点
- 提供多种部署方式(Helm/Docker)和完整的配置示例
- 包含故障排查指南和调优建议,确保执行可靠性
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
-
安装或获取外部依赖
使用官方来源并锁定版本,在隔离环境检查安装脚本。当前文档检查不覆盖后续下载的代码。
主文档提及 · 第 165 行 -
管理员或提升权限
确认确有必要再提升权限;不要关闭防护、绕过证书验证或扩大整个系统的访问权限。
主文档提及 · 第 116 行
文档引用的域名或地址
这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。
- es.example.com
- falco.org
- falcosecurity.github.io
- hooks.slack.com
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。