Skip to content

Kubernetes Control Plane CTF Helper

Analyzes Kubernetes RBAC, service-account, admission and controller behavior in CTF sandboxes.

Stars
43,969
Licence
MIT
Files
3 files

What it does

This is a specialist instruction set for an AI agent working on Capture-the-Flag style security exercises that involve Kubernetes clusters. Once installed, when a user asks about API permissions, service-account tokens, role bindings, admission webhooks, or why live workloads differ from their YAML manifests, the agent follows a structured method: map who the active identity is, trace what API actions it can take, and show how those actions change pods or expose secrets. It is explicitly a downstream skill that only applies after a parent skill (ctf-sandbox-orchestrator) has set up sandbox assumptions, and it tells the agent to reply in Simplified Chinese unless English is requested.

Great for

  • Students working through Kubernetes security CTF challenges in an authorized sandbox
  • Security trainers building or reviewing cluster-hardening lab exercises
  • Engineers who need to audit which service accounts can read secrets or create pods in a test cluster

Skip it if

  • Production clusters or systems you do not own or have written permission to test, since the skill is oriented toward exploiting permission paths and carries misuse risk
  • Users who only want general Kubernetes help like writing manifests; the skill does not cover that and will not trigger well outside its trigger phrases

Try asking

  • “Trace which service account can patch deployments in the lab namespace and what pod changes that causes”
  • “Explain why the live pod spec differs from my checked-in YAML after admission webhooks ran”
  • “Map the RoleBinding chain that lets this service account read a mounted secret”
Step-by-step guide: how to use Kubernetes Control Plane CTF HelperInstall, first run, examples, tips and FAQs

Install in 3 steps

  1. 1

    Download the skill

    The ZIP contains the 3 original files, the MIT licence and an attribution note.

    competition-k8s-control-plane.zip
  2. 2

    Add it to your agent

    Claude Code (all projects)

    mkdir -p ~/.claude/skills && unzip competition-k8s-control-plane.zip -d ~/.claude/skills/

    Claude Code / Agent SDK (this project only)

    mkdir -p .claude/skills && unzip competition-k8s-control-plane.zip -d .claude/skills/

    Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.

  3. 3

    Ask for the task

    No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.

Get better results

  • Install and activate ctf-sandbox-orchestrator first; this skill will otherwise tell the agent to route back to it.
  • Only point it at a sandbox or lab cluster you are authorised to test, and state that scope clearly in your request.
  • Provide the namespace, service account and manifests up front so the agent can build the principal-to-workload chain without guessing.

What's inside

  • agents/openai.yaml
  • references/k8s-control-plane.md
  • SKILL.md

Redistributed unmodified from zhaoxuya520/reverse-skill under the MIT licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.