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

tork-scan

v1.0.0

Published

Security scanner for ClawHub skills — detect malicious patterns in AI agent tools

Downloads

112

Readme

 _____         _        ____
|_   _|__  _ _| | __   / ___|  ___ __ _ _ __
  | |/ _ \| '_| |/ /   \___ \ / __/ _` | '_ \
  | | (_) | | |   <     ___) | (_| (_| | | | |
  |_|\___/|_| |_|\_\   |____/ \___\__,_|_| |_|

@torknetwork/scan

MIT License npm version

Free, open-source security scanner for ClawHub skills. Detect malicious patterns in AI agent tools before they compromise your system. No Tork account required.

Like npm audit for AI agent skills.

Installation

# Global install
npm install -g @torknetwork/scan

# Or run directly with npx
npx @torknetwork/scan <path-to-skill>

Usage

# Scan a specific skill directory
tork-scan ./my-skill

# Audit all installed skills
tork-scan --audit

# Machine-readable JSON output
tork-scan ./my-skill --json

# CI/CD mode — exit code only (0=safe, 1=dangerous)
tork-scan ./my-skill --quiet

Exit Codes

| Code | Meaning | |------|---------| | 0 | Score >= 50 (safe/caution/risky) | | 1 | Score < 50 (dangerous) | | 2 | Error (path not found, etc.) |

What It Checks

Critical (-30 points each)

| ID | Pattern | Description | |----|---------|-------------| | C1 | Shell execution | execSync, exec, spawn — arbitrary command execution | | C2 | Dynamic code execution | eval() — runtime code execution | | C3 | child_process import | Importing child_process module | | C4 | Reverse shell | bash -i, /dev/tcp, nc -e, Python socket patterns | | C5 | C2/exfiltration domains | webhook.site, requestbin, pipedream, ngrok, burpcollaborator | | C6 | Obfuscated payload | Large Base64-encoded strings (>100 chars) |

High (-20 points each)

| ID | Pattern | Description | |----|---------|-------------| | H1 | Sensitive file access | Reads .env, .ssh, credentials files | | H2 | Credential harvesting | Reads API_KEY, SECRET, TOKEN from env | | H3 | Hardcoded IP requests | HTTP requests to IP addresses (bypasses DNS) | | H4 | Suspicious TLDs | URLs with .tk, .ml, .ga, .cf domains | | H5 | Direct IP connections | Raw socket connections to IP addresses |

Medium (-10 points each)

| ID | Pattern | Description | |----|---------|-------------| | M1 | Overly broad permissions | full_disk_access, shell.execute, network.unrestricted | | M2 | No README.md | Missing documentation | | M3 | Hidden files | Dot-prefixed files/dirs (excluding .gitignore, etc.) | | M4 | File-sharing downloads | mega.nz, mediafire, dropbox direct links | | M5 | Obfuscated code | Single lines > 500 chars with < 5% spaces |

Low (-5 points each)

| ID | Pattern | Description | |----|---------|-------------| | L1 | No LICENSE | Missing license file | | L2 | Excessive dependencies | node_modules directory present | | L3 | No metadata | Missing package.json or skill.json |

Score Brackets

| Score | Bracket | Meaning | |-------|---------|---------| | 90-100 | SAFE | No significant issues found | | 70-89 | CAUTION | Minor issues, review recommended | | 50-69 | RISKY | Multiple concerns, manual review required | | 0-49 | DANGEROUS | Critical issues found, do not install |

CI/CD Integration

# GitHub Actions example
- name: Scan skills for security issues
  run: npx @torknetwork/scan ./skills --quiet
# Shell script
if tork-scan ./my-skill --quiet; then
  echo "Skill is safe to install"
else
  echo "DANGEROUS: Do not install this skill"
  exit 1
fi

Programmatic Usage

import { scan } from '@torknetwork/scan';

const result = scan('./my-skill');
console.log(result.score);     // 85
console.log(result.bracket);   // 'CAUTION'
console.log(result.findings);  // [{ id: 'M2', ... }]

Built by Tork Network

Tork provides independent AI agent governance — like SSL certificates for AI. This scanner is free and open-source. No account required.

For real-time governance, trust badges, and compliance receipts, visit tork.network.

License

MIT - see LICENSE