[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7D7T3H173DTA3ZYSQNMETS3":3,"skill-same:01M7D7T3H173DTA3ZYSQNMETS3":85},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":42,"commitSha":43,"skillDirectory":44,"forksCount":45,"repositoryHtmlUrl":46,"repositoryHomepageUrl":6,"ownerHtmlUrl":47,"ownerBlogUrl":48,"ownerDescription":49,"updatedAt":50,"install":51,"resources":64},"01M7D7T3H173DTA3ZYSQNMETS3","detecting-container-runtime-threats-with-falco",null,"Write and deploy Falco rules with the modern eBPF driver to detect container escape, namespace abuse, privileged mounts, and anomalous syscalls at runtime in Kubernetes and Docker.","SaiVatsal\u002FSkills-I-Use","SaiVatsal","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F242597752?v=4","01M7D5YM1T4VXW9203M0GFAHZ1","SaiVatsalPolimera","01M7D5YM2D61ST39XVR2V7B7ZJ",3,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002FAnthropic-Cybersecurity-Skills-main\u002Fskills\u002Fdetecting-container-runtime-threats-with-falco\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002FAnthropic-Cybersecurity-Skills-main\u002Fskills\u002Fdetecting-container-runtime-threats-with-falco\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: detecting-container-runtime-threats-with-falco\ndescription: Write and deploy Falco rules with the modern eBPF driver to detect container escape, namespace abuse, privileged mounts, and anomalous syscalls at runtime in Kubernetes and Docker.\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":25,"author":34,"domain":35,"license":15,"version":36,"nist_csf":37,"subdomain":39,"description":7,"mitre_attack":40},[26,27,28,29,30,31,32,33],"falco","runtime-security","ebpf","container-escape","syscall-monitoring","detection-engineering","kubernetes","threat-detection","mahipal","cybersecurity","1.0",[38],"DE.CM-01","container-security",[41],"T1611","main","8a3b3de73262a4c4db64523949360f3c599c2fb1","Anthropic-Cybersecurity-Skills-main\u002Fskills\u002Fdetecting-container-runtime-threats-with-falco",0,"https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use","https:\u002F\u002Fgithub.com\u002FSaiVatsal","https:\u002F\u002Fsaivatsal.github.io\u002FPortfolio\u002F","The Longer It Takes The Stronger It Becomes ","2026-09-21 22:45:58",{"source":8,"skillName":5,"commands":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add SaiVatsal\u002FSkills-I-Use --skill detecting-container-runtime-threats-with-falco",{"tool":57,"command":58},"bunx","bunx skills add SaiVatsal\u002FSkills-I-Use --skill detecting-container-runtime-threats-with-falco",{"tool":60,"command":61},"pnpm","pnpm dlx skills add SaiVatsal\u002FSkills-I-Use --skill detecting-container-runtime-threats-with-falco","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002FAnthropic-Cybersecurity-Skills-main\u002Fskills\u002Fdetecting-container-runtime-threats-with-falco\u002FSKILL.md",true,[65,69,75,79],{"path":66,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":68,"sourceHtmlUrl":16},"LICENSE","许可证",11255,{"path":70,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":73,"sourceHtmlUrl":74},"references\u002Fapi-reference.md","REFERENCE","参考文档",2689,"https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002FAnthropic-Cybersecurity-Skills-main\u002Fskills\u002Fdetecting-container-runtime-threats-with-falco\u002Freferences\u002Fapi-reference.md",{"path":76,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":77,"sourceHtmlUrl":78},"references\u002Fstandards.md",1821,"https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002FAnthropic-Cybersecurity-Skills-main\u002Fskills\u002Fdetecting-container-runtime-threats-with-falco\u002Freferences\u002Fstandards.md",{"path":80,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":83,"sourceHtmlUrl":84},"scripts\u002Fagent.py","SCRIPT","脚本",5214,"https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002FAnthropic-Cybersecurity-Skills-main\u002Fskills\u002Fdetecting-container-runtime-threats-with-falco\u002Fscripts\u002Fagent.py",[86,94,102,111,118,125],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":90,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":20},"01M7DJZP6E6KMBQV4CZSDPZEZ8","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":98,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":20},"01M7DJZFTS5TS06K2TV3MDTE67","web-artifacts-builder","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fweb-artifacts-builder\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":106,"licenseFileUrl":107,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":20},"01M7DJRK4SRQ908F2TJM6EZ7EV","ui-styling","Create beautiful, accessible user interfaces with shadcn\u002Fui components (built on Radix UI + Tailwind), Tailwind CSS utility-first styling, and canvas-based visual designs. Use when building user interfaces, implementing design systems, creating responsive layouts, adding accessible components (dialogs, dropdowns, forms, tables), customizing themes and colors, implementing dark mode, generating visual designs and posters, or establishing consistent styling patterns across applications.","MIT","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fui-ux-pro-max-skill-main\u002Fcli\u002Fassets\u002Fskills\u002Fui-styling\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fui-ux-pro-max-skill-main\u002Fcli\u002Fassets\u002Fskills\u002Fui-styling\u002FSKILL.md",[],[],{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":106,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":20},"01M7DJR902059VEQP23PVM2WA0","design","Comprehensive design skill: brand identity, design tokens, UI styling, logo generation (55 styles, Gemini AI), corporate identity program (50 deliverables, CIP mockups), HTML presentations (Chart.js), banner design (22 styles, social\u002Fads\u002Fweb\u002Fprint), icon design (15 styles, SVG, Gemini 3.1 Pro), social photos (HTML→screenshot, multi-platform). Actions: design logo, create CIP, generate mockups, build slides, design banner, generate icon, create social photos, social media images, brand identity, design system. Platforms: Facebook, Twitter, LinkedIn, YouTube, Instagram, Pinterest, TikTok, Threads, Google Ads.","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fui-ux-pro-max-skill-main\u002Fcli\u002Fassets\u002Fskills\u002Fdesign\u002FSKILL.md",[],[],{"skillNo":119,"name":120,"nameZh":6,"description":121,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":106,"licenseFileUrl":6,"sourceHtmlUrl":122,"categories":123,"keywords":124,"publishedAt":20},"01M7DJR56QF5N6XYTCPCFHFMNP","design-system","Token architecture, component specifications, and slide generation. Three-layer tokens (primitive→semantic→component), CSS variables, spacing\u002Ftypography scales, component specs, strategic slide creation. Use for design tokens, systematic design, brand-compliant presentations.","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fui-ux-pro-max-skill-main\u002Fcli\u002Fassets\u002Fskills\u002Fdesign-system\u002FSKILL.md",[],[],{"skillNo":126,"name":127,"nameZh":6,"description":128,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":106,"licenseFileUrl":6,"sourceHtmlUrl":129,"categories":130,"keywords":131,"publishedAt":20},"01M7DJQXB6M0SFF7NX8J5N01AH","banner-design","Design banners for social media, ads, website heroes, creative assets, and print. Multiple art direction options with AI-generated visuals. Actions: design, create, generate banner. Platforms: Facebook, Twitter\u002FX, LinkedIn, YouTube, Instagram, Google Display, website hero, print. Styles: minimalist, gradient, bold typography, photo-based, illustrated, geometric, retro, glassmorphism, 3D, neon, duotone, editorial, collage. Uses ui-ux-pro-max, frontend-design, ai-artist, ai-multimodal skills.","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fui-ux-pro-max-skill-main\u002Fcli\u002Fassets\u002Fskills\u002Fbanner-design\u002FSKILL.md",[],[]]