Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

hunt-k8s

Skill by elementalsouls

Hunt-k8s is an agent skill that guides security testing of Kubernetes and Docker environments. It covers API access checks, kubelet exec paths, etcd exposure, and container escape techniques.

  • Score 91
  • 32k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install hunt-k8s

Built from the published package, never by AI.

git clone --depth 1 https://github.com/elementalsouls/Claude-BugHunter /tmp/Claude-BugHunter && mkdir -p ~/.claude/skills && cp -r /tmp/Claude-BugHunter/skills/hunt-k8s ~/.claude/skills/hunt-k8s

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install hunt-k8s in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

Hunt-k8s is a SKILL.md playbook for testing containerized infrastructure. It starts with port discovery on common Kubernetes ports such as 6443, 10250, 10255 and 2379, and fingerprints the API server version. It then checks anonymous and low-privilege API access using SelfSubjectRulesReview and SelfSubjectAccessReview, and covers kubelet /run and /exec endpoints, API-server-mediated nodes/proxy access, etcd without authentication, and docker.sock escape paths.

The skill is written for security practitioners who test clusters and container hosts. It asks the assistant to prove a state change or data read rather than infer impact from a status code, and to confirm outbound hops with an out-of-band service. It lists related CVEs and references tools such as kubeletctl, etcdctl and nmap.

Written from the project's SKILL.md and checked against it.

What it can do

  • Port and version fingerprintingScans common Kubernetes and container ports and reads the API server gitVersion.
  • Anonymous API access checksTests whether anonymous or low-privilege requests can list or act on cluster resources.
  • Kubelet /run and /execCovers command execution on port 10250, including the SPDY or WebSocket stream needed for /exec.
  • Read-only kubelet reviewLists pods, stats and metrics on port 10255, noted as information disclosure only.
  • nodes/proxy node accessRoutes kubelet requests through the API server using a token with nodes/proxy.
  • Ingress-NGINX checkDescribes checks for CVE-2025-1974 on the ingress-nginx admission controller.
  • etcd exposure checksQueries an unauthenticated etcd on port 2379 for keys and Secret data.
  • Cloud metadata pivotReads AWS, Azure and GCP metadata endpoints for Kubernetes service account credentials.

What you need

  • nmap
  • curl
  • etcdctl
  • kubeletctl
  • A SPDY or WebSocket client such as websocat

Try asking

  • Scan this host for exposed Kubernetes API and kubelet ports
  • Check whether the API server allows anonymous access to secrets
  • List the pods on this kubelet using port 10250

Good to know

  • The /exec endpoint needs a SPDY or WebSocket client, not a plain POST.
  • Port 10255 gives information disclosure only, with no exec or run.
  • A 200 response alone does not confirm cluster-admin access.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/hunt-k8s/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md20 KB

Alternatives to hunt-k8s

All alternatives →

Compare with function_health, windows-privilege-escalation or github-actions-advanced

hunt-k8s: common questions

Does this skill confirm cluster admin access?

No. The source says a 200 response can be filtered by RBAC, so privilege should be confirmed with access reviews and by reading a real Secret value.

Which ports does hunt-k8s check?

The source lists 443, 6443, 8443, 8080, 10250, 10255, 10256, 2379, 2380, 4194, 9090, 9100 and 30000-30010 in its scan.

Why is the kubelet read-only port not treated as RCE?

The source states that port 10255 is HTTP with no auth and only exposes pods, stats and metrics, with no exec or run endpoints.

How do I install hunt-k8s?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is hunt-k8s free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is hunt-k8s safe to use?

It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to hunt-k8s?

Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.

hunt-k8s Install

Add to stack

Loading.