k8s-network-recon

Automate in-cluster Kubernetes service enumeration with DNS PTR, SRV, AXFR, and K8Spider scans.

1.6k|234|Updated Dec 7, 2019
One-click install
npx skills add https://github.com/wgpsec/AboutSecurity --skill k8s-network-recon
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: k8s-network-recon
Source: https://github.com/wgpsec/AboutSecurity/tree/main/skills/cloud/k8s-network-recon
Command: npx skills add https://github.com/wgpsec/AboutSecurity --skill k8s-network-recon

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Kubernetes cluster internal reconnaissance and service discovery. When you have a Pod shell and need to discover other services in the cluster or perform internal network scanning, this skill helps. It covers DNS PTR lookups, SRV enumeration, AXFR transfers, and K8Spider usage. Any scenario in a Pod requiring lateral reconnaissance, hidden service discovery, or target clarification should use this skill, even if the user doesn't mention DNS.

Core Features & Use Cases

  • DNS PTR lookups
  • SRV enumeration
  • AXFR zone transfers
  • K8Spider driven scanning
  • Intra-cluster service discovery for lateral movement planning

Quick Start

Run an in-cluster scan from a Pod to enumerate services and endpoints using PTR, SRV, AXFR, and K8Spider.

Frequently Asked Questions about k8s-network-recon

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

FAQPage Schema
How do I discover Kubernetes services from inside a Pod?

Kubernetes service discovery from a Pod involves enumerating internal services and endpoints using DNS PTR lookups, SRV enumeration, and AXFR zone transfers. This maps internal cluster services for lateral reconnaissance.

What is the best way to enumerate cluster-internal services when I have a Pod shell?

The best way to enumerate cluster-internal services from a Pod shell is using K8Spider to automate DNS PTR lookups, SRV enumeration, and AXFR transfers. This reveals hidden services and clarifies targets within the cluster.

Does K8Spider require specific DNS configuration to perform in-cluster reconnaissance?

Yes, K8Spider requires proper DNS configuration and access to the Pod to perform in-cluster reconnaissance. It relies on these DNS settings to execute PTR/SRV/AXFR scans and accurately map internal service endpoints.

How does DNS PTR lookup help with Kubernetes network reconnaissance?

DNS PTR lookups help Kubernetes network reconnaissance by reverse-resolving IP addresses to service domain names. This technique identifies internal cluster services and endpoints from within a Pod environment.

Can I perform AXFR zone transfers to map Kubernetes internal networks?

Yes, you can perform AXFR zone transfers to map Kubernetes internal networks. When executed from a Pod with proper DNS configuration, AXFR transfers enumerate available service records alongside SRV enumeration and PTR lookups.

When should I use SRV enumeration for Kubernetes service discovery?

You should use SRV enumeration for Kubernetes service discovery when you need to identify available services and their listening ports from within a Pod. It effectively maps internal endpoints during lateral reconnaissance operations.