nhi-audit

v0.2.0 safe
3.6
Low Risk

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

📦 Package Quality Overall: Low (4.8/10)

✦ High Test Suite 9.0

Test suite present — 10 test file(s) found

  • 10 test file(s) detected (e.g. test_agent_scanner.py)
◈ Medium Documentation 7.0

Some documentation present

  • Documentation URL: "Documentation" -> https://agentsentry.tool/docs
  • Detailed PyPI description (4278 chars)
○ Low Contributing Guide 2.0

No contributing guide or governance files found

  • No CONTRIBUTING, CODE_OF_CONDUCT, or governance files found
◈ Medium Type Annotations 5.0

Partial type annotation coverage

  • 146 type-annotated function signatures detected in source
○ Low Multiple Contributors 1.0

Could not retrieve contributor data from GitHub

  • GitHub API error: 401

🔬 Heuristic Checks

⚠ Outbound Network Calls score 9.0

Found 6 network call pattern(s)

  • try: with urllib.request.urlopen(KEV_URL, timeout=15) as resp: data
  • try: resp = requests.get(f"{GITHUB_API}/user", headers=self._headers(), timeout=10)
  • ──────── user_resp = requests.get(f"{GITHUB_API}/user", headers=headers, timeout=10)
  • try: keys_resp = requests.get(f"{GITHUB_API}/user/keys", headers=headers, timeout=10)
  • y: dk_resp = requests.get( f"{GITHUB_API}/repos/{repo['full_name'
  • secrets_resp = requests.get( f"{GITHUB_API}/orgs/{self.org}/actions
✓ Code Obfuscation

No obfuscation patterns detected

⚠ Shell / Subprocess Execution score 10.0

Found 6 shell execution pattern(s)

  • L.get(interval, "DAILY") subprocess.run( [ "schtasks", "/Create",
  • SK_PREFIX}{schedule_id}" subprocess.run( ["schtasks", "/Delete", "/TN", task_name, "/F"],
  • ) result = subprocess.run( [sys.executable, "-m", "pip", "install
  • try: result = subprocess.run( ["docker", "ps", "--format", "{{.Names}}"]
  • try: result = subprocess.run( ["git", "config", "--global", "--get", "cr
  • try: result = subprocess.run( ["security", "dump-keychain"],
⚠ Credential Harvesting score 10.0

Found 6 credential access pattern(s)

  • e = ( profile or os.environ.get("AWS_PROFILE") or self._default_profile() ) sel
  • ) self.region = os.environ.get("AWS_DEFAULT_REGION", region) self.analyze_usage = analy
  • self.token = token or os.environ.get("GITHUB_TOKEN", "") self.org = org or os.environ.get("GITHUB
  • ot access to the host — reads /etc/shadow, SSH keys, cloud creds\n" "5. Installs persist
  • " [dim]ssh-keygen -p -f ~/.ssh/id_rsa[/dim]\n\n" "[bold]Step 2: Fix permissions[/bol
  • " [dim]chmod 600 ~/.ssh/id_rsa && chmod 700 ~/.ssh[/dim]\n\n" "[bold]Step 3:
✓ Typosquatting

No typosquatting candidates detected

✓ Registered Email Domain

Email domain looks legitimate: agentsentry.org>

✓ Suspicious Page Links

All external links appear legitimate

⚠ Git Repository History score 3.0

GitHub API error: 401

  • GitHub API error: 401
⚠ Maintainer History score 4.0

2 maintainer concern(s) found

  • Author name is missing or very short
  • Author "" appears to have only 1 package on PyPI (new or inactive account)
✓ Known CVE Vulnerabilities

No known vulnerabilities found in OSV database.

💡 AI App Starter Prompt

Use this prompt to build a project with nhi-audit
Build a simple Python application using the nhi-audit package to demonstrate its core features.

💬 Discussion Feed

Leave a comment

No discussion yet. Be the first to share your thoughts!