Agentsec
AI Agent Skill Security Auditing Tool
Install & Use
Copy this prompt and send it to your AI assistant (Claude / Cursor / TRAE / Codex / WorkBuddy etc.) to auto-install:
Help me install this AI Skill: Agentsec. It is used for: AI Agent Skill Security Auditing Tool Full Skill content: https://321skill.com/skills/agentsec-x-3/raw/index.md Read that page and install it.
The prompt includes a link to the full Skill content. You can also view the full content.
This skill addresses the challenge of auditing the security of AI Agent skills. In practice, developers often need to install various AI Agent skills from the community or third parties. However, these skills may contain malicious code, have excessive permissions, or contain configuration flaws, lacking a unified security inspection mechanism.
Usage is straightforward: simply run npx agentsec in your project directory. It will automatically scan all installed AI Agent skills (supporting mainstream platforms like Claude Code, OpenClaw, Codex, etc.) and perform security vulnerability detection based on the OWASP Agentic Skills Top 10. You can then run npx agentsec scan for a scan-only operation, or use npx agentsec report audit.json to generate an audit report in various formats such as text, JSON, SARIF, and HTML, facilitating integration into CI/CD pipelines.
It is well-suited for teams or individuals who need to ensure the security of their AI Agents. This is especially true for developers already using AI coding assistants (like Claude, Cursor, etc.) who have installed multiple skill plugins, as well as for security auditors, operations, or testing personnel. They can perform security checks before skill execution to avoid introducing risks.
It is recommended to use this tool uniformly for security checks after each new skill installation or within CI/CD pipelines. Note that it primarily scans the skill directories in the local filesystem. You need to ensure a Node.js environment is installed (supporting npx or global installation), and the scan scope is limited to the current project and the default platform skill directories.
Key Features
Unlike general-purpose security scanning tools (such as Snyk or Trivy), Agentsec is specifically designed to audit AI Agent skills against the OWASP Top 10 risks. It can automatically discover skill directories for multiple platforms like Claude Code, OpenClaw, and Codex, requiring no manual path configuration.
Limitations
Requires a Node.js environment (via npx or global installation). Currently, it only supports scanning the local filesystem and is not applicable to remote or cloud-based skill repositories. Custom rule extensions are not yet supported.
FAQ
Which platforms' skills can Agentsec scan?
It supports Claude Code, OpenClaw/ClawHub, Codex/skills.sh, Hermes, and the skills directory within the current project (two levels deep), with platform-agnostic automatic discovery.
How do I generate a structured audit report?
First, run `npx agentsec` to obtain the audit results (by default, it generates audit.json). Then, execute `npx agentsec report audit.json` to output a report in text, JSON, SARIF, or HTML format.
Installation guide for AI assistants
If your AI coding assistant (Claude Code, Cursor, TRAE etc.) can see this page, send it this message to auto-install:
Visit https://321skill.com/skills/agentsec-x-3/raw/index.md to read the original Skill definition (Markdown format) for Agentsec, and install it according to the instructions.
Raw Markdown URL for AI: /skills/agentsec-x-3/raw/index.md