New:Microsoft Teams Notifications Are Now Available in Socket.Learn more →
Get Started

swarmhack-cli

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

swarmhack-cli

SwarmHack - Neural swarm-based penetration testing framework

Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
63
75%
Maintainers
1
Weekly downloads
 
Created
Source

@prancer/swarmhack

Neural swarm-based penetration testing framework.

Installation

npm install -g @prancer/swarmhack

Or use npx:

npx @prancer/swarmhack --help

CLI Usage

# Run SQL injection scan
swarmhack spawn --agents sqli \
  --target "http://example.com" \
  --customer "your-customer" \
  --token "your-token"

# Run multiple agents
swarmhack spawn --agents sqli,xss,csrf \
  --target "http://example.com" \
  --customer "your-customer" \
  --token "your-token"

# List available agents
swarmhack agents list

# Check system health
swarmhack doctor

Node.js API

const swarmhack = require('@prancer/swarmhack');

// Run a scan
const results = await swarmhack.scan({
  target: 'http://example.com',
  agents: ['sqli', 'xss'],
  customer: 'your-customer',
  token: 'your-token',
});

console.log(results);

// Check version
const version = await swarmhack.version();
console.log(version);

// Run any command
const result = await swarmhack.run(['spawn', '--help']);
console.log(result.stdout);

Supported Platforms

PlatformArchitecture
Linuxx64, arm64
macOSx64, arm64
Windowsx64

Docker Alternative

If npm installation fails, use Docker:

docker run --rm \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -v $(pwd)/reports:/app/reports \
  prancer/swarmhack:0.1.0 \
  spawn --agents sqli --target "http://example.com" \
  --customer "your-customer" --token "your-token"

Available Agents

AgentDescription
crawlerWeb crawling and discovery
sqliSQL injection detection
xssCross-site scripting
csrfCSRF vulnerabilities
idorInsecure direct object reference
auth_bypassAuthentication bypass
cmdiCommand injection

Requirements

  • Node.js 16+
  • Prancer Portal account (for --token and --customer)

License

MIT

Keywords

security

FAQs

Package last updated on 24 Jan 2026

Related posts