npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

ai-ass-cli

v1.1.0

Published

Security scanner for AI agent skills and tools

Readme

🔒 Agent Security Scanner

A security scanning tool that detects potentially dangerous patterns in AI agent skills and tools. Helps identify security vulnerabilities that could allow agents to access sensitive files, execute dangerous commands, or bypai-ai-ass security measures.

✨ Features

  • CLI Interface - Easy-to-use command line tool (ai-ai-ass)
  • Multi-Agent Support - Scan Claude Code, Cursor, Codex, Gemini, OpenCode, and more
  • Online Skill Scanning - Scan skills from ClawHub, skills.sh, and GitHub repositories
  • Sensitive File Access Detection - Detects attempts to access credentials, keys, SSH keys, system files
  • Dangerous Commands Detection - Identifies harmful shell commands (rm -rf, dd, mkfs, etc)
  • Unsafe Execution Detection - Finds code execution risks (eval, exec, command injection)
  • Security Bypai-ai-ass Detection - Detects sandbox escapes, auth bypai-ai-asses, SSL verification bypai-ai-ass

🚀 Installation

# Install via npm
npm install -g ai-ass-cli

# Or clone the repo
git clone https://github.com/pythias/agent-security-scanner.git
cd agent-security-scanner
npm install

📖 Usage

# Scan default agents (openclaw, claude, cursor, codex, gemini, opencode)
ass

# Scan all known agents
ass --all

# Scan specific agent
ass --claude
ass --codex
ass --gemini
ass --cursor

# Scan multiple agents
ass --claude --codex

# Scan custom directory
ass /path/to/skills

# List available agents
ass --list

# Show help
ass --help

# 🌐 Online Skill Scanning
ass --online            # Scan skills from ClawHub and skills.sh
ass --clawhub           # Scan security-related skills from ClawHub
ass --clawhub=<query>   # Search and scan ClawHub skills
ass --clawhub=[slugs]   # Scan specific skills by slug array
ass --skillssh          # Scan top skills from skills.sh
ass --skillssh=20       # Scan top N skills from skills.sh

🤖 Supported Agents

| Agent | Flag | Description | |-------|------|-------------| | OpenClaw | --openclaw | OpenClaw skills & extensions | | Claude Code | --claude | Claude Code CLI | | Cursor | --cursor | Cursor IDE | | Windsurf | --windsurf | Windsurf IDE | | Antigravity | --antigravity | Antigravity | | GitHub Copilot | --copilot | GitHub Copilot | | Kiro | --kiro | Kiro IDE | | Codex | --codex | OpenAI Codex CLI | | Qoder | --qoder | Qoder | | Roo Code | --roocode | Roo Code | | Gemini CLI | --gemini | Gemini CLI | | Trae | --trae | Trae IDE | | OpenCode | --opencode | OpenCode | | Continue | --continue | Continue VS Code extension | | CodeBuddy | --codebuddy | CodeBuddy | | Droid | --droid | Droid (Factory) |

📋 Detection Categories

Sensitive Files

  • OpenClaw/AWS/Docker credentials
  • SSH keys (~/.ssh/id_rsa, ~/.ssh/id_ed25519)
  • Environment files (.env)
  • System files (/etc/pai-ai-asswd, /etc/shadow, /etc/sudoers)
  • Browser pai-ai-asswords
  • Cloud credentials (GCP, Azure, Kubernetes)

Dangerous Commands

  • Recursive delete (rm -rf /, rm -rf ~)
  • Disk operations (dd, mkfs, fdisk)
  • Netcat backdoors
  • Privilege escalation
  • System shutdown/reboot

Unsafe Execution

  • eval(), new Function()
  • Command injection (exec with user input)
  • Path traversal (file operations with user input)
  • SQL injection patterns

Security Bypai-ai-ass

  • --no-sandbox, --dangerously-skip-permissions
  • Auth bypai-ai-ass via environment variables
  • SSL verification disable
  • CORS wildcards

📊 Output Example

════════════════════════════════════════════════════════════
🔒 AGENT SECURITY SCANNER
════════════════════════════════════════════════════════════

📂 Scanning openclaw, claude, cursor, codex, gemini, opencode...
Found 14 directories:

  - /opt/homebrew/lib/node_modules/openclaw/skills
  - ...

════════════════════════════════════════════════════════════
📊 SCAN RESULTS
════════════════════════════════════════════════════════════
Total files scanned: 135
Total security issues found: 9

By Severity:
  🔴 Critical: 5
  🟠 High:    4

⚠️  SECURITY ISSUES FOUND
════════════════════════════════════════════════════════════

CRITICAL (5)
  [BYPASS-1] Skip permissions check
  📍 skills/coding-agent/SKILL.md:24
  💡 Never skip permission checks

  ...

🛠️ Project Structure

agent-security-scanner/
├── bin/
│   └── ass.ts                   # CLI entry point
├── src/
│   ├── scanner.ts               # Main local scanning logic
│   ├── onlineScanner.ts         # Online skill scanning logic
│   ├── types.ts                 # TypeScript types
│   ├── fetchers/                # Online skill fetchers
│   │   ├── index.ts
│   │   ├── clawhub.ts           # ClawHub API fetcher
│   │   └── skillssh.ts          # skills.sh API fetcher
│   └── detectors/               # Security detectors
│       ├── sensitiveFileAccess.ts
│       ├── dangerousCommands.ts
│       ├── unsafeExecution.ts
│       └── bypassDetection.ts
├── package.json
├── tsconfig.json
├── README.md
└── LICENSE

🤝 Contributing

Contributions welcome! Please feel free to submit a Pull Request.

📝 License

MIT License - see LICENSE file for details.