AgentSentry 🛡️
Open-source auditor for Non-Human Identities and AI Agent attack surfaces across AWS, Azure, GCP, GitHub, Kubernetes, and your local machine.
"45 machine identities for every 1 human. Almost none of them are governed."
AgentSentry discovers every IAM role, API key, service account, SSH key, and AI agent in your environment — builds an attack graph of their access relationships — and scores the blast radius if any identity is compromised, using a novel AI-Amplification Factor that quantifies how autonomous AI agents multiply attack surface.
Quick Start
pip install nhi-audit
agentsentry interactive
No cloud credentials needed to try it:
agentsentry scan mock # full multi-cloud demo
agentsentry scan local # scan this machine now
Installation
pip install nhi-audit # core (local scanner included)
pip install nhi-audit[aws] # + AWS
pip install nhi-audit[azure] # + Azure
pip install nhi-audit[gcp] # + GCP
pip install nhi-audit[github] # + GitHub
pip install nhi-audit[k8s] # + Kubernetes
pip install nhi-audit[all-clouds] # everything
Windows PATH fix (run once):
python -m agentsentry --install-path
Provider Setup
| Provider | Setup | Command |
|---|---|---|
| Local | Nothing | agentsentry scan local |
| AWS | aws configure |
agentsentry scan aws |
| Azure | az login |
agentsentry scan azure |
| GCP | gcloud auth application-default login |
agentsentry scan gcp |
| GitHub | set GITHUB_TOKEN=ghp_... |
agentsentry scan github |
| K8s | kubectl config use-context |
agentsentry scan k8s |
| AI Agents | Nothing | agentsentry scan agents --path . |
All Commands
agentsentry interactive # guided provider picker (recommended)
agentsentry scan mock # demo, no credentials
agentsentry scan local --path ./myproject # scan specific directory
agentsentry scan aws --visualize # + interactive HTML attack graph
agentsentry scan aws --enrich # + CISA KEV threat intel
agentsentry scan all # auto-detect + scan everything ready
agentsentry providers # check what's configured
agentsentry blast "ml-pipeline-executor" # blast radius analysis
Risk Scoring: P×R×E×A
Risk = Privilege × Reachability × Exposure × AI-Amplification
CRITICAL ≥ 100 | HIGH ≥ 50 | MEDIUM ≥ 20 | LOW < 20
The AI-Amplification Factor is a novel research contribution — the first formal quantification of how autonomous AI agents multiply the blast radius of a compromised identity.
Standalone Executable
No Python needed. Download from GitHub Releases:
| Platform | File |
|---|---|
| Windows | agentsentry-windows.exe |
| macOS | agentsentry-macos |
| Linux | agentsentry-linux |
Repository Structure
agent-sentry/
├── agentsentry/ ← CLI tool (Python, open-source)
├── website/ ← Marketing site (Next.js, Vercel)
└── paper/ ← Research paper (IEEE LaTeX)
Links
- Website & Docs: agent-sentry-beta.vercel.app
- PyPI: pypi.org/project/nhi-audit
- Issues: GitHub Issues
License: AGPL-3.0 — free forever.
Metadata
Release files for nhi-audit 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nhi_audit-0.2.0.tar.gz | 120.8 kB | Without provenance | Details for nhi_audit-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nhi_audit-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for nhi_audit-0.2.0-py3-none-any.whl |
Total release size: 233.4 kB
Release files / nhi_audit-0.2.0.tar.gz
| Download URL | nhi_audit-0.2.0.tar.gz |
|---|---|
| Size | 120.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b4ca393be6867bc58e950b28ba57f8f29df8f546b5bf14bc1a31d13e2ab1eb3c
|
|
BLAKE2b-256 checksum How to use checksums |
c51adfc5c18fa06ab6f84aa1a8ba2b2a86e3030e6a68300e047c35384e907432
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / nhi_audit-0.2.0-py3-none-any.whl
| Download URL | nhi_audit-0.2.0-py3-none-any.whl |
|---|---|
| Size | 112.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
85d7ed80099c5ac1e8cd5deb50332659abb26c1bf87126f84b4216895fbe61fa
|
|
BLAKE2b-256 checksum How to use checksums |
6269141aa3ed4b5af47a832ab49139eebf0920155ed6ccf5599dac109cd4579f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Security for nhi-audit 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.