agentsec
v0.1.1
Published
Security auditing CLI for AI agent skills — OWASP Agentic Skills Top 10 (AST10)
Downloads
275
Maintainers
Readme
agentsec is a zero-config CLI that audits every skill your AI agent runs — against the OWASP Agentic Skills Top 10. It supports Claude Code, OpenClaw, Codex, and more.
One command. Full security report. No sign-up.
Quick Start
npx agentsecScans your current directory, finds every installed skill, and tells you what's dangerous.
Example Output
✔ Found 6 skills
✔ fetch-data v1.0.0 D (42)
✔ deploy-helper v2.3.0 C (68)
✔ code-review v1.1.0 A (95)
✔ summarize-docs v0.9.0 A (91)
✔ db-migrate v1.4.2 B (78)
✔ lint-fix v2.0.0 A (93)
6 skills scanned • avg score 78 • 4 certified
Findings: 2 critical, 1 high, 2 medium
⚠ WARN 3 high/critical finding(s) detected
Run with --verbose for detailed findings and recommendations.Installation
# Run ad-hoc (recommended)
npx agentsec
# Or install globally
npm install -g agentsec
bun install -g agentsecCommands
# Audit current directory (auto-detects agent skills)
agentsec
# Show detailed findings, score breakdowns, and recommendations
agentsec --verbose
# Scan a specific path
agentsec scan --path ./my-project
# Apply a policy preset
agentsec audit --policy strict
agentsec audit --policy enterprise
# Pick a platform (openclaw | claude | codex)
agentsec --platform claude
# Output formats: text | json | sarif | html
agentsec --format json --output audit.json
agentsec --format sarif --output audit.sarif
agentsec --format html --output report.html
# Generate a report from a saved JSON audit
agentsec report audit.json --format html --output report.html
# Inspect policy presets
agentsec policy listRun agentsec help for the full option reference.
OWASP Agentic Skills Top 10
Every scan checks all 10 risk categories from the OWASP AST10:
| ID | Risk | What We Detect | | --------- | ----------------------- | ------------------------------------------------------- | | AST01 | Malicious Skills | Dangerous code patterns, known-malicious signatures | | AST02 | Supply Chain Compromise | Dependency provenance, transparency log gaps | | AST03 | Over-Privileged Skills | Excessive permission grants, least-privilege violations | | AST04 | Insecure Metadata | Schema validation failures, metadata integrity issues | | AST05 | Unsafe Deserialization | Parser safety gaps, injection vectors | | AST06 | Weak Isolation | Missing sandboxing, container misconfigurations | | AST07 | Update Drift | Unpinned versions, stale dependencies, hash mismatches | | AST08 | Poor Scanning | Coverage gaps, incomplete scanning pipelines | | AST09 | No Governance | Missing audit logs, absent policy enforcement | | AST10 | Cross-Platform Reuse | Platform-specific validation gaps, portability issues |
Supported Agent Platforms
- Claude Code — scans installed skills and MCP servers
- OpenClaw — full
SKILL.mdmanifest analysis - Codex — skill and plugin scanning
- More platforms coming soon
Output Formats
| Format | Flag | Best For |
| ------ | ---------------- | ------------------------------------- |
| Text | --format text | Terminal, human-readable (default) |
| JSON | --format json | CI pipelines, programmatic processing |
| SARIF | --format sarif | VS Code, GitHub Code Scanning |
| HTML | --format html | Stakeholder reports, dashboards |
CI/CD Integration
Fail your build when a scan finds high-severity issues:
# Exit 1 on any high or critical finding
agentsec audit --policy strict --format sarif --output audit.sarifUpload the resulting SARIF to GitHub Code Scanning to track findings over time.
Requirements
- Bun
>= 1.0.0— the CLI is built and distributed as a Bun bundle.
Links
- 🌐 Website: agentsec.sh
- 📦 GitHub: semiotic-agentium/agent-audit
- 🐛 Issues: github.com/semiotic-agentium/agent-audit/issues
- 🧩 Skills ecosystem: skills.sh
License
MIT © AgentSec Contributors
