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

clawshield

v0.1.0

Published

Security scanner for OpenClaw skills - detect malicious patterns, data exfiltration, and supply chain risks

Readme

🛡️ ClawShield

Security scanner for OpenClaw skills — detect malicious patterns, data exfiltration, and supply chain risks before they hit your agent.

npm version GitHub stars License: MIT


Why ClawShield?

OpenClaw skills can execute code, access files, make network requests, and read secrets. A malicious skill can:

  • 🔑 Steal API keys and credentials
  • 📤 Exfiltrate sensitive data
  • 💰 Hijack crypto wallets
  • 🚪 Install backdoors and persistence mechanisms
  • ⛏️ Run cryptominers

ClawShield catches these threats before you install.

Quick Start

# Install globally
npm install -g clawshield

# Scan a skill
clawshield scan ./my-skill

# Scan before installing
clawshield install @someone/cool-skill

What It Detects

🔴 Critical Threats

  • Credential theft patterns (env vars, config files)
  • Data exfiltration (network requests with sensitive data)
  • Reverse shells and backdoors
  • Cryptominer signatures
  • Malicious obfuscation

🟠 High Risk

  • Shell command injection
  • Arbitrary code execution (eval, Function constructor)
  • File system abuse (reading sensitive paths)
  • Network abuse (suspicious endpoints)

🟡 Medium Risk

  • Dependency confusion attacks
  • Manifest permission mismatches
  • Insecure configurations

CLI Commands

scan - Analyze a skill

clawshield scan <path> [options]

Options:
  -f, --format <type>   Output format: text, json, sarif (default: text)
  -o, --output <file>   Write report to file
  --threshold <level>   Fail if risk >= threshold (low|medium|high|critical)

install - Secure install wrapper

clawshield install <skill> [options]

# Scans the skill first, blocks if threats detected

rules - List detection rules

clawshield rules

# Shows all 30+ detection rules with descriptions

Example Output

🛡️  ClawShield Scan Report
═══════════════════════════════════════════════════

📁 Skill: ./suspicious-skill
📊 Risk Score: 85/100
🚨 Verdict: CRITICAL — DO NOT INSTALL

┌─────────────────────────────────────────────────┐
│ 🔴 CRITICAL: Credential Theft Detected          │
├─────────────────────────────────────────────────┤
│ File: src/index.ts:42                           │
│ Pattern: process.env.OPENAI_API_KEY             │
│ → Skill reads API keys and sends to external    │
│   endpoint: https://evil.com/collect            │
└─────────────────────────────────────────────────┘

┌─────────────────────────────────────────────────┐
│ 🟠 HIGH: Shell Command Injection                │
├─────────────────────────────────────────────────┤
│ File: src/utils.ts:18                           │
│ Pattern: exec(`curl ${userInput}`)              │
│ → User input passed directly to shell command   │
└─────────────────────────────────────────────────┘

Recommendation: DO NOT INSTALL this skill.
Report to: [email protected]

CI/CD Integration

GitHub Actions

# .github/workflows/clawshield.yml
name: Skill Security Scan

on: [push, pull_request]

jobs:
  security:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: '20'
      - run: npm install -g clawshield
      - run: clawshield scan . --threshold high

Pricing

| Feature | Free | Pro ($19/mo) | Team ($49/seat/mo) | |---------|------|--------------|---------------------| | Basic scan (30 rules) | ✅ | ✅ | ✅ | | Scans per day | 10 | Unlimited | Unlimited | | CI integration | ❌ | ✅ | ✅ | | API access | ❌ | ✅ (1k/mo) | ✅ (Unlimited) | | Custom rules | ❌ | ❌ | ✅ | | Team dashboard | ❌ | ❌ | ✅ | | Slack/Discord alerts | ❌ | ❌ | ✅ |

Get Pro →

Detection Rules

ClawShield includes 30+ detection rules across categories:

  • CRED: Credential access patterns
  • EXFIL: Data exfiltration
  • EXEC: Code execution risks
  • NET: Suspicious network activity
  • FS: File system abuse
  • PERSIST: Persistence mechanisms
  • CRYPTO: Cryptominer detection
  • SHELL: Reverse shell patterns
  • MANIFEST: Permission mismatches

Run clawshield rules to see the full list.

Contributing

We welcome contributions! See CONTRIBUTING.md for guidelines.

Adding Detection Rules

// src/rules/index.ts
export const rules: Rule[] = [
  {
    id: 'CUSTOM001',
    name: 'My Custom Rule',
    severity: 'high',
    pattern: /suspicious\.pattern/,
    description: 'Detects suspicious patterns',
  },
  // ...
];

Security

Found a vulnerability in ClawShield itself? Email [email protected].

License

MIT © ClawShield Team


Built for the OpenClaw community 🦞