Technical Documentation | v1.0.0
K8s-AV transforms Kubernetes misconfigurations into real, actionable attack paths — so you can understand and fix them effectively.
👉 https://www.npmjs.com/package/k8s-av
npm install -g k8s-av
npx k8s-av startK8s-AV (Kubernetes Attack Path Visualizer) is an open-source, local-first security analysis tool that maps, visualizes, and explains the complete attack surface of a Kubernetes cluster.
Instead of producing isolated vulnerability lists, K8s-AV models your cluster as a property graph and computes real exploitable attack paths — from entry points to critical resources (crown jewels).
Privacy-first: All processing happens locally. No cluster data is transmitted externally.
Traditional tools answer:
“What is vulnerable?”
But they fail to answer:
“How can an attacker actually exploit this?”
This leads to:
👉 K8s-AV shifts the focus to:
“How can an attacker move through my system?”
Extracts Kubernetes resources via kubectl (live or mock)
Uses BFS + Dijkstra algorithms
CVE enrichment with NVD + CVSS scoring
Interactive local UI
Readable attack narratives
No telemetry or external data sharing
| Layer | Responsibility |
|---|---|
| CLI | Command execution + orchestration |
| Scanner | Extracts cluster resources |
| Graph Builder | Converts data into nodes + edges |
| Neo4j + GDS | Graph storage + algorithms |
| Backend + UI | API + visualization |
Kubernetes Cluster
↓
CLI (kubectl scan)
↓
CVE Enrichment (NVD)
↓
Graph Transformation
↓
Neo4j (Graph DB)
↓
GDS Algorithms (BFS, Dijkstra, PageRank)
↓
Backend APIs
↓
React UI⚠️ Only read access required
npx k8s-av startAutomatically:
k8s-av <command> [options]k8s-av start --source livek8s-av scan --output data.jsonk8s-av ingest --source live --wipek8s-av report --format json --output report.jsonnpx k8s-av startk8s-av scan --mockk8s-av start --source live
k8s-av ingest --source live --wipe
k8s-av report --crown-jewelsNEO4J_URI=bolt://localhost:7687
NEO4J_PASSWORD=yourpassword
API_PORT=3001
UI_PORT=3000
NVD_API_KEY=optionaldocker ps
kubectl config get-contexts
docker restart k8sav-neo4jgit clone <repo>
npm install
npm run devMIT License © 2025 K8s-AV Contributors