Skip to main content

VaultCat

VaultCat

Test PyPI License: MIT Python

Full-lifecycle HashiCorp Vault penetration testing toolkit — recon, hijack, escalate, exfiltrate, pivot, and persist across three operational modes.

  • External Recon — zero-knowledge Vault fingerprinting, TLS/CORS/header audit, version→CVE matching, auth surface mapping
  • Authenticated Assessment — token capability audit, policy analysis, KV enumeration, TTL governance, auth config audit
  • Local Post-Exploitation — filesystem + git credential scanning (56 patterns), cross-file correlation, AppRole/DB validation
  • Active Execution — 30 state-changing modules (privilege escalation, secret exfiltration, persistence, pivot, CVE exploitation)
  • AI Agent — ReAct-loop autonomous pentest agent with multi-provider LLM, attack tree walker, and mutation engine
  • MCP Server — 52 tools exposed via FastMCP for Claude Desktop and other AI clients

Ethics: Use this tool only on systems you own or have explicit permission to assess. Read-only modules run freely; state-changing and destructive operations require --confirm-active. No brute-force or password cracking.

Install

pip install vaultcat

PyPI

For development:

git clone https://github.com/muhammedkurtoglu0/vaultcat.git
cd vaultcat
uv sync
uv run vaultcat chat

Quick Start

# Unauthenticated recon
vaultcat scan --target https://vault.example.com:8200

# Authenticated audit
vaultcat scan --target https://vault.example.com:8200 --token hvs.xxx --capability-audit

# Local credential hijacking
vaultcat hijack ./my-repo --validate-token --target https://vault.example.com:8200

# AI-powered pentest chat (terminal)
vaultcat chat

# AI chat with desktop GUI
vaultcat chat --ui desktop

# MCP server (for Claude Desktop integration)
vaultcat mcp

Documentation

Guide What it covers
Reconnaissance Unauthenticated scanning — TLS, CORS, CVE matching, auth surface
Authenticated Assessment Token-based audit — capability, policy, KV, TTL, AppRole validation
Credential Hijacking File/git scanning (56 patterns), correlation, validation
Active Execution Modules 30 state-changing modules with risk levels and parameters
AI-Powered Pentesting Chat agent, auto mode, tree walker, stealth, web search
MCP Integration Connect Claude Desktop, VS Code, and other AI clients
CLI Flags Reference All 50+ flags across 5 commands
Architecture Component flow, package layout, attack tree design
Environment Variables LLM keys, base URLs, NVD, web search configuration

Connect to Claude Desktop

vaultcat mcp --transport stdio

Then add to your Claude Desktop config:

{
  "mcpServers": {
    "vaultcat": {
      "command": "vaultcat",
      "args": ["mcp", "--transport", "stdio"]
    }
  }
}

52 pentest tools appear in Claude's toolbox. Full MCP guide →

Supported LLM Providers

Provider Env Var Default Model
Anthropic ANTHROPIC_API_KEY claude-sonnet-5
DeepSeek DEEPSEEK_API_KEY auto-detect
OpenAI OPENAI_API_KEY gpt-4o-mini
Kimi KIMI_API_KEY auto-detect
Ollama (local) OLLAMA_HOST auto-detect

Project Layout

main.py                 CLI entry point (Typer, 5 commands)
vault_cli.py            Typer app definition
core/                   Reporting, risk scoring, TLS config
reconnaissance/         14 unauthenticated recon scanners
scanners/               10 authenticated assessment scanners
credential_hijacking/   7 file/git scanning + correlation modules
active_execution/       30 state-changing assessment modules
  modules/
    cloud/              AWS/Azure/GCP exploitation
    database/           DB credential harvest + exploitation
    general/            CVE scanner, agent sidecar, DoS
    persistence/        Backdoors + audit manipulation
    pivot/              Cross-service lateral movement
    seal/               Seal/unseal + key exfiltration
    secrets/            KV dump, PKI, Transit, Raft storage
    token/              Priv esc, token/policy exploits, K8s/JWT/AppRole
ai_core/                LLM agent, MCP server, chat UI, planning, session
vaultcat-lab/      Docker-based lab (Vault 1.15.3 + PostgreSQL 16)
tests/                  23 test files, 600+ tests

Vault Pentest Lab

cd vaultcat-lab
docker compose up -d
./scripts/setup-lab.sh
source lab-tokens.env

Full lab guide →

License

MIT — see LICENSE.

Release files for vaultcat 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vaultcat 1.1.0
File Size Uploaded
vaultcat-1.1.0.tar.gz 461.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vaultcat 1.1.0
File Interpreter ABI Platform
vaultcat-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 913.7 kB

Release files / vaultcat-1.1.0.tar.gz

Download URL vaultcat-1.1.0.tar.gz
Size 461.5 kB
Tags Source
SHA-256 checksum
How to use checksums
c01b5592ae98cd9ce301c5fcbb4f11a5dc4ee76db6ff6c36b6585abcf97555f8
BLAKE2b-256 checksum
How to use checksums
3440f6bf3e719cc871e86a03c93f107ca548c8e30a740e8c8c2d1eedf8cd5889
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.17 {"installer":{"name":"uv","version":"0.11.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / vaultcat-1.1.0-py3-none-any.whl

Download URL vaultcat-1.1.0-py3-none-any.whl
Size 452.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ffd2858b3905b2d810849b47472743b9000d8c442c66aed2c34c63e9f5d219bb
BLAKE2b-256 checksum
How to use checksums
291eb4d907227458497a00d395de47edbbb29edcfa3b11d84d1736da1c4d2819
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.17 {"installer":{"name":"uv","version":"0.11.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

1.1.2

2 release files

1.1.1

2 release files

This release

1.1.0 This release

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page