/viperclaw:viper-zero-trust-mtls-meshfrom viperclaw
Audits Kubernetes service mesh manifests for zero-trust compliance. Reviews Istio/Linkerd PeerAuthentication STRICT mTLS, SPIFFE AuthorizationPolicy allowlists, and cert rotation.
Ships in viperclaw. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
viper-zero-trust-mtls-mesh)PeerAuthentication, AuthorizationPolicy, DestinationRule) and internal mTLS configurations.flowchart LR
PodA["Caller Pod (Short-Lived SPIFFE SVID)"] --> mTLS["PeerAuthentication (mode: STRICT)"] --> AuthZ["AuthorizationPolicy (Principal + Path)"] --> Egress["outboundTrafficPolicy: REGISTRY_ONLY"]
viperclaw taint . --db .viperclaw/graph.db
kind: PeerAuthentication, mode: PERMISSIVE, mode: DISABLE, kind: AuthorizationPolicy, spiffe://.STRICT Mutual TLS (PeerAuthentication): Audit Istio PeerAuthentication resources in istio-system and workload namespaces; flag mode: PERMISSIVE or mode: DISABLE in production and enforce mtls: { mode: STRICT } so plaintext lateral movement is rejected.AuthorizationPolicy: Deploy a namespace-wide default-deny AuthorizationPolicy (spec: {}) and grant access using explicit from: [{ source: { principals: ["cluster.local/ns/prod/sa/checkout-sa"] } }] combined with allowed HTTP methods and paths.Gateway and VirtualService definitions bind to explicit hostnames (never hosts: ["*"] on production TLS gateways) and enforce minProtocolVersion: TLSV1_2.REGISTRY_ONLY): Set meshConfig.outboundTrafficPolicy.mode: REGISTRY_ONLY and require explicit ServiceEntry definitions for approved external APIs so compromised pods cannot connect to arbitrary external hosts.# ❌ VULNERABLE: Permissive mTLS & allows any pod in cluster to call payments service
apiVersion: security.istio.io/v1beta1
kind: PeerAuthentication
metadata:
name: default
namespace: prod
spec:
mtls:
mode: PERMISSIVE
# ✅ HARDENED: Strict mTLS + SPIFFE principal allowlist scoped to specific POST route
apiVersion: security.istio.io/v1beta1
kind: PeerAuthentication
metadata:
name: default
namespace: prod
spec:
mtls:
mode: STRICT
---
apiVersion: security.istio.io/v1beta1
kind: AuthorizationPolicy
metadata:
name: payments-allow-checkout
namespace: prod
spec:
selector:
matchLabels:
app: payments-service
action: ALLOW
rules:
- from:
- source:
principals: ["cluster.local/ns/prod/sa/checkout-service"]
to:
- operation:
methods: ["POST"]
paths: ["/v1/charge"]
NIST SP 800-207, Istio/Linkerd Security, SPIFFE/SPIRE, CWE-319| Severity Tier | Baseline CVSS v3.1 Vector | Qualifying Security Impact |
|---|---|---|
| CRITICAL (9.0–10.0) | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H | Unauthenticated remote code execution, cross-tenant authentication or isolation gap, or direct theft of funds/keys. |
| HIGH (7.0–8.9) | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N | Authenticated privilege escalation, unauthorized sensitive data exposure, or single-request service outage. |
| MEDIUM (4.0–6.9) | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N | Scoped information disclosure, non-admin state mutation, or configuration weakness requiring user interaction. |
| LOW (0.1–3.9) | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:N/A:N | Defense-in-depth hardening gap requiring high precondition complexity and minimal direct impact. |
viperclaw taint . --db .viperclaw/graph.db and viperclaw verify to record the verified state in .viperclaw/graph.db.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
72 skills in this plugin
/viper-agent-skill-supplychainAI Agent Skill, Plugin & MCP Config Supply-Chain Auditor (modeled on NVIDIA SkillSpector & OWASP Agentic Skills Top 10). Audits SKILL.md bundles and MCP JSON configs./viper-ai-llm-guardrailsAI, LLM & MCP Application Security & Guardrails Auditor (OWASP LLM Top 10). Reviews prompt boundaries, RAG data isolation, tool-call authorization, and output sanitization./viper-api-gateway-apigee-kongAPI Gateway, BFF & Rate-Tier Policy Auditor (Kong, AWS API Gateway, Apigee, Envoy Gateway). Reviews JWT authorizers, backend origin lockdown, and route-level quotas.npx claudepluginhub zahidoverflow/viperclaw --plugin viperclawOther plugins' skills for the same job