hunt-kubernetes-exposure

Validates Kubernetes cluster exposure and RBAC misconfigurations through read-only authorized probes.

10|3|Updated Aug 10, 2026
One-click install
npx skills add https://github.com/baiqigo/baiqi-redteam-lab --skill hunt-kubernetes-exposure-baiqigo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hunt-kubernetes-exposure
Source: https://github.com/baiqigo/baiqi-redteam-lab/tree/main/.agents/skills/hunt-kubernetes-exposure
Command: npx skills add https://github.com/baiqigo/baiqi-redteam-lab --skill hunt-kubernetes-exposure-baiqigo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Security teams need a disciplined, evidence-gated way to confirm whether their own Kubernetes clusters expose APIs, metadata, or workloads to anonymous or low-privilege identities, without risking secrets access, privilege escalation, or production side effects. ## Core Features & Use Cases - Engagement Gating: Enforces documented authorization, locked scope, and host/identity baselines before any probe runs, treating WAF blocks, timeouts, and anomalies as inconclusive. - Read-Only Validation Workflow: Guides a fixed cadence of baseline, single-variable probe, post-baseline, oracle, and evidence collection using official API discovery and audit logs. - Strict Oracle and Stop Rules: Confirms findings only when anonymous or low-privilege reads of protected canary metadata are proven by audit/RBAC evidence, and halts immediately on secrets, token access, exec, or cross-namespace conditions. - Use Case: A red team operator verifying a self-owned cluster follows the route to compare anonymous versus approved low-privilege reads of a canary namespace, then routes CVE indicators to triage and cloud ownership questions to a cloud misconfiguration skill. ## Quick Start Use the hunt-kubernetes-exposure skill to plan an evidence-gated, read-only validation of my authorized Kubernetes cluster's public exposure and RBAC posture.

Frequently Asked Questions about hunt-kubernetes-exposure

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check if my Kubernetes cluster is exposed to the internet?

Kubernetes exposure validation compares anonymous versus approved low-privilege reads of your own canary namespace using official API discovery and management logs. A finding is valid only when audit and RBAC evidence confirm unauthorized reads of protected metadata.

How to test Kubernetes RBAC misconfigurations safely?

Test RBAC safely by enumerating only your own canary namespace with read-only calls, comparing anonymous and low-privilege role responses. Never attempt token retrieval, secret listing, exec, port-forward, or admission changes during validation.

What evidence confirms a real Kubernetes exposure finding?

A valid finding requires in-scope anonymous or low-privilege access to protected canary metadata or APIs, corroborated by audit logs and RBAC configuration. Banners, ingress 404 responses, and scanner hits alone do not qualify.

Can I use this approach on third-party or production clusters?

No, this workflow requires documented authorization, locked scope, and self-owned accounts, namespaces, and test data. It stops immediately for third-party assets, shared users, production side effects, or activity outside the written authorization window.

When should Kubernetes findings be routed to CVE triage instead?

Route to CVE triage when probes reveal ingress controller or component vulnerabilities tied to known CVEs rather than configuration exposure. Cloud ownership questions route to a cloud misconfiguration workflow instead.