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
About the project

xalgorix/xalgorix is a self-hosted AI penetration-testing tool in which an LLM agent performs reconnaissance, looks for vulnerabilities, and coordinates exploitation, while a separate verifier re-tests findings before reporting them. It is for security teams, ethical hackers, and bug bounty work using a private, bring-your-own-LLM setup. The catalogue skills extend the agent's pentesting workflow.

xalgorix/xalgorix · 1,531 stars · on GitHub · xalgorix.com

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.5 $0.00026 $0.00340
Sonnet 5.5 $0.00013 $0.00170
Haiku 4.5 $0.00007 $0.00085

Measured 2mo ago against content hash 0f1b2790e132, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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. 2mo 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 (1,531 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.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

performing-container-escape-detection compared with skills from other repositories

performing-container-escape-detection next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
performing-container-escape-detectionxalgorix/xalgorixSkill1.5kyesterdayApache-2.0B66Claude Code, Codex
cis-aws-foundations-2.1.1CyberStrikeus/CyberStrikeSkill3.8ktodayAGPL-3.0A19Claude Code, Codex
cis-aws-foundations-2.15CyberStrikeus/CyberStrikeSkill3.8ktodayAGPL-3.0A23Claude Code, Codex
cis-aws-foundations-2.4CyberStrikeus/CyberStrikeSkill3.8ktodayAGPL-3.0A20Claude Code, Codex
cis-aws-foundations-2.7CyberStrikeus/CyberStrikeSkill3.8ktodayAGPL-3.0A24Claude Code, Codex
cis-aws-database-3.1CyberStrikeus/CyberStrikeSkill3.8ktodayAGPL-3.0A17Claude Code, Codex
cis-aws-foundations-4.2CyberStrikeus/CyberStrikeSkill3.8ktodayAGPL-3.0A18Claude Code, Codex