Kubernetes API BIND
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from kittysploit import *
from lib.c2.kubernetes_bind import build_kubernetes_bind_hint
class Module(Payload):
__info__ = {
"name": "Kubernetes API BIND",
"description": (
"BIND payload for listeners/container/kubernetes_api. Operator authenticates "
"to the cluster API (kubeconfig, token, or in-cluster SA on operator host)."
),
"category": PayloadCategory.CMD,
"platform": Platform.MULTI,
"listener": "listeners/container/kubernetes_api",
"handler": Handler.BIND,
"session_type": SessionType.KUBERNETES,
}
api_server = OptString("", "Kubernetes API URL (optional with kubeconfig)", False)
token = OptString("", "Bearer token", False)
token_file = OptString("", "Path to token file", False)
kubeconfig = OptString("", "Path to kubeconfig", False)
context = OptString("", "kubeconfig context", False)
namespace = OptString("default", "Default namespace", False)
ca_file = OptString("", "Cluster CA certificate path", False)
insecure = OptBool(False, "Skip TLS verification", False)
in_cluster = OptBool(False, "Use in-cluster service account paths", False)
rhost = OptString("", "Alias: api_server host (https://host:6443)", False)
def generate(self):
api = str(self.api_server or self.rhost or "").strip()
if api and not api.startswith("http"):
api = f"https://{api}"
mode = "in_cluster" if bool(self.in_cluster) else (
"kubeconfig" if str(self.kubeconfig or "").strip() else (
"token" if str(self.token or self.token_file or "").strip() else "kubeconfig"
)
)
return build_kubernetes_bind_hint(
api,
str(self.namespace or "default"),
mode,
)
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation
08 Aug 2026 21:48Current
5.9Medium risk
Vulners AI Score5.9