LLM API security scanner — red team your AI endpoints in one command
Project description
Gatekeeper
1. What is this?
An infrastructure security scanner for self-hosted AI APIs.
Point it at your project directory. It finds the deployment mistakes that your model scanner can't see: hardcoded API keys, missing rate limits, CORS misconfiguration, containers running as root, TLS certificates about to expire.
Who it's for: Developers running their own AI API gateway (LiteLLM, chinai-gateway, or any OpenAI-compatible endpoint). If you docker compose up an AI service, this is for you.
pip install gatekeeper-ai
gatekeeper audit -d /path/to/your-project
2. What problem does it solve?
You deployed an AI API. You tested the model — jailbreaks, prompt injection, the works. But did you check if your .env file is in .gitignore? Or if your API accepts requests without authentication? Or if your TLS certificate expires next week?
Model scanners test your model. Gatekeeper tests your deployment. They're different attack surfaces.
What you get:
- A security score and a priority action plan — what to fix first, how long it takes
- Plain-language risk explanations — not "CRITICAL severity", but "your API key is in git history and anyone who clones your repo can use it"
- Copy-paste fixes — exact YAML snippets, exact commands
- CI/CD integration — SARIF output, GitHub Actions, PR comments
3. Why not just use garak or promptfoo?
| garak | promptfoo | Gatekeeper | |
|---|---|---|---|
| What it tests | Model responses | Code data flow | Deployment config |
| Finds hardcoded API keys? | No | No | Yes |
| Finds missing rate limits? | No | No | Yes |
| Finds expiring TLS certs? | No | No | Yes |
| Finds CORS misconfiguration? | No | No | Yes |
| Finds privileged containers? | No | No | Yes |
| Backed by | NVIDIA | OpenAI (acquired) | Independent (MIT) |
garak and promptfoo are the right tools for model-level and code-level security. Gatekeeper is the missing layer: deployment-level. They don't compete — they stack.
4. Free or paid?
Free. MIT license. No API key required. No cloud service. No telemetry. Everything runs locally — your config files never leave your machine.
If you want deeper AI-powered analysis, bring your own DeepSeek/OpenAI key and we'll give you the prompt template. But the built-in knowledge base covers the common cases without any API calls.
Quick Start
pip install git+https://github.com/AAAjczz/gatekeeper.git
# Audit a project (file checks)
gatekeeper audit -d /path/to/chinai-gateway
# Full audit (file + network checks)
gatekeeper audit -d . -e https://api.deepseek.com/v1 -k YOUR_KEY
# Output formats
gatekeeper audit -f terminal # default
gatekeeper audit -f sarif # GitHub code scanning
gatekeeper audit -f html # shareable report
gatekeeper audit -f all # everything
Real Finding
Gatekeeper's multi-domain TLS probe scanned api.deepseek.com and found 3 different certificates across CDN nodes — earliest expiring in 8 days:
deepseek.io → GoDaddy → expires in 8 days
api.deepseek.com → TrustAsia → expires in 24 days
deepseek.com → DigiCert → expires in 177 days
No model scanner or code scanner would find this. Infrastructure auditing does.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gatekeeper_audit-1.3.0.tar.gz.
File metadata
- Download URL: gatekeeper_audit-1.3.0.tar.gz
- Upload date:
- Size: 28.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27460972eed15333db9cfb751e03e3e43c3d15aacf84de23ea3fa6cc69a47019
|
|
| MD5 |
83bd2a434bd15d7cf4494cee154e172d
|
|
| BLAKE2b-256 |
a6ea078db313f5a04284968c70fb9ab0361bc967f58205475913b48a3714f35f
|
File details
Details for the file gatekeeper_audit-1.3.0-py3-none-any.whl.
File metadata
- Download URL: gatekeeper_audit-1.3.0-py3-none-any.whl
- Upload date:
- Size: 27.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00761dacf44ee6799d805500582ad5967016fa1884131c120af6d80c4085aed6
|
|
| MD5 |
998b8b1af3a1d6b493fa3480d0dbe1b3
|
|
| BLAKE2b-256 |
96b2cc2b941621ce52e51897b4b81be265e506e55cd69e8b4a78bb63e5a3884e
|