[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6AEBCHXPSG3SGCMWF4BT1XQ":3,"skill-same:01M6AEBCHXPSG3SGCMWF4BT1XQ":108},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":51,"linkOnly":52,"markdownContent":53,"markdownBody":54,"frontMatter":55,"refName":63,"commitSha":64,"skillDirectory":65,"forksCount":66,"repositoryHtmlUrl":67,"repositoryHomepageUrl":68,"ownerHtmlUrl":69,"ownerBlogUrl":70,"ownerDescription":71,"updatedAt":72,"install":73,"resources":86},"01M6AEBCHXPSG3SGCMWF4BT1XQ","detecting-container-runtime-threats-with-falco","Falco容器运行时威胁检测部署","Deploys and operates Falco with the modern eBPF driver in Kubernetes and Docker, covering driver selection, Helm installation, output channels, and the built-in ruleset that detects container escape, namespace abuse, privileged mounts, and anomalous syscalls. Use when standing Falco up on a cluster, choosing between the eBPF and kernel-module drivers, routing Falco alerts into a SIEM or Falcosidekick, or upgrading an existing deployment. Keywords: Falco, modern_ebpf, kernel module, Helm, Falcosidekick, runtime security, syscall. Do not use for authoring individual escape rules - use detecting-container-escape-with-falco-rules.","使用现代 eBPF 驱动程序在 Kubernetes 和 Docker 中部署和运营 Falco，涵盖驱动程序选择、Helm 安装、输出通道，以及用于检测容器逃逸、命名空间滥用、特权挂载和异常系统调用的内置规则集。适用于在集群上部署 Falco、在 eBPF 与内核模块驱动程序之间进行选择、将 Falco 告警路由到 SIEM 或 Falcosidekick，或升级现有部署。不用于编写单个逃逸规则——请使用 detecting-container-escape-with-falco-rules。关键词：Falco、modern_ebpf、内核模块、Helm、Falcosidekick、运行时安全、syscall。","mukul975\u002FAnthropic-Cybersecurity-Skills","mukul975","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F42860185?v=4","01M6ADEQR8T5M4EEG6C67BQCWF","Mahipal","01M6ADJPMYWG1E5GM1FWBE3128",36146,"Apache-2.0",null,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fdetecting-container-runtime-threats-with-falco\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BR4MYFKGCC4WCWVJ50KJ2C","安全工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSJ8FPTACYEEYRWQRNFXKY","安全检测工程","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],"detecting container runtime threats with falco","falco","engineering","syscall-monitoring","container-escape","runtime-security","detection","detection-engineering","container-security","threat-detection","docker","monitoring","ebpf","routing","deployment","siem","cybersecurity","security","kubernetes","kernel","2026-11-10 10:12:30",false,"---\nname: detecting-container-runtime-threats-with-falco\ndescription: >-\n  Deploys and operates Falco with the modern eBPF driver in Kubernetes and Docker, covering\n  driver selection, Helm installation, output channels, and the built-in ruleset that detects\n  container escape, namespace abuse, privileged mounts, and anomalous syscalls. Use when\n  standing Falco up on a cluster, choosing between the eBPF and kernel-module drivers, routing\n  Falco alerts into a SIEM or Falcosidekick, or upgrading an existing deployment. Keywords:\n  Falco, modern_ebpf, kernel module, Helm, Falcosidekick, runtime security, syscall. Do not\n  use for authoring individual escape rules - use detecting-container-escape-with-falco-rules.\ndomain: cybersecurity\nsubdomain: container-security\ntags:\n- falco\n- runtime-security\n- ebpf\n- container-escape\n- syscall-monitoring\n- detection-engineering\n- kubernetes\n- threat-detection\nversion: '1.0'\nauthor: mahipal\nlicense: Apache-2.0\nnist_csf:\n- DE.CM-01\nmitre_attack:\n- T1611\n---\n# Detecting Container Runtime Threats with Falco\n\n## Overview\n\nFalco is the CNCF graduated runtime-security project (originally by Sysdig) that consumes Linux kernel syscalls and Kubernetes audit events through a driver, evaluates them against a YAML rule engine, and emits real-time alerts. It is the de facto open-source detection tool for runtime threats inside containers, including container escape (MITRE ATT&CK T1611, Escape to Host), namespace manipulation (`setns`), privileged mounts, reverse shells, and unexpected outbound connections.\n\nFalco supports three drivers: the **modern eBPF** probe (preferred default, requires kernel >= 5.8, shipped directly inside the Falco binary so no init container is needed), the legacy eBPF probe, and the kernel module (`kmod`). Driver selection is handled by `falcoctl driver config --type {kmod|ebpf|modern_ebpf}` or `driver.kind=modern_ebpf` in the Helm chart. On Kubernetes, Falco runs as a DaemonSet so every node is monitored, and `falcoctl` automatically installs and updates rule artifacts from the Falco rules registry.\n\nThis skill covers authoring and deploying custom Falco rules to detect the container-escape primitives and anomalous-behavior signals that the breakout techniques in this collection produce. Each Falco rule has the fields `rule`, `desc`, `condition`, `output`, `priority`, and optional `tags`; reusable logic is factored into `macro` and `list` objects. Source: falco.org official documentation; falcosecurity\u002Frules repository; Sysdig Falco detection research (e.g., CVE-2025-22224).\n\n## When to Use\n\n- Building runtime detections for a Kubernetes or Docker environment\n- Validating that container-escape and lateral-movement attempts generate alerts (purple-team)\n- Adding coverage for a newly disclosed runtime CVE\n- Hardening a SOC's container telemetry pipeline (Falco -> Falcosidekick -> SIEM)\n\n## Prerequisites\n\n- A Linux host (kernel >= 5.8 for modern eBPF) or Kubernetes cluster you administer\n- Falco install:\n  ```bash\n  # Helm (Kubernetes, modern eBPF, JSON output for SIEM ingest)\n  helm repo add falcosecurity https:\u002F\u002Ffalcosecurity.github.io\u002Fcharts\n  helm repo update\n  helm install falco falcosecurity\u002Ffalco \\\n    --namespace falco --create-namespace \\\n    --set driver.kind=modern_ebpf \\\n    --set collectors.containerd.enabled=true \\\n    --set falco.json_output=true \\\n    --set tty=true\n\n  # Linux package install (Debian\u002FUbuntu)\n  curl -fsSL https:\u002F\u002Ffalco.org\u002Frepo\u002Ffalcosecurity-packages.asc | \\\n    sudo gpg --dearmor -o \u002Fusr\u002Fshare\u002Fkeyrings\u002Ffalco-archive-keyring.gpg\n  echo \"deb [signed-by=\u002Fusr\u002Fshare\u002Fkeyrings\u002Ffalco-archive-keyring.gpg] \\\n    https:\u002F\u002Fdownload.falco.org\u002Fpackages\u002Fdeb stable main\" | \\\n    sudo tee \u002Fetc\u002Fapt\u002Fsources.list.d\u002Ffalcosecurity.list\n  sudo apt-get update -y && sudo apt-get install -y falco\n  ```\n- Basic familiarity with Falco fields (`evt.type`, `proc.name`, `container.id`, `fd.name`)\n\n## Objectives\n\n- Install Falco with the modern eBPF driver\n- Understand the rule\u002Fmacro\u002Flist schema and key Falco filter fields\n- Author custom rules for container escape, `setns`, privileged mounts, sensitive-file reads, and reverse shells\n- Load custom rules and validate syntax\n- Trigger and confirm detections (purple-team validation)\n- Forward alerts to a SIEM via Falcosidekick\n\n## MITRE ATT&CK Mapping\n\n| Technique ID | Name | Tactic |\n|--------------|------|--------|\n| T1611 | Escape to Host | Privilege Escalation |\n| T1059.004 | Command and Scripting Interpreter: Unix Shell | Execution |\n| T1610 | Deploy Container | Defense Evasion \u002F Execution |\n| T1543 | Create or Modify System Process | Persistence |\n| T1071.001 | Application Layer Protocol: Web Protocols | Command and Control |\n\n## Workflow\n\n### Step 1: Install Falco and Confirm the Driver\n\n```bash\n# Kubernetes: confirm the DaemonSet is running on every node\nkubectl get pods -n falco -o wide\nkubectl logs -n falco -l app.kubernetes.io\u002Fname=falco | grep -i \"driver\"\n\n# Linux host: configure driver and start\nsudo falcoctl driver config --type modern_ebpf\nsudo systemctl enable --now falco-modern-bpf.service\nsudo systemctl status falco-modern-bpf.service\n```\n\n### Step 2: Learn the Rule, Macro, and List Schema\n\nCustom rules live in `\u002Fetc\u002Ffalco\u002Ffalco_rules.local.yaml` or `\u002Fetc\u002Ffalco\u002Frules.d\u002F`, referenced from `rules_files` in `\u002Fetc\u002Ffalco\u002Ffalco.yaml`.\n\n```yaml\n# \u002Fetc\u002Ffalco\u002Frules.d\u002Fcustom-escape.yaml\n- list: shell_binaries\n  items: [bash, sh, zsh, dash, ash, ksh]\n\n- macro: spawned_process\n  condition: evt.type in (execve, execveat) and evt.dir = \u003C\n\n- macro: container\n  condition: container.id != host\n```\n\n### Step 3: Write a Container-Escape Detection Rule (release_agent \u002F cgroup)\n\n```yaml\n- rule: Container Escape via cgroup release_agent\n  desc: >\n    Detect a process inside a container writing to a cgroup release_agent or\n    notify_on_release file, a classic privileged-container breakout primitive.\n  condition: >\n    container\n    and spawned_process\n    and (evt.type in (open, openat, openat2) or evt.type=write)\n    and (fd.name endswith \"release_agent\"\n         or fd.name endswith \"notify_on_release\")\n    and evt.is_open_write=true\n  output: >\n    Container escape attempt via cgroup release_agent\n    (user=%user.name command=%proc.cmdline file=%fd.name\n     container=%container.name image=%container.image.repository)\n  priority: CRITICAL\n  tags: [container, mitre_privilege_escalation, T1611]\n```\n\n### Step 4: Detect Namespace Breakout (setns \u002F nsenter)\n\n```yaml\n- rule: Namespace Change via setns to Host\n  desc: >\n    Detect setns\u002Fnsenter used to enter the host namespace (e.g. nsenter -t 1),\n    a common container-to-host escape technique.\n  condition: >\n    evt.type = setns\n    and container\n    and proc.name in (nsenter, unshare)\n  output: >\n    Namespace breakout via setns\u002Fnsenter\n    (user=%user.name proc=%proc.name cmd=%proc.cmdline\n     container=%container.name image=%container.image.repository)\n  priority: CRITICAL\n  tags: [container, mitre_privilege_escalation, T1611]\n```\n\n### Step 5: Detect Privileged Mount and Docker Socket Abuse\n\n```yaml\n- rule: Mount Launched in Privileged Container\n  desc: Detect the mount binary running inside a privileged container.\n  condition: >\n    spawned_process\n    and container\n    and container.privileged = true\n    and proc.name = mount\n  output: >\n    Mount executed in privileged container\n    (cmd=%proc.cmdline container=%container.name image=%container.image.repository)\n  priority: WARNING\n  tags: [container, mitre_privilege_escalation, T1611]\n\n- rule: Docker Socket Accessed From Container\n  desc: A container process reads\u002Fwrites the host Docker daemon socket.\n  condition: >\n    container\n    and (evt.type in (open, openat, openat2, connect))\n    and fd.name = \u002Fvar\u002Frun\u002Fdocker.sock\n  output: >\n    Container touched docker.sock - possible daemon-API escape\n    (proc=%proc.name cmd=%proc.cmdline container=%container.name)\n  priority: CRITICAL\n  tags: [container, mitre_execution, T1610]\n```\n\n### Step 6: Detect Reverse Shells and Sensitive File Reads\n\n```yaml\n- rule: Reverse Shell From Container\n  desc: A shell in a container with stdin\u002Fstdout wired to a network socket.\n  condition: >\n    spawned_process\n    and container\n    and proc.name in (shell_binaries)\n    and (fd.num in (0, 1, 2))\n    and fd.type in (ipv4, ipv6)\n  output: >\n    Reverse shell detected in container\n    (proc=%proc.cmdline connection=%fd.name container=%container.name)\n  priority: CRITICAL\n  tags: [container, mitre_execution, T1059.004]\n\n- rule: Read Sensitive Host File From Container\n  desc: Container reads \u002Fetc\u002Fshadow or similar after a likely escape.\n  condition: >\n    container\n    and (evt.type in (open, openat, openat2))\n    and evt.is_open_read=true\n    and fd.name in (\u002Fetc\u002Fshadow, \u002Fetc\u002Fsudoers, \u002Froot\u002F.ssh\u002Fid_rsa)\n  output: >\n    Sensitive file read from container (file=%fd.name proc=%proc.cmdline\n     container=%container.name)\n  priority: WARNING\n  tags: [container, mitre_credential_access]\n```\n\n### Step 7: Validate Rule Syntax and Load\n\n```bash\n# Dry-run validate a rules file without starting the engine\nsudo falco --validate \u002Fetc\u002Ffalco\u002Frules.d\u002Fcustom-escape.yaml\n\n# Run Falco with only the custom rules to test\nsudo falco -r \u002Fetc\u002Ffalco\u002Frules.d\u002Fcustom-escape.yaml\n\n# Helm: ship custom rules via values (mounted into \u002Fetc\u002Ffalco\u002Frules.d)\nhelm upgrade falco falcosecurity\u002Ffalco -n falco --reuse-values \\\n  --set-file \"customRules.custom-escape\\.yaml\"=.\u002Fcustom-escape.yaml\n```\n\n### Step 8: Trigger and Confirm (Purple-Team)\n\n```bash\n# In a test container, trigger the setns rule\nkubectl run pwn --rm -it --image=alpine --overrides='\n{\"spec\":{\"hostPID\":true,\"containers\":[{\"name\":\"pwn\",\"image\":\"alpine\",\n\"securityContext\":{\"privileged\":true},\"stdin\":true,\"tty\":true,\n\"command\":[\"sh\"]}]}}' -- sh -c 'nsenter -t 1 -m -u -i -n -p -- id'\n\n# Confirm the alert fired\nkubectl logs -n falco -l app.kubernetes.io\u002Fname=falco | grep -i \"Namespace breakout\"\n```\n\n### Step 9: Forward Alerts to a SIEM\n\n```bash\n# Deploy Falcosidekick to fan out alerts (Elastic, Slack, Splunk, etc.)\nhelm upgrade falco falcosecurity\u002Ffalco -n falco --reuse-values \\\n  --set falcosidekick.enabled=true \\\n  --set falcosidekick.config.elasticsearch.hostport=https:\u002F\u002Felastic:9200 \\\n  --set falcosidekick.config.elasticsearch.index=falco\n```\n\n## Tools and Resources\n\n| Tool | Purpose | Source |\n|------|---------|--------|\n| Falco | Runtime syscall detection engine | https:\u002F\u002Ffalco.org |\n| falcoctl | Driver + rules artifact manager | https:\u002F\u002Fgithub.com\u002Ffalcosecurity\u002Ffalcoctl |\n| falcosecurity\u002Frules | Maintained default ruleset | https:\u002F\u002Fgithub.com\u002Ffalcosecurity\u002Frules |\n| Falcosidekick | Alert fan-out to SIEM\u002Fchat | https:\u002F\u002Fgithub.com\u002Ffalcosecurity\u002Ffalcosidekick |\n| Falco Helm chart | Kubernetes DaemonSet deploy | https:\u002F\u002Fgithub.com\u002Ffalcosecurity\u002Fcharts |\n\n## Key Falco Filter Fields\n\n| Field | Meaning |\n|-------|---------|\n| `evt.type` | Syscall name (execve, setns, open, connect) |\n| `evt.dir` | Event direction (`\u003C` exit, `>` enter) |\n| `proc.name` \u002F `proc.cmdline` | Process name \u002F full command line |\n| `container.id` \u002F `container.privileged` | Container identity \u002F privileged flag |\n| `container.image.repository` | Image name |\n| `fd.name` \u002F `fd.type` | File\u002Fsocket path \u002F type (ipv4, ipv6) |\n| `evt.is_open_write` \u002F `evt.is_open_read` | Open intent |\n| `user.name` | Acting user |\n\n## Validation Criteria\n\n- [ ] Falco installed with the modern eBPF driver (DaemonSet on all nodes)\n- [ ] Custom rules file validated with `falco --validate`\n- [ ] release_agent \u002F setns \u002F privileged-mount \u002F docker.sock rules loaded\n- [ ] Reverse-shell and sensitive-file-read rules loaded\n- [ ] Each rule triggered in a lab and the alert confirmed in logs\n- [ ] Priorities set appropriately (CRITICAL for escape primitives)\n- [ ] Alerts forwarded to the SIEM via Falcosidekick\n- [ ] Rule tags include the relevant MITRE technique IDs\n","# Detecting Container Runtime Threats with Falco\n\n## Overview\n\nFalco is the CNCF graduated runtime-security project (originally by Sysdig) that consumes Linux kernel syscalls and Kubernetes audit events through a driver, evaluates them against a YAML rule engine, and emits real-time alerts. It is the de facto open-source detection tool for runtime threats inside containers, including container escape (MITRE ATT&CK T1611, Escape to Host), namespace manipulation (`setns`), privileged mounts, reverse shells, and unexpected outbound connections.\n\nFalco supports three drivers: the **modern eBPF** probe (preferred default, requires kernel >= 5.8, shipped directly inside the Falco binary so no init container is needed), the legacy eBPF probe, and the kernel module (`kmod`). Driver selection is handled by `falcoctl driver config --type {kmod|ebpf|modern_ebpf}` or `driver.kind=modern_ebpf` in the Helm chart. On Kubernetes, Falco runs as a DaemonSet so every node is monitored, and `falcoctl` automatically installs and updates rule artifacts from the Falco rules registry.\n\nThis skill covers authoring and deploying custom Falco rules to detect the container-escape primitives and anomalous-behavior signals that the breakout techniques in this collection produce. Each Falco rule has the fields `rule`, `desc`, `condition`, `output`, `priority`, and optional `tags`; reusable logic is factored into `macro` and `list` objects. Source: falco.org official documentation; falcosecurity\u002Frules repository; Sysdig Falco detection research (e.g., CVE-2025-22224).\n\n## When to Use\n\n- Building runtime detections for a Kubernetes or Docker environment\n- Validating that container-escape and lateral-movement attempts generate alerts (purple-team)\n- Adding coverage for a newly disclosed runtime CVE\n- Hardening a SOC's container telemetry pipeline (Falco -> Falcosidekick -> SIEM)\n\n## Prerequisites\n\n- A Linux host (kernel >= 5.8 for modern eBPF) or Kubernetes cluster you administer\n- Falco install:\n  ```bash\n  # Helm (Kubernetes, modern eBPF, JSON output for SIEM ingest)\n  helm repo add falcosecurity https:\u002F\u002Ffalcosecurity.github.io\u002Fcharts\n  helm repo update\n  helm install falco falcosecurity\u002Ffalco \\\n    --namespace falco --create-namespace \\\n    --set driver.kind=modern_ebpf \\\n    --set collectors.containerd.enabled=true \\\n    --set falco.json_output=true \\\n    --set tty=true\n\n  # Linux package install (Debian\u002FUbuntu)\n  curl -fsSL https:\u002F\u002Ffalco.org\u002Frepo\u002Ffalcosecurity-packages.asc | \\\n    sudo gpg --dearmor -o \u002Fusr\u002Fshare\u002Fkeyrings\u002Ffalco-archive-keyring.gpg\n  echo \"deb [signed-by=\u002Fusr\u002Fshare\u002Fkeyrings\u002Ffalco-archive-keyring.gpg] \\\n    https:\u002F\u002Fdownload.falco.org\u002Fpackages\u002Fdeb stable main\" | \\\n    sudo tee \u002Fetc\u002Fapt\u002Fsources.list.d\u002Ffalcosecurity.list\n  sudo apt-get update -y && sudo apt-get install -y falco\n  ```\n- Basic familiarity with Falco fields (`evt.type`, `proc.name`, `container.id`, `fd.name`)\n\n## Objectives\n\n- Install Falco with the modern eBPF driver\n- Understand the rule\u002Fmacro\u002Flist schema and key Falco filter fields\n- Author custom rules for container escape, `setns`, privileged mounts, sensitive-file reads, and reverse shells\n- Load custom rules and validate syntax\n- Trigger and confirm detections (purple-team validation)\n- Forward alerts to a SIEM via Falcosidekick\n\n## MITRE ATT&CK Mapping\n\n| Technique ID | Name | Tactic |\n|--------------|------|--------|\n| T1611 | Escape to Host | Privilege Escalation |\n| T1059.004 | Command and Scripting Interpreter: Unix Shell | Execution |\n| T1610 | Deploy Container | Defense Evasion \u002F Execution |\n| T1543 | Create or Modify System Process | Persistence |\n| T1071.001 | Application Layer Protocol: Web Protocols | Command and Control |\n\n## Workflow\n\n### Step 1: Install Falco and Confirm the Driver\n\n```bash\n# Kubernetes: confirm the DaemonSet is running on every node\nkubectl get pods -n falco -o wide\nkubectl logs -n falco -l app.kubernetes.io\u002Fname=falco | grep -i \"driver\"\n\n# Linux host: configure driver and start\nsudo falcoctl driver config --type modern_ebpf\nsudo systemctl enable --now falco-modern-bpf.service\nsudo systemctl status falco-modern-bpf.service\n```\n\n### Step 2: Learn the Rule, Macro, and List Schema\n\nCustom rules live in `\u002Fetc\u002Ffalco\u002Ffalco_rules.local.yaml` or `\u002Fetc\u002Ffalco\u002Frules.d\u002F`, referenced from `rules_files` in `\u002Fetc\u002Ffalco\u002Ffalco.yaml`.\n\n```yaml\n# \u002Fetc\u002Ffalco\u002Frules.d\u002Fcustom-escape.yaml\n- list: shell_binaries\n  items: [bash, sh, zsh, dash, ash, ksh]\n\n- macro: spawned_process\n  condition: evt.type in (execve, execveat) and evt.dir = \u003C\n\n- macro: container\n  condition: container.id != host\n```\n\n### Step 3: Write a Container-Escape Detection Rule (release_agent \u002F cgroup)\n\n```yaml\n- rule: Container Escape via cgroup release_agent\n  desc: >\n    Detect a process inside a container writing to a cgroup release_agent or\n    notify_on_release file, a classic privileged-container breakout primitive.\n  condition: >\n    container\n    and spawned_process\n    and (evt.type in (open, openat, openat2) or evt.type=write)\n    and (fd.name endswith \"release_agent\"\n         or fd.name endswith \"notify_on_release\")\n    and evt.is_open_write=true\n  output: >\n    Container escape attempt via cgroup release_agent\n    (user=%user.name command=%proc.cmdline file=%fd.name\n     container=%container.name image=%container.image.repository)\n  priority: CRITICAL\n  tags: [container, mitre_privilege_escalation, T1611]\n```\n\n### Step 4: Detect Namespace Breakout (setns \u002F nsenter)\n\n```yaml\n- rule: Namespace Change via setns to Host\n  desc: >\n    Detect setns\u002Fnsenter used to enter the host namespace (e.g. nsenter -t 1),\n    a common container-to-host escape technique.\n  condition: >\n    evt.type = setns\n    and container\n    and proc.name in (nsenter, unshare)\n  output: >\n    Namespace breakout via setns\u002Fnsenter\n    (user=%user.name proc=%proc.name cmd=%proc.cmdline\n     container=%container.name image=%container.image.repository)\n  priority: CRITICAL\n  tags: [container, mitre_privilege_escalation, T1611]\n```\n\n### Step 5: Detect Privileged Mount and Docker Socket Abuse\n\n```yaml\n- rule: Mount Launched in Privileged Container\n  desc: Detect the mount binary running inside a privileged container.\n  condition: >\n    spawned_process\n    and container\n    and container.privileged = true\n    and proc.name = mount\n  output: >\n    Mount executed in privileged container\n    (cmd=%proc.cmdline container=%container.name image=%container.image.repository)\n  priority: WARNING\n  tags: [container, mitre_privilege_escalation, T1611]\n\n- rule: Docker Socket Accessed From Container\n  desc: A container process reads\u002Fwrites the host Docker daemon socket.\n  condition: >\n    container\n    and (evt.type in (open, openat, openat2, connect))\n    and fd.name = \u002Fvar\u002Frun\u002Fdocker.sock\n  output: >\n    Container touched docker.sock - possible daemon-API escape\n    (proc=%proc.name cmd=%proc.cmdline container=%container.name)\n  priority: CRITICAL\n  tags: [container, mitre_execution, T1610]\n```\n\n### Step 6: Detect Reverse Shells and Sensitive File Reads\n\n```yaml\n- rule: Reverse Shell From Container\n  desc: A shell in a container with stdin\u002Fstdout wired to a network socket.\n  condition: >\n    spawned_process\n    and container\n    and proc.name in (shell_binaries)\n    and (fd.num in (0, 1, 2))\n    and fd.type in (ipv4, ipv6)\n  output: >\n    Reverse shell detected in container\n    (proc=%proc.cmdline connection=%fd.name container=%container.name)\n  priority: CRITICAL\n  tags: [container, mitre_execution, T1059.004]\n\n- rule: Read Sensitive Host File From Container\n  desc: Container reads \u002Fetc\u002Fshadow or similar after a likely escape.\n  condition: >\n    container\n    and (evt.type in (open, openat, openat2))\n    and evt.is_open_read=true\n    and fd.name in (\u002Fetc\u002Fshadow, \u002Fetc\u002Fsudoers, \u002Froot\u002F.ssh\u002Fid_rsa)\n  output: >\n    Sensitive file read from container (file=%fd.name proc=%proc.cmdline\n     container=%container.name)\n  priority: WARNING\n  tags: [container, mitre_credential_access]\n```\n\n### Step 7: Validate Rule Syntax and Load\n\n```bash\n# Dry-run validate a rules file without starting the engine\nsudo falco --validate \u002Fetc\u002Ffalco\u002Frules.d\u002Fcustom-escape.yaml\n\n# Run Falco with only the custom rules to test\nsudo falco -r \u002Fetc\u002Ffalco\u002Frules.d\u002Fcustom-escape.yaml\n\n# Helm: ship custom rules via values (mounted into \u002Fetc\u002Ffalco\u002Frules.d)\nhelm upgrade falco falcosecurity\u002Ffalco -n falco --reuse-values \\\n  --set-file \"customRules.custom-escape\\.yaml\"=.\u002Fcustom-escape.yaml\n```\n\n### Step 8: Trigger and Confirm (Purple-Team)\n\n```bash\n# In a test container, trigger the setns rule\nkubectl run pwn --rm -it --image=alpine --overrides='\n{\"spec\":{\"hostPID\":true,\"containers\":[{\"name\":\"pwn\",\"image\":\"alpine\",\n\"securityContext\":{\"privileged\":true},\"stdin\":true,\"tty\":true,\n\"command\":[\"sh\"]}]}}' -- sh -c 'nsenter -t 1 -m -u -i -n -p -- id'\n\n# Confirm the alert fired\nkubectl logs -n falco -l app.kubernetes.io\u002Fname=falco | grep -i \"Namespace breakout\"\n```\n\n### Step 9: Forward Alerts to a SIEM\n\n```bash\n# Deploy Falcosidekick to fan out alerts (Elastic, Slack, Splunk, etc.)\nhelm upgrade falco falcosecurity\u002Ffalco -n falco --reuse-values \\\n  --set falcosidekick.enabled=true \\\n  --set falcosidekick.config.elasticsearch.hostport=https:\u002F\u002Felastic:9200 \\\n  --set falcosidekick.config.elasticsearch.index=falco\n```\n\n## Tools and Resources\n\n| Tool | Purpose | Source |\n|------|---------|--------|\n| Falco | Runtime syscall detection engine | https:\u002F\u002Ffalco.org |\n| falcoctl | Driver + rules artifact manager | https:\u002F\u002Fgithub.com\u002Ffalcosecurity\u002Ffalcoctl |\n| falcosecurity\u002Frules | Maintained default ruleset | https:\u002F\u002Fgithub.com\u002Ffalcosecurity\u002Frules |\n| Falcosidekick | Alert fan-out to SIEM\u002Fchat | https:\u002F\u002Fgithub.com\u002Ffalcosecurity\u002Ffalcosidekick |\n| Falco Helm chart | Kubernetes DaemonSet deploy | https:\u002F\u002Fgithub.com\u002Ffalcosecurity\u002Fcharts |\n\n## Key Falco Filter Fields\n\n| Field | Meaning |\n|-------|---------|\n| `evt.type` | Syscall name (execve, setns, open, connect) |\n| `evt.dir` | Event direction (`\u003C` exit, `>` enter) |\n| `proc.name` \u002F `proc.cmdline` | Process name \u002F full command line |\n| `container.id` \u002F `container.privileged` | Container identity \u002F privileged flag |\n| `container.image.repository` | Image name |\n| `fd.name` \u002F `fd.type` | File\u002Fsocket path \u002F type (ipv4, ipv6) |\n| `evt.is_open_write` \u002F `evt.is_open_read` | Open intent |\n| `user.name` | Acting user |\n\n## Validation Criteria\n\n- [ ] Falco installed with the modern eBPF driver (DaemonSet on all nodes)\n- [ ] Custom rules file validated with `falco --validate`\n- [ ] release_agent \u002F setns \u002F privileged-mount \u002F docker.sock rules loaded\n- [ ] Reverse-shell and sensitive-file-read rules loaded\n- [ ] Each rule triggered in a lab and the alert confirmed in logs\n- [ ] Priorities set appropriately (CRITICAL for escape primitives)\n- [ ] Alerts forwarded to the SIEM via Falcosidekick\n- [ ] Rule tags include the relevant MITRE technique IDs\n",{"name":5,"tags":56,"author":57,"domain":47,"license":16,"version":58,"nist_csf":59,"subdomain":39,"description":7,"mitre_attack":61},[32,36,43,35,34,38,49,40],"mahipal","1.0",[60],"DE.CM-01",[62],"T1611","main","54a798831d2266a3ca61ce68a7acb80b81160d57","skills\u002Fdetecting-container-runtime-threats-with-falco",4425,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills","https:\u002F\u002Fmahipal.engineer\u002FAnthropic-Cybersecurity-Skills\u002F","https:\u002F\u002Fgithub.com\u002Fmukul975","Mahipal.engineer","🔐 Cybersecurity | 💻 Dev | 📷 Street Photographer\r\n🎓 MSc | 📚 Research & AI Security","2026-08-31 12:32:44",{"source":9,"skillName":5,"commands":74,"prompt":84,"zipAvailable":85},[75,78,81],{"tool":76,"command":77},"npx","npx skills add mukul975\u002FAnthropic-Cybersecurity-Skills --skill detecting-container-runtime-threats-with-falco",{"tool":79,"command":80},"bunx","bunx skills add mukul975\u002FAnthropic-Cybersecurity-Skills --skill detecting-container-runtime-threats-with-falco",{"tool":82,"command":83},"pnpm","pnpm dlx skills add mukul975\u002FAnthropic-Cybersecurity-Skills --skill detecting-container-runtime-threats-with-falco","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fdetecting-container-runtime-threats-with-falco\u002FSKILL.md",true,[87,92,98,102],{"path":88,"resourceType":88,"resourceTypeDesc":89,"sizeBytes":90,"sourceHtmlUrl":91},"LICENSE","许可证",11255,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fdetecting-container-runtime-threats-with-falco\u002FLICENSE",{"path":93,"resourceType":94,"resourceTypeDesc":95,"sizeBytes":96,"sourceHtmlUrl":97},"references\u002Fapi-reference.md","REFERENCE","参考文档",2689,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fdetecting-container-runtime-threats-with-falco\u002Freferences\u002Fapi-reference.md",{"path":99,"resourceType":94,"resourceTypeDesc":95,"sizeBytes":100,"sourceHtmlUrl":101},"references\u002Fstandards.md",1821,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fdetecting-container-runtime-threats-with-falco\u002Freferences\u002Fstandards.md",{"path":103,"resourceType":104,"resourceTypeDesc":105,"sizeBytes":106,"sourceHtmlUrl":107},"scripts\u002Fagent.py","SCRIPT","脚本",5214,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fdetecting-container-runtime-threats-with-falco\u002Fscripts\u002Fagent.py",[109,140,169,200,231,263],{"skillNo":110,"name":111,"nameZh":112,"description":113,"descriptionZh":114,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":115,"categories":116,"keywords":121,"publishedAt":51},"01M6AGDM3HJXTKXX15ZZ0ZVCJ3","verifying-build-provenance-with-slsa-sigstore","SLSA 构建来源验证","Verifies artifact signatures and SLSA provenance using Sigstore's cosign (verify, verify-attestation, verify-blob-attestation) and slsa-verifier (verify-artifact), enforcing keyless OIDC builder identity and source repo against SLSA Build levels. Use in CI\u002FCD before deploying artifacts, when consuming third-party attestations, establishing a SLSA Build L3 pipeline, or confirming provenance during incident response or admission control.","使用 Sigstore 的 cosign（verify、verify-attestation、verify-blob-attestation）和 slsa-verifier（verify-artifact）验证工件签名和 SLSA 来源（provenance），强制校验 keyless OIDC 构建者身份和源仓库是否符合 SLSA Build 级别。适用于 CI\u002FCD 中部署工件前、消费第三方证明时、建立 SLSA Build L3 管道，或在事件响应或准入控制期间确认来源的场景。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fverifying-build-provenance-with-slsa-sigstore\u002FSKILL.md",[117,118],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":119,"categoryName":120,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C32Q37WAMK06SGMFC02VFP","软件供应链安全",[122,123,124,125,48,47,126,127,128,129,130,131,132,133,134,135,136,137,138,139],"sigstore","provenance","slsa","verifying build provenance with slsa sigstore","incident response","identity","pr","code","artifacts","ci","supply-chain","pipeline","supply-chain-security","t1195","attestation","code-signing","cosign","keyless",{"skillNo":141,"name":142,"nameZh":143,"description":144,"descriptionZh":145,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":146,"categories":147,"keywords":152,"publishedAt":51},"01M6AGDGBPWYVZ2F11GFKJ4HZ9","validating-tpm-measured-boot-attestation","TPM 测量启动验证","Verifies TPM 2.0 measured-boot integrity and remote attestation with tpm2-tools -- reading PCRs (tpm2_pcrread), replaying the boot event log, generating and checking signed quotes (tpm2_quote\u002Ftpm2_checkquote), and sealing secrets to a PCR policy. Use to confirm a system booted trusted firmware\u002Fkernel for Zero Trust device posture, detect boot-chain tampering via PCR drift, or build a golden-value baseline for fleet attestation.","使用 tpm2-tools 验证 TPM 2.0 测量启动（measured boot）的完整性和远程证明：读取 PCR（tpm2_pcrread）、重放启动事件日志、生成并检查签名报价（tpm2_quote\u002Ftpm2_checkquote），以及将机密封印（seal）到 PCR 策略。适用于确认系统已启动可信固件\u002F内核以实现零信任（Zero Trust）设备状态、通过 PCR 漂移检测启动链篡改，或构建黄金值基线用于机群（fleet）证明。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fvalidating-tpm-measured-boot-attestation\u002FSKILL.md",[148,149],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":150,"categoryName":151,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C89JJEXGGRGHS6XVXDA46K","终端安全加固",[153,136,154,155,48,156,47,128,157,158,159,160,161,162,163,164,165,166,167,168],"boot","TPM","validating tpm measured boot attestation","policy","verification","ZeRO","firmware","Tools","measured-boot","PCR","integrity","secrets","remote-attestation","tpm2-tools","integrity-verification","trusted-computing",{"skillNo":170,"name":171,"nameZh":172,"description":173,"descriptionZh":174,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":175,"categories":176,"keywords":183,"publishedAt":51},"01M6AGDCW0Y4FXZ3362GT1941M","validating-backup-integrity-for-recovery","备份完整性验证","Validates backup integrity through cryptographic hash verification, automated restore testing, corruption detection, and recoverability checks to confirm backups are reliable for disaster recovery and ransomware response. Use before relying on backups for recovery, when building post-backup validation pipelines, auditing backup infrastructure for compliance, or checking immutable\u002Fair-gapped backups for silent corruption or tampering.","通过加密哈希验证、自动化恢复测试、损坏检测和可恢复性检查来验证备份完整性，确认备份对于灾难恢复和勒索软件响应是可靠的。适用于在依赖备份进行恢复之前、构建备份后验证管道、审计备份基础设施以满足合规要求，或检查不可变\u002Fair-gapped（气隙）备份是否存在静默损坏或篡改的场景。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fvalidating-backup-integrity-for-recovery\u002FSKILL.md",[177,180],{"categoryNo":178,"categoryName":179,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD4WETX0HM3SM9QKQ15B","SRE 工程师",{"categoryNo":181,"categoryName":182,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSSTY86MWS6W5GDQWB1ADQ","备份与灾难恢复",[163,184,185,186,187,47,188,189,157,190,191,192,193,194,37,195,196,197,198,199],"backup","recovery","validating backup integrity for recovery","testing","infrastructure","validation","compliance","hash-verification","incident-response","ransomware","cryptocurrency","t1078","t1490","immutable","disaster-recovery","restore-testing",{"skillNo":201,"name":202,"nameZh":203,"description":204,"descriptionZh":205,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":206,"categories":207,"keywords":212,"publishedAt":51},"01M6AGD9GBG2KZ336AE763J3WH","triaging-windows-with-kape","KAPE Windows 取证收集","Runs KAPE (Kroll Artifact Parser and Extractor) to collect targeted forensic artifacts (registry hives, $MFT, event logs, prefetch, browser data) via Targets and parse them with Modules wrapping Eric Zimmerman's EZ Tools (PECmd, MFTECmd, RECmd). Use during early incident containment\u002Ftriage when full disk imaging is impractical but a defensible, parseable Windows artifact set is needed quickly, including at-scale remote collection.","运行 KAPE（Kroll Artifact Parser and Extractor），通过 Targets 收集目标取证工件（注册表配置单元、$MFT、事件日志、prefetch、浏览器数据），并使用封装 Eric Zimmerman 的 EZ Tools（PECmd、MFTECmd、RECmd）的 Modules 进行解析。适用于事件遏制\u002F分诊早期阶段——此时完整磁盘镜像不切实际，但需要快速获得可采信、可解析的 Windows 工件集，包括大规模远程收集。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftriaging-windows-with-kape\u002FSKILL.md",[208,209],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":210,"categoryName":211,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C9JZH3GWXPJ6CQG5P7J48Y","数字取证与电子证据分析",[213,214,215,47,216,217,218,219,220,221,222,223,224,225,226,227,160,228,229,230],"windows","kape","triaging windows with kape","registry","browser","logs","windows-forensics","dfir","mft","mftecmd","data","prefetch","eric-zimmerman","digital-forensics","SET","collection","pecmd","artifact-collection",{"skillNo":232,"name":233,"nameZh":234,"description":235,"descriptionZh":236,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":237,"categories":238,"keywords":243,"publishedAt":51},"01M6AGD5PW5J4EVZM958WD74ZQ","triaging-vulnerabilities-with-ssvc-framework","SSVC 漏洞优先级分诊","Triages and prioritizes vulnerabilities with CISA's Stakeholder-Specific Vulnerability Categorization (SSVC) decision tree, weighing exploitation status (via the CISA KEV catalog and FIRST EPSS API), technical impact, automatability, and mission prevalence to output Track\u002FTrack*\u002FAttend\u002FAct decisions. Use when prioritizing vulnerability scan results (OpenVAS, Nessus, Qualys) for remediation planning beyond raw CVSS scores.","使用 CISA 的 Stakeholder-Specific Vulnerability Categorization（SSVC，利益相关方特定漏洞分类）决策树对漏洞进行分诊和优先级排序，权衡利用状态（通过 CISA KEV 目录和 FIRST EPSS API）、技术影响、自动化程度和任务普遍性，输出 Track\u002FTrack*\u002FAttend\u002FAct 决策。适用于对漏洞扫描结果（OpenVAS、Nessus、Qualys）进行优先级排序以制定修复计划，而不局限于原始 CVSS 分数的场景。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftriaging-vulnerabilities-with-ssvc-framework\u002FSKILL.md",[239,242],{"categoryNo":240,"categoryName":241,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQV98CYQ7TEW2D1MRQ00TE","安全公告与漏洞管理",{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},[244,245,246,47,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262],"vulnerabilities","framework","triaging vulnerabilities with ssvc framework","status","planning","CISA","vulnerability-management","risk-management","nessus","qualys","openvas","cvss","remediation","risk","vulnerability","api","prioritization","ssvc","decision-tree",{"skillNo":264,"name":265,"nameZh":266,"description":267,"descriptionZh":268,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":269,"categories":270,"keywords":275,"publishedAt":51},"01M6AGD24TTQQM4CXG69E3B9TJ","triaging-security-incident","安全事件初步分诊","Performs initial triage of security incidents using the NIST SP 800-61r3 and SANS PICERL frameworks, classifying incident type, assigning priority by business impact, and routing to the appropriate response team. Use when a SIEM\u002FEDR alert needs human classification, concurrent alerts must be prioritized, or a user report or threat-intel IOC match requires initial incident categorization.","使用 NIST SP 800-61r3 和 SANS PICERL 框架对安全事件进行初步分诊，分类事件类型、按业务影响分配优先级，并路由到相应的响应团队。适用于 SIEM\u002FEDR 告警需要人工分类、并发告警必须确定优先级，或用户报告或威胁情报 IOC 匹配需要初步事件分类的场景。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftriaging-security-incident\u002FSKILL.md",[271,272],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":273,"categoryName":274,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BTHYSJPJ500X64JJ5CH06D","安全事件响应与威胁狩猎",[48,276,47,46,277,278,279,280,281,282,283,195,284,196,285,286,287,288,289,290],"triaging security incident","file","ioc","soc","NIST-800-61","NIST","severity","edr","execution","analysis","classification","severity-classification","incident-triage","SANS-PICERL","SOC-operations"]