🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

tork-scan

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tork-scan

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

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source
 _____         _        ____
|_   _|__  _ _| | __   / ___|  ___ __ _ _ __
  | |/ _ \| '_| |/ /   \___ \ / __/ _` | '_ \
  | | (_) | | |   <     ___) | (_| (_| | | | |
  |_|\___/|_| |_|\_\   |____/ \___\__,_|_| |_|

@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

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

What It Checks

Critical (-30 points each)

IDPatternDescription
C1Shell executionexecSync, exec, spawn — arbitrary command execution
C2Dynamic code executioneval() — runtime code execution
C3child_process importImporting child_process module
C4Reverse shellbash -i, /dev/tcp, nc -e, Python socket patterns
C5C2/exfiltration domainswebhook.site, requestbin, pipedream, ngrok, burpcollaborator
C6Obfuscated payloadLarge Base64-encoded strings (>100 chars)

High (-20 points each)

IDPatternDescription
H1Sensitive file accessReads .env, .ssh, credentials files
H2Credential harvestingReads API_KEY, SECRET, TOKEN from env
H3Hardcoded IP requestsHTTP requests to IP addresses (bypasses DNS)
H4Suspicious TLDsURLs with .tk, .ml, .ga, .cf domains
H5Direct IP connectionsRaw socket connections to IP addresses

Medium (-10 points each)

IDPatternDescription
M1Overly broad permissionsfull_disk_access, shell.execute, network.unrestricted
M2No README.mdMissing documentation
M3Hidden filesDot-prefixed files/dirs (excluding .gitignore, etc.)
M4File-sharing downloadsmega.nz, mediafire, dropbox direct links
M5Obfuscated codeSingle lines > 500 chars with < 5% spaces

Low (-5 points each)

IDPatternDescription
L1No LICENSEMissing license file
L2Excessive dependenciesnode_modules directory present
L3No metadataMissing package.json or skill.json

Score Brackets

ScoreBracketMeaning
90-100SAFENo significant issues found
70-89CAUTIONMinor issues, review recommended
50-69RISKYMultiple concerns, manual review required
0-49DANGEROUSCritical 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

Keywords

security

FAQs

Package last updated on 24 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts