Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
aigate — AI Prompt Secret Scanner: local proxy and Claude Code hook that blocks secrets before they reach AI APIs | Kitploit
Tools/GitHubGitHub/jricramc/aigate
Code AnalysisData ExfiltrationDevSecOpsSecret DetectionAPI SecurityAI Security
GitHubjricramc/aigate

aigate

AI Prompt Secret Scanner: local proxy and Claude Code hook that blocks secrets before they reach AI APIs

View Repository
64 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

aigate

Secret hygiene for AI-generated code. Catches hardcoded credentials in prompts, tool inputs, generated code, and existing files.

Quick start

root@kitploit:~
pip install aigate && aigate setup-all

That's it. This installs a background proxy (redact mode), a PostToolUse hook for file scanning, and registers the MCP server with Claude Code. Restart your terminal for env vars to take effect.

Requires Python 3.11+ and jq.

What it does

Three layers, one detection engine:

LayerScopeHow
ProxyNetwork-levelIntercepts HTTPS requests to AI APIs. Redacts secrets before they leave your machine.
HooksClaude CodePostToolUse scans files after Write/Edit. PreToolUse redacts tool inputs.
MCP ServerAny agentThree tools agents call to scan code, store secrets, and audit files.

setup-all installs all three. Or pick what you need:

root@kitploit:~
aigate install-hook              # hooks only (no proxy)
claude mcp add aigate aigate-mcp # MCP server only
aigate setup && aigate start     # proxy only

Scan existing code

root@kitploit:~
aigate scan-dir .                # find secrets in a directory
aigate scan-dir . --fix --dry-run # preview what would change
aigate scan-dir . --fix          # replace with env var refs, save to .env

Detection

AWS keys, API tokens (OpenAI, Anthropic, GitHub, GitLab, Slack, SendGrid, Square), database URLs, private keys, GCP service accounts, Tailscale keys, env file secrets, and high-entropy password/token fields.

Detected secrets are mapped to conventional env var names:

Proxy modes

root@kitploit:~
aigate start -m block    # reject requests (default)
aigate start -m redact   # replace secrets with env var placeholders
aigate start -m warn     # forward + log warning
aigate start -m audit    # forward + silent log

Uninstall

root@kitploit:~
aigate stop-proxy && aigate uninstall-hook && claude mcp remove aigate
pip uninstall aigate && rm -rf ~/.aigate ~/.mitmproxy

Remove the lines after # aigate: proxy env vars and # aigate: trust mitmproxy CA from your shell profile.

CA cert removal — macOS: sudo security delete-certificate -c mitmproxy /Library/Keychains/System.keychain | Debian: sudo rm /usr/local/share/ca-certificates/mitmproxy-aigate.crt && sudo update-ca-certificates --fresh | RHEL: sudo rm /etc/pki/ca-trust/source/anchors/mitmproxy-aigate.pem && sudo update-ca-trust

Download Tool
TokenEnv var
sk-ant-*ANTHROPIC_API_KEY
sk-*, sk-proj-*OPENAI_API_KEY
ghp_*, github_pat_*GITHUB_TOKEN
glpat-*GITLAB_TOKEN
xoxb-*SLACK_BOT_TOKEN
SG.*SENDGRID_API_KEY
AKIA*AWS_ACCESS_KEY_ID