performing-container-escape-detection

performing-container-escape-detection is a skill for Claude Code, Codex from xalgorix/xalgorix. It costs 66 tokens per session (850 once invoked), scanned B, original, Apache-2.0.

A guide to finding Kubernetes container configurations that could allow a process to escape its container and access the host. It checks privileges, Linux capabilities, namespace settings, and host-mounted paths.

In plain words
What is it for?
Use it to audit pod, init-container, and ephemeral-container settings, investigate escape risks, and identify dangerous host exposure.
Why use it?
It helps uncover escape risks that a basic check for privileged containers would miss.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to audit pod, init-container, and ephemeral-container settings, investigate escape risks, and identify dangerous host exposure.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xalgorix/xalgorix/performing-container-escape-detection
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add xalgorix/xalgorix --skill performing-container-escape-detection
Clone the repo
git clone --depth 1 https://github.com/xalgorix/xalgorix

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for performing-container-escape-detection

README.md
[![agentmods](https://agentmods.dev/badge/skills/xalgorix/xalgorix/performing-container-escape-detection/github.svg)](https://agentmods.dev/skills/xalgorix/xalgorix/performing-container-escape-detection)
Your own site
<a href="https://agentmods.dev/skills/xalgorix/xalgorix/performing-container-escape-detection"><img src="https://agentmods.dev/badge/skills/xalgorix/xalgorix/performing-container-escape-detection/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for performing-container-escape-detection

Your own site · 80×15
<a href="https://agentmods.dev/skills/xalgorix/xalgorix/performing-container-escape-detection"><img src="https://agentmods.dev/badge/skills/xalgorix/xalgorix/performing-container-escape-detection.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 850 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 3 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 41
    Potential security issue detected. Manual review is recommended.
    Fix: Review the flagged content for security risks. Ensure no credentials, secrets, or sensitive data are exposed.
  • high Privilege Escalation · line 44
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Privilege Escalation · line 76
    Potential security issue detected. Manual review is recommended.
    Fix: Review the flagged content for security risks. Ensure no credentials, secrets, or sensitive data are exposed.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00066 $0.00850
Opus 5 $0.00033 $0.00425
Sonnet 5 $0.00013 $0.00170
Haiku 4.5 $0.00007 $0.00085

Measured 5d ago against content hash 0f1b2790e132, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade B, and why

performing-container-escape-detection scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reaches for credential filesmediumPrivilege escalation

SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.

**Validate, don't conclude-safe from one field:** a single clean field is not a clean pod - enumerate the full matrix above. Where authorized, confirm a finding by actually attempting the escape in a throwaway namespace

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

internal/tools/skills/data/container-security/performing-container-escape-detection/SKILL.md · 86 lines

How it starts

The opening of the file, as written. The whole thing — 86 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Performing Container Escape Detection

When to Use

  • When conducting security assessments that involve performing container escape detection
  • When following incident response procedures for related security events
  • When performing scheduled security testing or auditing activities
  • When validating security controls through hands-on testing

Detection Gaps & Validation

A pod-spec audit that only reads securityContext.privileged misses most real escape paths. The fields below are the ones detection scripts routinely skip:

  • Beyond privileged: check allowPrivilegeEscalation, procMount: Unmasked, seccompProfile: Unconfined/absent, and added capabilities individually - SYS_ADMIN, SYS_PTRACE, DAC_READ_SEARCH (CVE-2022-0492 via cgroup release_agent), NET_RAW, SYS_MODULE, BPF. A non-privileged pod with SYS_ADMIN still escapes.
  • All container types: iterate spec.containers and spec.initContainers and spec.ephemeralContainers - debug/ephemeral containers are a common blind spot.
  • Host exposure: hostPID/hostIPC/hostNetwork, and hostPath mounts beyond / and /etc (/var/run/docker.sock, /var/run/containerd, /proc, /sys, kubelet dirs). Check the mount is writable, not just present.
  • Pod-level vs container-level securityContext: a setting on one does not imply the other; read both.

Validate, don't conclude-safe from one field: a single clean field is not a clean pod - enumerate the full matrix above. Where authorized, confirm a finding by actually attempting the escape in a throwaway namespace (e.g. mount host root from a SYS_ADMIN pod, or read /host/etc/shadow via a hostPath mount). Cross-check the live audit against runtime detection (Tetragon/Falco) - a static "no privileged pods" result does not mean no escape occurred.

Prerequisites

  • Familiarity with container security concepts and tools
  • Access to a test or lab environment for safe execution
  • Python 3.8+ with required dependencies installed
  • Appropriate authorization for any testing activities

Read the full file on GitHub · 86 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 86 lines · 66 tokens per session scan B 0f1b2790e132

Subscribe to this mod's changes

performing-container-escape-detection is a skill published in the GitHub repository xalgorix/xalgorix (965 stars, last pushed yesterday), licensed Apache-2.0. It adds 66 tokens to every session and 850 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it B with 1 finding (reaches for credential files). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

deploying-active-directory-honeytokens

Deploys deception-based honeytokens in Active Directory including fake privileged accounts with AdminCount=1, fake SPNs for Kerberoasting detection (honeyroasting), decoy GPOs with cpassword traps, and fake BloodHound paths. Monitors Windows Security Event IDs 4769, 4625, 4662, 5136 for honeytoken interaction. Use…

26zl/cybersec-toolkit · 101 tokens

deploying-decoy-files-for-ransomware-detection

Deploys canary files (honeytokens) across file systems to detect ransomware encryption activity in real time. Uses strategically placed decoy documents monitored via file integrity monitoring or OS-level watchdogs to trigger alerts when ransomware modifies or encrypts them. Activates for requests involving ransomware…

26zl/cybersec-toolkit · 87 tokens

deploying-ransomware-canary-files

Deploys and monitors ransomware canary files across critical directories using Python's watchdog library for real-time filesystem event detection. Places strategically named decoy files that mimic high-value targets (financial records, credentials, database exports) in locations ransomware typically enumerates first.…

26zl/cybersec-toolkit · 103 tokens

analyzing-docker-container-forensics

Use when investigate compromised Docker containers by analyzing images, layers, volumes, logs, and runtime artifacts to identify malicious activity and evidence. Use when working with analyzing docker container forensics.

oyi77/1ai-skills · 45 tokens

analyzing-kubernetes-audit-logs

Use when parses Kubernetes API server audit logs (JSON lines) to detect exec-into-pod, secret access, RBAC modifications, privileged pod creation, and anonymous API access. Builds threat detection rules from audit event patterns. Use when investigating Kubernetes cluster compromise or building k8s-specific SIEM…

oyi77/1ai-skills · 72 tokens

auditing-kubernetes-cluster-rbac

Auditing Kubernetes cluster RBAC configurations to identify overly permissive roles, wildcard permissions, dangerous ClusterRoleBindings, service account abuse, and privilege escalation paths using kubectl, rbac-tool, KubiScan, and Kubeaudit.

26zl/cybersec-toolkit · 56 tokens