[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6AEB500ZH47G5010HZ1054W":3,"skill-same:01M6AEB500ZH47G5010HZ1054W":135},{"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":76,"commitSha":77,"skillDirectory":78,"forksCount":79,"repositoryHtmlUrl":80,"repositoryHomepageUrl":81,"ownerHtmlUrl":82,"ownerBlogUrl":83,"ownerDescription":84,"updatedAt":85,"install":86,"resources":99},"01M6AEB500ZH47G5010HZ1054W","detecting-container-escape-attempts","容器逃逸尝试检测","Detects container escape at runtime across tooling - namespace manipulation, capability abuse, kernel exploits, sensitive host mounts, and anomalous syscalls - and explains which signals matter regardless of whether Falco, Sysdig, auditd, or an EDR is doing the collection. Use when deciding what breakout behaviour to monitor, investigating a suspected Docker or Kubernetes breakout, or comparing escape coverage across runtime sensors. Keywords: container escape, breakout, namespaces, CAP_SYS_ADMIN, privileged, hostPath, kernel exploit, syscall. Do not use for Falco rule syntax itself - use detecting-container-escape-with-falco-rules; for a static configuration sweep use performing-container-escape-detection.","跨各种工具检测运行时容器逃逸——命名空间操作、能力（capability）滥用、内核漏洞利用、敏感主机挂载和异常系统调用——并解释哪些信号才是关键，无论数据收集是由 Falco、Sysdig、auditd 还是 EDR 完成。适用于决定监控哪些逃逸行为、调查疑似 Docker 或 Kubernetes 逃逸，或比较不同运行时传感器的逃逸覆盖。关键词：container escape（容器逃逸）、breakout（突破）、namespaces（命名空间）、CAP_SYS_ADMIN、privileged（特权）、hostPath、kernel exploit（内核漏洞利用）、syscall（系统调用）。不用于 Falco 规则语法本身——请使用 detecting-container-escape-with-falco-rules；对于静态配置扫描请使用 performing-container-escape-detection。","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-escape-attempts\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 escape attempts","admin","escape-detection","falco","runtime-security","edr","detection","auditd","container-security","monitoring","containers","verification","validation","code","monitor","pr","cybersecurity","kubernetes","kernel","docker","2026-11-10 10:12:30",false,"---\nname: detecting-container-escape-attempts\ndescription: >-\n  Detects container escape at runtime across tooling - namespace manipulation, capability\n  abuse, kernel exploits, sensitive host mounts, and anomalous syscalls - and explains which\n  signals matter regardless of whether Falco, Sysdig, auditd, or an EDR is doing the\n  collection. Use when deciding what breakout behaviour to monitor, investigating a suspected\n  Docker or Kubernetes breakout, or comparing escape coverage across runtime sensors.\n  Keywords: container escape, breakout, namespaces, CAP_SYS_ADMIN, privileged, hostPath,\n  kernel exploit, syscall. Do not use for Falco rule syntax itself - use\n  detecting-container-escape-with-falco-rules; for a static configuration sweep use\n  performing-container-escape-detection.\ndomain: cybersecurity\nsubdomain: container-security\ntags:\n- containers\n- kubernetes\n- docker\n- security\n- runtime-security\n- escape-detection\nversion: '1.0'\nauthor: mahipal\nlicense: Apache-2.0\nd3fend_techniques:\n- Platform Monitoring\n- Process Code Segment Verification\n- Stack Frame Canary Validation\n- Segment Address Offset Randomization\n- Process Analysis\nnist_csf:\n- PR.PS-01\n- PR.IR-01\n- ID.AM-08\n- DE.CM-01\nmitre_attack:\n- T1610\n- T1611\n- T1609\n- T1525\n---\n# Detecting Container Escape Attempts\n\n## Overview\n\nContainer escape is a critical attack technique where an adversary breaks out of container isolation to access the host system or other containers. Detection involves monitoring for escape indicators such as namespace manipulation, capability abuse, kernel exploits, mounted sensitive paths, and anomalous syscall patterns using runtime security tools like Falco, Sysdig, and custom seccomp\u002Faudit rules.\n\n\n## When to Use\n\n- When investigating security incidents that require detecting container escape attempts\n- When building detection rules or threat hunting queries for this domain\n- When SOC analysts need structured procedures for this analysis type\n- When validating security monitoring coverage for related attack techniques\n\n## Prerequisites\n\n- Linux host with kernel 5.10+ (eBPF support)\n- Falco 0.37+ installed (kernel module or eBPF probe)\n- Docker Engine or containerd runtime\n- auditd configured\n- Root access for eBPF\u002Fkernel module loading\n\n## Core Concepts\n\n### Common Container Escape Vectors\n\n| Vector | Technique | MITRE ID |\n|--------|-----------|----------|\n| Privileged containers | Mount host filesystem, load kernel modules | T1611 |\n| Docker socket mount | Create privileged container from within | T1610 |\n| Kernel exploits | CVE-2022-0185 (fsconfig), Dirty Pipe, runc CVEs | T1068 |\n| Capability abuse | CAP_SYS_ADMIN, CAP_SYS_PTRACE, CAP_NET_ADMIN | T1548 |\n| Sensitive mounts | \u002Fproc\u002Fsysrq-trigger, \u002Fproc\u002Fkcore, cgroup release_agent | T1611 |\n| Namespace escape | nsenter, unshare to host namespaces | T1611 |\n| Symlink\u002Fbind mount | Escape through \u002Fproc\u002Fself\u002Froot | T1611 |\n\n### Detection Layers\n\n1. **Syscall monitoring** - eBPF\u002Fkernel module captures syscalls in real-time\n2. **File integrity** - Detect modification of escape-enabling paths\n3. **Process monitoring** - Track process creation, namespace changes\n4. **Network monitoring** - Detect container-to-host connections\n5. **Audit logging** - Linux auditd for capability and mount operations\n\n## Workflow\n\n### Step 1: Deploy Falco for Runtime Detection\n\n```yaml\n# falco-values.yaml for Helm deployment\nfalco:\n  driver:\n    kind: ebpf   # or modern_ebpf for kernel 5.8+\n  rules_files:\n    - \u002Fetc\u002Ffalco\u002Ffalco_rules.yaml\n    - \u002Fetc\u002Ffalco\u002Ffalco_rules.local.yaml\n    - \u002Fetc\u002Ffalco\u002Frules.d\n  json_output: true\n  json_include_output_property: true\n  http_output:\n    enabled: true\n    url: \"http:\u002F\u002Ffalcosidekick:2801\"\n  grpc:\n    enabled: true\n  priority: warning\n```\n\n```bash\n# Install Falco via Helm\nhelm repo add falcosecurity https:\u002F\u002Ffalcosecurity.github.io\u002Fcharts\nhelm install falco falcosecurity\u002Ffalco \\\n  --namespace falco-system --create-namespace \\\n  -f falco-values.yaml\n```\n\n### Step 2: Custom Falco Rules for Escape Detection\n\n```yaml\n# \u002Fetc\u002Ffalco\u002Frules.d\u002Fcontainer_escape.yaml\n\n# Detect container escape via privileged container\n- rule: Container Escape via Privileged Mode\n  desc: Detect attempts to escape container using privileged capabilities\n  condition: >\n    spawned_process and container and\n    (proc.name in (nsenter, unshare, mount, umount, modprobe, insmod) or\n     (proc.name = chroot and proc.args contains \"\u002Fhost\"))\n  output: >\n    Container escape attempt via privileged operation\n    (user=%user.name container=%container.name image=%container.image.repository\n     command=%proc.cmdline pid=%proc.pid %container.info)\n  priority: CRITICAL\n  tags: [container, escape, T1611]\n\n# Detect Docker socket access from container\n- rule: Container Access to Docker Socket\n  desc: Detect container reading\u002Fwriting to Docker socket\n  condition: >\n    (open_read or open_write) and container and\n    fd.name = \u002Fvar\u002Frun\u002Fdocker.sock\n  output: >\n    Docker socket accessed from container\n    (user=%user.name container=%container.name image=%container.image.repository\n     fd=%fd.name command=%proc.cmdline %container.info)\n  priority: CRITICAL\n  tags: [container, escape, docker_socket]\n\n# Detect sensitive proc filesystem access\n- rule: Container Access to Sensitive Proc Paths\n  desc: Detect container accessing host-sensitive proc paths\n  condition: >\n    open_read and container and\n    (fd.name startswith \u002Fproc\u002Fsysrq-trigger or\n     fd.name startswith \u002Fproc\u002Fkcore or\n     fd.name startswith \u002Fproc\u002Fkmsg or\n     fd.name startswith \u002Fproc\u002Fkallsyms or\n     fd.name startswith \u002Fsys\u002Fkernel)\n  output: >\n    Sensitive proc\u002Fsys access from container\n    (user=%user.name container=%container.name path=%fd.name\n     command=%proc.cmdline %container.info)\n  priority: CRITICAL\n  tags: [container, escape, proc_access]\n\n# Detect cgroup escape technique\n- rule: Container Cgroup Escape Attempt\n  desc: Detect writing to cgroup release_agent (escape technique)\n  condition: >\n    open_write and container and\n    (fd.name contains release_agent or\n     fd.name contains notify_on_release)\n  output: >\n    Cgroup escape attempt detected\n    (user=%user.name container=%container.name path=%fd.name\n     command=%proc.cmdline %container.info)\n  priority: CRITICAL\n  tags: [container, escape, cgroup]\n\n# Detect kernel module loading from container\n- rule: Container Loading Kernel Module\n  desc: Detect container attempting to load kernel modules\n  condition: >\n    spawned_process and container and\n    (proc.name in (modprobe, insmod, rmmod) or\n     (evt.type = init_module or evt.type = finit_module))\n  output: >\n    Kernel module load attempt from container\n    (user=%user.name container=%container.name command=%proc.cmdline\n     %container.info)\n  priority: CRITICAL\n  tags: [container, escape, kernel_module]\n\n# Detect namespace manipulation\n- rule: Container Namespace Manipulation\n  desc: Detect setns\u002Funshare syscalls from container\n  condition: >\n    container and (evt.type = setns or evt.type = unshare) and\n    not proc.name in (containerd-shim, runc)\n  output: >\n    Namespace manipulation from container\n    (user=%user.name container=%container.name syscall=%evt.type\n     command=%proc.cmdline %container.info)\n  priority: CRITICAL\n  tags: [container, escape, namespace]\n\n# Detect mount operations from container\n- rule: Container Mount Sensitive Filesystem\n  desc: Detect container mounting host filesystems\n  condition: >\n    spawned_process and container and proc.name = mount and\n    (proc.args contains \"\u002Fdev\u002F\" or proc.args contains \"proc\" or\n     proc.args contains \"sysfs\")\n  output: >\n    Sensitive mount operation from container\n    (user=%user.name container=%container.name command=%proc.cmdline\n     %container.info)\n  priority: HIGH\n  tags: [container, escape, mount]\n```\n\n### Step 3: Configure Seccomp Profile for Escape Prevention\n\n```json\n{\n  \"defaultAction\": \"SCMP_ACT_ERRNO\",\n  \"archMap\": [\n    { \"architecture\": \"SCMP_ARCH_X86_64\", \"subArchitectures\": [\"SCMP_ARCH_X86\", \"SCMP_ARCH_X32\"] }\n  ],\n  \"syscalls\": [\n    {\n      \"names\": [\n        \"read\", \"write\", \"open\", \"close\", \"stat\", \"fstat\", \"lstat\",\n        \"poll\", \"lseek\", \"mmap\", \"mprotect\", \"munmap\", \"brk\",\n        \"rt_sigaction\", \"rt_sigprocmask\", \"ioctl\", \"access\",\n        \"pipe\", \"select\", \"sched_yield\", \"dup\", \"dup2\",\n        \"nanosleep\", \"getpid\", \"socket\", \"connect\", \"accept\",\n        \"sendto\", \"recvfrom\", \"bind\", \"listen\", \"getsockname\",\n        \"getpeername\", \"socketpair\", \"setsockopt\", \"getsockopt\",\n        \"clone\", \"fork\", \"vfork\", \"execve\", \"exit\", \"wait4\",\n        \"kill\", \"getuid\", \"getgid\", \"geteuid\", \"getegid\",\n        \"epoll_create\", \"epoll_wait\", \"epoll_ctl\", \"epoll_create1\",\n        \"futex\", \"set_tid_address\", \"set_robust_list\",\n        \"openat\", \"newfstatat\", \"readlinkat\", \"fchownat\",\n        \"clock_gettime\", \"clock_getres\", \"clock_nanosleep\",\n        \"getrandom\", \"memfd_create\", \"statx\", \"rseq\"\n      ],\n      \"action\": \"SCMP_ACT_ALLOW\"\n    },\n    {\n      \"names\": [\"unshare\", \"setns\", \"mount\", \"umount2\", \"pivot_root\",\n                \"init_module\", \"finit_module\", \"delete_module\",\n                \"kexec_load\", \"kexec_file_load\", \"ptrace\",\n                \"reboot\", \"swapon\", \"swapoff\", \"sethostname\",\n                \"setdomainname\", \"keyctl\", \"bpf\"],\n      \"action\": \"SCMP_ACT_LOG\",\n      \"comment\": \"Log escape-relevant syscalls for detection\"\n    }\n  ]\n}\n```\n\n### Step 4: Audit Rules for Container Escape\n\n```bash\n# \u002Fetc\u002Faudit\u002Frules.d\u002Fcontainer-escape.rules\n\n# Monitor namespace operations\n-a always,exit -F arch=b64 -S setns -S unshare -k container_escape\n-a always,exit -F arch=b64 -S mount -S umount2 -k container_mount\n-a always,exit -F arch=b64 -S init_module -S finit_module -S delete_module -k kernel_module\n-a always,exit -F arch=b64 -S ptrace -k process_trace\n\n# Monitor sensitive paths\n-w \u002Fvar\u002Frun\u002Fdocker.sock -p rwxa -k docker_socket\n-w \u002Fproc\u002Fsysrq-trigger -p w -k sysrq\n-w \u002Fproc\u002Fkcore -p r -k kcore_read\n\n# Monitor container runtime\n-w \u002Fusr\u002Fbin\u002Frunc -p x -k container_runtime\n-w \u002Fusr\u002Fbin\u002Fcontainerd -p x -k container_runtime\n-w \u002Fusr\u002Fbin\u002Fdocker -p x -k container_runtime\n```\n\n### Step 5: Real-Time Alert Pipeline\n\n```yaml\n# Falcosidekick configuration for alert routing\nconfig:\n  slack:\n    webhookurl: \"https:\u002F\u002Fhooks.slack.com\u002Fservices\u002Fxxx\"\n    minimumpriority: \"critical\"\n    messageformat: |\n      *Container Escape Alert*\n      Rule: {{ .Rule }}\n      Priority: {{ .Priority }}\n      Output: {{ .Output }}\n\n  elasticsearch:\n    hostport: \"https:\u002F\u002Felasticsearch:9200\"\n    index: \"falco-alerts\"\n    minimumpriority: \"warning\"\n\n  pagerduty:\n    routingkey: \"xxxx\"\n    minimumpriority: \"critical\"\n```\n\n## Validation Commands\n\n```bash\n# Test Falco rules with event generator\nkubectl run falco-event-generator \\\n  --image=falcosecurity\u002Fevent-generator \\\n  --restart=Never \\\n  -- run syscall --action PtraceAttachContainer\n\n# Check Falco alerts\nkubectl logs -n falco-system -l app.kubernetes.io\u002Fname=falco --tail=50\n\n# Verify seccomp profile is loaded\ndocker inspect --format '{{.HostConfig.SecurityOpt}}' \u003Ccontainer-id>\n\n# Check audit logs for escape-related events\nausearch -k container_escape --interpret\n```\n\n## References\n\n- [Falco Runtime Security](https:\u002F\u002Ffalco.org\u002Fdocs\u002F)\n- [Container Escape Techniques - HackTricks](https:\u002F\u002Fbook.hacktricks.xyz\u002Flinux-hardening\u002Fprivilege-escalation\u002Fdocker-security\u002Fdocker-breakout-privilege-escalation)\n- [MITRE ATT&CK T1611 - Escape to Host](https:\u002F\u002Fattack.mitre.org\u002Ftechniques\u002FT1611\u002F)\n- [Sysdig Container Security](https:\u002F\u002Fsysdig.com\u002Fproducts\u002Fsecure\u002F)\n","# Detecting Container Escape Attempts\n\n## Overview\n\nContainer escape is a critical attack technique where an adversary breaks out of container isolation to access the host system or other containers. Detection involves monitoring for escape indicators such as namespace manipulation, capability abuse, kernel exploits, mounted sensitive paths, and anomalous syscall patterns using runtime security tools like Falco, Sysdig, and custom seccomp\u002Faudit rules.\n\n\n## When to Use\n\n- When investigating security incidents that require detecting container escape attempts\n- When building detection rules or threat hunting queries for this domain\n- When SOC analysts need structured procedures for this analysis type\n- When validating security monitoring coverage for related attack techniques\n\n## Prerequisites\n\n- Linux host with kernel 5.10+ (eBPF support)\n- Falco 0.37+ installed (kernel module or eBPF probe)\n- Docker Engine or containerd runtime\n- auditd configured\n- Root access for eBPF\u002Fkernel module loading\n\n## Core Concepts\n\n### Common Container Escape Vectors\n\n| Vector | Technique | MITRE ID |\n|--------|-----------|----------|\n| Privileged containers | Mount host filesystem, load kernel modules | T1611 |\n| Docker socket mount | Create privileged container from within | T1610 |\n| Kernel exploits | CVE-2022-0185 (fsconfig), Dirty Pipe, runc CVEs | T1068 |\n| Capability abuse | CAP_SYS_ADMIN, CAP_SYS_PTRACE, CAP_NET_ADMIN | T1548 |\n| Sensitive mounts | \u002Fproc\u002Fsysrq-trigger, \u002Fproc\u002Fkcore, cgroup release_agent | T1611 |\n| Namespace escape | nsenter, unshare to host namespaces | T1611 |\n| Symlink\u002Fbind mount | Escape through \u002Fproc\u002Fself\u002Froot | T1611 |\n\n### Detection Layers\n\n1. **Syscall monitoring** - eBPF\u002Fkernel module captures syscalls in real-time\n2. **File integrity** - Detect modification of escape-enabling paths\n3. **Process monitoring** - Track process creation, namespace changes\n4. **Network monitoring** - Detect container-to-host connections\n5. **Audit logging** - Linux auditd for capability and mount operations\n\n## Workflow\n\n### Step 1: Deploy Falco for Runtime Detection\n\n```yaml\n# falco-values.yaml for Helm deployment\nfalco:\n  driver:\n    kind: ebpf   # or modern_ebpf for kernel 5.8+\n  rules_files:\n    - \u002Fetc\u002Ffalco\u002Ffalco_rules.yaml\n    - \u002Fetc\u002Ffalco\u002Ffalco_rules.local.yaml\n    - \u002Fetc\u002Ffalco\u002Frules.d\n  json_output: true\n  json_include_output_property: true\n  http_output:\n    enabled: true\n    url: \"http:\u002F\u002Ffalcosidekick:2801\"\n  grpc:\n    enabled: true\n  priority: warning\n```\n\n```bash\n# Install Falco via Helm\nhelm repo add falcosecurity https:\u002F\u002Ffalcosecurity.github.io\u002Fcharts\nhelm install falco falcosecurity\u002Ffalco \\\n  --namespace falco-system --create-namespace \\\n  -f falco-values.yaml\n```\n\n### Step 2: Custom Falco Rules for Escape Detection\n\n```yaml\n# \u002Fetc\u002Ffalco\u002Frules.d\u002Fcontainer_escape.yaml\n\n# Detect container escape via privileged container\n- rule: Container Escape via Privileged Mode\n  desc: Detect attempts to escape container using privileged capabilities\n  condition: >\n    spawned_process and container and\n    (proc.name in (nsenter, unshare, mount, umount, modprobe, insmod) or\n     (proc.name = chroot and proc.args contains \"\u002Fhost\"))\n  output: >\n    Container escape attempt via privileged operation\n    (user=%user.name container=%container.name image=%container.image.repository\n     command=%proc.cmdline pid=%proc.pid %container.info)\n  priority: CRITICAL\n  tags: [container, escape, T1611]\n\n# Detect Docker socket access from container\n- rule: Container Access to Docker Socket\n  desc: Detect container reading\u002Fwriting to Docker socket\n  condition: >\n    (open_read or open_write) and container and\n    fd.name = \u002Fvar\u002Frun\u002Fdocker.sock\n  output: >\n    Docker socket accessed from container\n    (user=%user.name container=%container.name image=%container.image.repository\n     fd=%fd.name command=%proc.cmdline %container.info)\n  priority: CRITICAL\n  tags: [container, escape, docker_socket]\n\n# Detect sensitive proc filesystem access\n- rule: Container Access to Sensitive Proc Paths\n  desc: Detect container accessing host-sensitive proc paths\n  condition: >\n    open_read and container and\n    (fd.name startswith \u002Fproc\u002Fsysrq-trigger or\n     fd.name startswith \u002Fproc\u002Fkcore or\n     fd.name startswith \u002Fproc\u002Fkmsg or\n     fd.name startswith \u002Fproc\u002Fkallsyms or\n     fd.name startswith \u002Fsys\u002Fkernel)\n  output: >\n    Sensitive proc\u002Fsys access from container\n    (user=%user.name container=%container.name path=%fd.name\n     command=%proc.cmdline %container.info)\n  priority: CRITICAL\n  tags: [container, escape, proc_access]\n\n# Detect cgroup escape technique\n- rule: Container Cgroup Escape Attempt\n  desc: Detect writing to cgroup release_agent (escape technique)\n  condition: >\n    open_write and container and\n    (fd.name contains release_agent or\n     fd.name contains notify_on_release)\n  output: >\n    Cgroup escape attempt detected\n    (user=%user.name container=%container.name path=%fd.name\n     command=%proc.cmdline %container.info)\n  priority: CRITICAL\n  tags: [container, escape, cgroup]\n\n# Detect kernel module loading from container\n- rule: Container Loading Kernel Module\n  desc: Detect container attempting to load kernel modules\n  condition: >\n    spawned_process and container and\n    (proc.name in (modprobe, insmod, rmmod) or\n     (evt.type = init_module or evt.type = finit_module))\n  output: >\n    Kernel module load attempt from container\n    (user=%user.name container=%container.name command=%proc.cmdline\n     %container.info)\n  priority: CRITICAL\n  tags: [container, escape, kernel_module]\n\n# Detect namespace manipulation\n- rule: Container Namespace Manipulation\n  desc: Detect setns\u002Funshare syscalls from container\n  condition: >\n    container and (evt.type = setns or evt.type = unshare) and\n    not proc.name in (containerd-shim, runc)\n  output: >\n    Namespace manipulation from container\n    (user=%user.name container=%container.name syscall=%evt.type\n     command=%proc.cmdline %container.info)\n  priority: CRITICAL\n  tags: [container, escape, namespace]\n\n# Detect mount operations from container\n- rule: Container Mount Sensitive Filesystem\n  desc: Detect container mounting host filesystems\n  condition: >\n    spawned_process and container and proc.name = mount and\n    (proc.args contains \"\u002Fdev\u002F\" or proc.args contains \"proc\" or\n     proc.args contains \"sysfs\")\n  output: >\n    Sensitive mount operation from container\n    (user=%user.name container=%container.name command=%proc.cmdline\n     %container.info)\n  priority: HIGH\n  tags: [container, escape, mount]\n```\n\n### Step 3: Configure Seccomp Profile for Escape Prevention\n\n```json\n{\n  \"defaultAction\": \"SCMP_ACT_ERRNO\",\n  \"archMap\": [\n    { \"architecture\": \"SCMP_ARCH_X86_64\", \"subArchitectures\": [\"SCMP_ARCH_X86\", \"SCMP_ARCH_X32\"] }\n  ],\n  \"syscalls\": [\n    {\n      \"names\": [\n        \"read\", \"write\", \"open\", \"close\", \"stat\", \"fstat\", \"lstat\",\n        \"poll\", \"lseek\", \"mmap\", \"mprotect\", \"munmap\", \"brk\",\n        \"rt_sigaction\", \"rt_sigprocmask\", \"ioctl\", \"access\",\n        \"pipe\", \"select\", \"sched_yield\", \"dup\", \"dup2\",\n        \"nanosleep\", \"getpid\", \"socket\", \"connect\", \"accept\",\n        \"sendto\", \"recvfrom\", \"bind\", \"listen\", \"getsockname\",\n        \"getpeername\", \"socketpair\", \"setsockopt\", \"getsockopt\",\n        \"clone\", \"fork\", \"vfork\", \"execve\", \"exit\", \"wait4\",\n        \"kill\", \"getuid\", \"getgid\", \"geteuid\", \"getegid\",\n        \"epoll_create\", \"epoll_wait\", \"epoll_ctl\", \"epoll_create1\",\n        \"futex\", \"set_tid_address\", \"set_robust_list\",\n        \"openat\", \"newfstatat\", \"readlinkat\", \"fchownat\",\n        \"clock_gettime\", \"clock_getres\", \"clock_nanosleep\",\n        \"getrandom\", \"memfd_create\", \"statx\", \"rseq\"\n      ],\n      \"action\": \"SCMP_ACT_ALLOW\"\n    },\n    {\n      \"names\": [\"unshare\", \"setns\", \"mount\", \"umount2\", \"pivot_root\",\n                \"init_module\", \"finit_module\", \"delete_module\",\n                \"kexec_load\", \"kexec_file_load\", \"ptrace\",\n                \"reboot\", \"swapon\", \"swapoff\", \"sethostname\",\n                \"setdomainname\", \"keyctl\", \"bpf\"],\n      \"action\": \"SCMP_ACT_LOG\",\n      \"comment\": \"Log escape-relevant syscalls for detection\"\n    }\n  ]\n}\n```\n\n### Step 4: Audit Rules for Container Escape\n\n```bash\n# \u002Fetc\u002Faudit\u002Frules.d\u002Fcontainer-escape.rules\n\n# Monitor namespace operations\n-a always,exit -F arch=b64 -S setns -S unshare -k container_escape\n-a always,exit -F arch=b64 -S mount -S umount2 -k container_mount\n-a always,exit -F arch=b64 -S init_module -S finit_module -S delete_module -k kernel_module\n-a always,exit -F arch=b64 -S ptrace -k process_trace\n\n# Monitor sensitive paths\n-w \u002Fvar\u002Frun\u002Fdocker.sock -p rwxa -k docker_socket\n-w \u002Fproc\u002Fsysrq-trigger -p w -k sysrq\n-w \u002Fproc\u002Fkcore -p r -k kcore_read\n\n# Monitor container runtime\n-w \u002Fusr\u002Fbin\u002Frunc -p x -k container_runtime\n-w \u002Fusr\u002Fbin\u002Fcontainerd -p x -k container_runtime\n-w \u002Fusr\u002Fbin\u002Fdocker -p x -k container_runtime\n```\n\n### Step 5: Real-Time Alert Pipeline\n\n```yaml\n# Falcosidekick configuration for alert routing\nconfig:\n  slack:\n    webhookurl: \"https:\u002F\u002Fhooks.slack.com\u002Fservices\u002Fxxx\"\n    minimumpriority: \"critical\"\n    messageformat: |\n      *Container Escape Alert*\n      Rule: {{ .Rule }}\n      Priority: {{ .Priority }}\n      Output: {{ .Output }}\n\n  elasticsearch:\n    hostport: \"https:\u002F\u002Felasticsearch:9200\"\n    index: \"falco-alerts\"\n    minimumpriority: \"warning\"\n\n  pagerduty:\n    routingkey: \"xxxx\"\n    minimumpriority: \"critical\"\n```\n\n## Validation Commands\n\n```bash\n# Test Falco rules with event generator\nkubectl run falco-event-generator \\\n  --image=falcosecurity\u002Fevent-generator \\\n  --restart=Never \\\n  -- run syscall --action PtraceAttachContainer\n\n# Check Falco alerts\nkubectl logs -n falco-system -l app.kubernetes.io\u002Fname=falco --tail=50\n\n# Verify seccomp profile is loaded\ndocker inspect --format '{{.HostConfig.SecurityOpt}}' \u003Ccontainer-id>\n\n# Check audit logs for escape-related events\nausearch -k container_escape --interpret\n```\n\n## References\n\n- [Falco Runtime Security](https:\u002F\u002Ffalco.org\u002Fdocs\u002F)\n- [Container Escape Techniques - HackTricks](https:\u002F\u002Fbook.hacktricks.xyz\u002Flinux-hardening\u002Fprivilege-escalation\u002Fdocker-security\u002Fdocker-breakout-privilege-escalation)\n- [MITRE ATT&CK T1611 - Escape to Host](https:\u002F\u002Fattack.mitre.org\u002Ftechniques\u002FT1611\u002F)\n- [Sysdig Container Security](https:\u002F\u002Fsysdig.com\u002Fproducts\u002Fsecure\u002F)\n",{"name":5,"tags":56,"author":58,"domain":47,"license":16,"version":59,"nist_csf":60,"subdomain":39,"description":7,"mitre_attack":65,"d3fend_techniques":70},[41,48,50,57,35,33],"security","mahipal","1.0",[61,62,63,64],"PR.PS-01","PR.IR-01","ID.AM-08","DE.CM-01",[66,67,68,69],"T1610","T1611","T1609","T1525",[71,72,73,74,75],"Platform Monitoring","Process Code Segment Verification","Stack Frame Canary Validation","Segment Address Offset Randomization","Process Analysis","main","54a798831d2266a3ca61ce68a7acb80b81160d57","skills\u002Fdetecting-container-escape-attempts",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":87,"prompt":97,"zipAvailable":98},[88,91,94],{"tool":89,"command":90},"npx","npx skills add mukul975\u002FAnthropic-Cybersecurity-Skills --skill detecting-container-escape-attempts",{"tool":92,"command":93},"bunx","bunx skills add mukul975\u002FAnthropic-Cybersecurity-Skills --skill detecting-container-escape-attempts",{"tool":95,"command":96},"pnpm","pnpm dlx skills add mukul975\u002FAnthropic-Cybersecurity-Skills --skill detecting-container-escape-attempts","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fdetecting-container-escape-attempts\u002FSKILL.md",true,[100,106,111,117,121,125,131],{"path":101,"resourceType":102,"resourceTypeDesc":103,"sizeBytes":104,"sourceHtmlUrl":105},"assets\u002Ftemplate.md","ASSET","资产文件",1356,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fdetecting-container-escape-attempts\u002Fassets\u002Ftemplate.md",{"path":107,"resourceType":107,"resourceTypeDesc":108,"sizeBytes":109,"sourceHtmlUrl":110},"LICENSE","许可证",11255,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fdetecting-container-escape-attempts\u002FLICENSE",{"path":112,"resourceType":113,"resourceTypeDesc":114,"sizeBytes":115,"sourceHtmlUrl":116},"references\u002Fapi-reference.md","REFERENCE","参考文档",2261,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fdetecting-container-escape-attempts\u002Freferences\u002Fapi-reference.md",{"path":118,"resourceType":113,"resourceTypeDesc":114,"sizeBytes":119,"sourceHtmlUrl":120},"references\u002Fstandards.md",2381,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fdetecting-container-escape-attempts\u002Freferences\u002Fstandards.md",{"path":122,"resourceType":113,"resourceTypeDesc":114,"sizeBytes":123,"sourceHtmlUrl":124},"references\u002Fworkflows.md",3067,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fdetecting-container-escape-attempts\u002Freferences\u002Fworkflows.md",{"path":126,"resourceType":127,"resourceTypeDesc":128,"sizeBytes":129,"sourceHtmlUrl":130},"scripts\u002Fagent.py","SCRIPT","脚本",6808,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fdetecting-container-escape-attempts\u002Fscripts\u002Fagent.py",{"path":132,"resourceType":127,"resourceTypeDesc":128,"sizeBytes":133,"sourceHtmlUrl":134},"scripts\u002Fprocess.py",12543,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fdetecting-container-escape-attempts\u002Fscripts\u002Fprocess.py",[136,165,193,223,254,286],{"skillNo":137,"name":138,"nameZh":139,"description":140,"descriptionZh":141,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":142,"categories":143,"keywords":148,"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",[144,145],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":146,"categoryName":147,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C32Q37WAMK06SGMFC02VFP","软件供应链安全",[149,150,151,152,57,47,153,154,46,44,155,156,157,158,159,160,161,162,163,164],"sigstore","provenance","slsa","verifying build provenance with slsa sigstore","incident response","identity","artifacts","ci","supply-chain","pipeline","supply-chain-security","t1195","attestation","code-signing","cosign","keyless",{"skillNo":166,"name":167,"nameZh":168,"description":169,"descriptionZh":170,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":171,"categories":172,"keywords":177,"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",[173,174],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":175,"categoryName":176,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C89JJEXGGRGHS6XVXDA46K","终端安全加固",[178,161,179,180,57,181,47,46,42,182,183,184,185,186,187,188,189,190,191,192],"boot","TPM","validating tpm measured boot attestation","policy","ZeRO","firmware","Tools","measured-boot","PCR","integrity","secrets","remote-attestation","tpm2-tools","integrity-verification","trusted-computing",{"skillNo":194,"name":195,"nameZh":196,"description":197,"descriptionZh":198,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":199,"categories":200,"keywords":207,"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",[201,204],{"categoryNo":202,"categoryName":203,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD4WETX0HM3SM9QKQ15B","SRE 工程师",{"categoryNo":205,"categoryName":206,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSSTY86MWS6W5GDQWB1ADQ","备份与灾难恢复",[187,208,209,210,211,47,212,43,42,213,214,215,216,217,37,218,219,220,221,222],"backup","recovery","validating backup integrity for recovery","testing","infrastructure","compliance","hash-verification","incident-response","ransomware","cryptocurrency","t1078","t1490","immutable","disaster-recovery","restore-testing",{"skillNo":224,"name":225,"nameZh":226,"description":227,"descriptionZh":228,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":229,"categories":230,"keywords":235,"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",[231,232],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":233,"categoryName":234,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C9JZH3GWXPJ6CQG5P7J48Y","数字取证与电子证据分析",[236,237,238,47,239,240,241,242,243,244,245,246,247,248,249,250,184,251,252,253],"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":255,"name":256,"nameZh":257,"description":258,"descriptionZh":259,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":260,"categories":261,"keywords":266,"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",[262,265],{"categoryNo":263,"categoryName":264,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQV98CYQ7TEW2D1MRQ00TE","安全公告与漏洞管理",{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},[267,268,269,47,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285],"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":287,"name":288,"nameZh":289,"description":290,"descriptionZh":291,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":292,"categories":293,"keywords":298,"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",[294,295],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":296,"categoryName":297,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BTHYSJPJ500X64JJ5CH06D","安全事件响应与威胁狩猎",[57,299,47,300,301,302,303,304,305,306,36,218,307,219,308,309,310,311,312,313],"triaging security incident","siem","file","ioc","soc","NIST-800-61","NIST","severity","execution","analysis","classification","severity-classification","incident-triage","SANS-PICERL","SOC-operations"]