Answers from the documentation; checking which model is on duty
Hi - I answer from the OpenSmartRoute documentation: routing, the API, plans and quotas, self-hosting. Ask away, or open a support ticket if you need a person.
Grounded in the docs - follow a source before acting on it.
Audits container and pod configuration for escape-enabling misconfiguration using the Kubernetes Python client - privileged flags, dangerous capability grants, host path mounts, shared namespaces…
Imported from mukul975/anthropic-cybersecurity-skills (skills/performing-container-escape-detection/SKILL.md). Install upstream with npx skills add mukul975/anthropic-cybersecurity-skills --skill performing-container-escape-detection. Copyright stays with the author (Apache-2.0).
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
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
Instructions
Audit Kubernetes pods for container escape vectors including privileged mode,
dangerous capabilities, host namespace sharing, and writable hostPath mounts.
from kubernetes import client, configconfig.load_kube_config()v1 = client.CoreV1Api()pods = v1.list_pod_for_all_namespaces()for pod in pods.items: for container in pod.spec.containers: sc = container.security_context if sc and sc.privileged: print(f"PRIVILEGED: {pod.metadata.namespace}/{pod.metadata.name}")
Key escape vectors:
Privileged containers (full host access)
CAP_SYS_ADMIN capability
Host PID/Network/IPC namespace sharing
Writable hostPath mounts to / or /etc
Docker socket mount (/var/run/docker.sock)
Examples
# Check for docker socket mountsfor vol in pod.spec.volumes or []: if vol.host_path and "docker.sock" in (vol.host_path.path or ""): print(f"Docker socket exposed: {pod.metadata.name}")
Installed into a catalogue, chosen by a router
Install performing-container-escape-detection and it becomes one more candidate the router can pick - when it fits.
A listing is a routing target with a manifest: what it does, which domains it covers, what it costs and who publishes it. Once installed it sits beside your own models and tools, is scored like any other candidate for each request, and shows up in the trace when it wins. Ratings come from workspaces that installed it, one per account.
When a provider is down or over quota the request moves on; the trace says it did.
Use it
Copy one of these into your project. Installing also returns the manifest and these snippets.
# after Install: the listing is in your workspace's routing pool - a plan picks it for its slotcurl-s-X POST https://api.opensmartroute.ai/api/v1/route -H 'Authorization: Bearer $OSR_API_KEY' -H 'Content-Type: application/json' -d '{"text": "...", "plan": true}'
Manifest
An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.
{
"ocm": "1",
"id": "mukul975-anthropic-cybersecurity-skills-performing-conta-c5ce77",
"kind": "skill",
"name": "performing-container-escape-detection",
"description": "Audits container and pod configuration for escape-enabling misconfiguration using the Kubernetes Python client - privileged flags, dangerous capability grants, host path mounts, shared namespaces, and CVE-2022-0492 style cgroup abuse. Use when sweeping a cluster for workloads that could break out, producing a posture report, or checking configuration before enforcement is switched on. Keywords: privileged, hostPath, hostPID, capabilities, CVE-2022-0492, cgroup, kubernetes python client, posture audit. Do not use for runtime syscall-based detection - use detecting-container-escape-attempts. '",
"publisher": "mukul975",
"version": "1.0.0",
"capabilities": {
"domains": [
"coding",
"observability"
],
"tags": [
"skill-md",
"container-security",
"container-escape",
"privileged-container",
"namespace-analysis",
"linux-capabilities",
"threat-detection",
"skills-sh"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"Audits container and pod configuration for escape-enabling misconfiguration using the Kubernetes Python client - privileged flags, dangerous capability grants, host path mounts, shared namespaces, and CVE-2022-0492 style cgroup abuse. Use when sweeping a cluster for workloads that could break out, producing a posture report, or checking configuration before enforcement is switched on. Keywords: privileged, hostPath, hostPID, capabilities, CVE-2022-0492, cgroup, kubernetes python client, posture audit. Do not use for runtime syscall-based detection - use detecting-container-escape-attempts. '"
],
"primary": false,
"metadata": {
"source": {
"provider": "skills.sh",
"repository": "https://github.com/mukul975/anthropic-cybersecurity-skills",
"path": "skills/performing-container-escape-detection/SKILL.md",
"ref": "HEAD",
"url": "https://github.com/mukul975/anthropic-cybersecurity-skills/blob/HEAD/skills/performing-container-escape-detection/SKILL.md",
"key": "mukul975/anthropic-cybersecurity-skills/skills/performing-container-escape-detection/SKILL.md"
},
"license": "Apache-2.0"
},
"instructions": "# Performing Container Escape Detection\n\n\n## When to Use\n\n- When conducting security assessments that involve performing container escape detection\n- When following incident response procedures for related security events\n- When performing scheduled security testing or auditing activities\n- When validating security controls through hands-on testing\n\n## Prerequisites\n\n- Familiarity with container security concepts and tools\n- Access to a test or lab environment for safe execution\n- Python 3.8+ with required dependencies installed\n- Appropriate authorization for any testing activities\n\n## Instructions\n\nAudit Kubernetes pods for container escape vectors including privileged mode,\ndangerous capabilities, host namespace sharing, and writable hostPath mounts.\n\n```python\nfrom kubernetes import client, config\nconfig.load_kube_config()\nv1 = client.CoreV1Api()\n\npods = v1.list_pod_for_all_namespaces()\nfor pod in pods.items:\n for container in pod.spec.containers:\n sc = container.security_context\n if sc and sc.privileged:\n print(f\"PRIVILEGED: {pod.metadata.namespace}/{pod.metadata.name}\")\n```\n\nKey escape vectors:\n1. Privileged containers (full host access)\n2. CAP_SYS_ADMIN capability\n3. Host PID/Network/IPC namespace sharing\n4. Writable hostPath mounts to / or /etc\n5. Docker socket mount (/var/run/docker.sock)\n\n## Examples\n\n```python\n# Check for docker socket mounts\nfor vol in pod.spec.volumes or []:\n if vol.host_path and \"docker.sock\" in (vol.host_path.path or \"\"):\n print(f\"Docker socket exposed: {pod.metadata.name}\")\n```",
"cost": {
"context_tokens": 393
}
}
Fetch it by URL: GET /api/v1/registry/mukul975-anthropic-cybersecurity-skills-performing-conta-c5ce77/manifest?version=1.0.0
Reviews
Star ratings from people who tried it. One review per account; edit yours any time.
No reviews yet. Install it, try it, and be the first to rate it.