Overview
The Kubernetes Scanner detects security misconfigurations and vulnerabilities in Kubernetes clusters. It scans for Kubernetes-specific services and runs both passive and active detection methods to identify security issues. The Kubernetes Scanner is a vulnerability scanner: it actively tests Kubernetes clusters for security weaknesses. It does not add data to your Attack Surface. Identified vulnerabilities are reported as findings.Supported targets
Scan types
Parameters comparison
Detection methods comparison
Custom scan
Full control over scan parameters:- Define custom port ranges, lists, or common port presets
- Enable or disable active detection methods
- Configure authenticated scanning with service account tokens
Custom scan options
Port selection
The “Top X ports” presets are curated lists of ports commonly used by Kubernetes services. The actual port count may differ from the preset name.
Additional options
Passive detections
Non-intrusive checks that identify exposed services and misconfigurations without exploiting them. Available in all scan modes.Service fingerprinting
Identifies Kubernetes-related services running on open ports by analyzing service banners and response patterns. Detects API servers, kubelet, etcd, dashboards, and other components.Version detection
Extracts version information from identified services to determine the Kubernetes distribution and version. Used to check for known vulnerabilities affecting specific versions.Configuration enumeration
Queries accessible endpoints to gather configuration details without authentication. Identifies insecure defaults, exposed metrics endpoints, and debug interfaces.Exposed API detection
Checks if Kubernetes APIs (API server, kubelet, etcd) are accessible without authentication or with anonymous access enabled. Identifies critical exposure risks.Active detections
More thorough checks that exploit found vulnerabilities to discover additional issues. Only available in Deep and Custom scan modes.Vulnerability exploitation
Attempts to exploit detected vulnerabilities to confirm they are exploitable and to discover additional issues that may be accessible through the initial vulnerability.Privilege escalation testing
Tests for paths that could allow an attacker to escalate privileges within the cluster. Checks for overly permissive RBAC roles, hostPath mounts, and privileged containers.Container escape checks
Tests for container escape vectors including privileged mode, host namespace sharing, dangerous capabilities, and kernel vulnerabilities that could allow breaking out of containers.RBAC enumeration
Enumerates Role-Based Access Control configurations to identify overly permissive roles, dangerous bindings, and potential privilege escalation paths through RBAC misconfigurations.What it detects
Authentication
Provide a service account token to simulate an authenticated adversary. This reveals:- Internal misconfigurations not visible externally
- What an attacker with valid credentials could access
- Privilege escalation paths within the cluster
header.payload.signature
Authenticated scanning is only available in Deep and Custom scan modes. See Authenticated scanning for configuration details.
How it works
Our Kubernetes scanning engine is based on kube-hunter. We started with this engine, improved its accuracy and detection methods, and integrated them into our product. The scanner executes these steps:- Host discovery: Checks if the target is alive (optional)
- Port scanning: Scans for Kubernetes-specific ports using Nmap
- Service detection: Identifies Kubernetes services on open ports
- Passive detection: Fingerprints services and enumerates configurations
- Active detection: Exploits vulnerabilities to find additional issues (Deep/Custom)
- Reporting: Generates findings with severity and remediation guidance
Follow-up actions
After identifying Kubernetes vulnerabilities:- Restrict API access: Implement network policies and authentication
- Review RBAC: Apply principle of least privilege
- Secure the dashboard: Disable or require authentication
- Audit service accounts: Remove unnecessary permissions
- Run Network Scanner: Test the underlying infrastructure
- Run Cloud Scanner: Check cloud provider configurations
- Run Port Scanner: Discover additional exposed services