Skip to main content

Open-source auditor for Non-Human Identities and AI Agent attack surfaces in cloud environments

Project description

AgentSentry 🛡️

CI PyPI

Python License Website

AgentSentry Demo

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

License: AGPL-3.0 — free forever.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nhi_audit-0.1.10.tar.gz (109.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nhi_audit-0.1.10-py3-none-any.whl (104.4 kB view details)

Uploaded Python 3

File details

Details for the file nhi_audit-0.1.10.tar.gz.

File metadata

  • Download URL: nhi_audit-0.1.10.tar.gz
  • Upload date:
  • Size: 109.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for nhi_audit-0.1.10.tar.gz
Algorithm Hash digest
SHA256 3d7b9b49bf51f70790040d69c7a966fcf9e48c9b4bee52ed0971e6b13b761ced
MD5 a7ee84bd575430837e337d1529a8b81d
BLAKE2b-256 3e89498bdc45b0fa850678828ca07eb0ef85f6c255faca70dad8dd8b7b809238

See more details on using hashes here.

File details

Details for the file nhi_audit-0.1.10-py3-none-any.whl.

File metadata

  • Download URL: nhi_audit-0.1.10-py3-none-any.whl
  • Upload date:
  • Size: 104.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for nhi_audit-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 712a44ac2a3957282c7d75e5716b50980a814c66b0824c34bc20ad27d244a865
MD5 ede6e6b37f3e17d958e1707b97cf7110
BLAKE2b-256 480515f0ebaec2696c583d7067764ac6f8870e7bb0f9c66d22655f6f70e4623b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page