Skip to content

Commands

All commands are available via npx pwnkit-cli <command>. You can also skip the subcommand and let auto-detect figure it out (see Getting Started).

Probe LLM endpoints or web apps for vulnerabilities.

Terminal window
# Scan an LLM endpoint
npx pwnkit-cli scan --target https://api.example.com/chat
# Scan a traditional web app
npx pwnkit-cli scan --target https://example.com --mode web
# Deep scan with Claude Code CLI
npx pwnkit-cli scan --target https://api.example.com/chat --depth deep --runtime claude

Key flags:

FlagDescriptionDefault
--target <url>The URL to scan(required)
--mode <mode>Scan mode: llm or webllm
--depth <depth>Scan depth: quick, default, deepdefault
--runtime <rt>Runtime: api, claude, codex, gemini, autoapi
--verboseShow animated attack replayfalse

Install and security-audit any npm package with static analysis and AI review.

Terminal window
npx pwnkit-cli audit express@4.18.2
npx pwnkit-cli audit react --depth deep --runtime claude

The package is installed in a sandbox, scanned with semgrep, and then reviewed by an AI agent that traces data flow and looks for supply-chain vulnerabilities.

Key flags:

FlagDescriptionDefault
<package>Package name (with optional version)(required)
--depthScan depth: quick, default, deepdefault
--runtimeRuntime to useapi

Deep source code security review of a local repo or GitHub URL.

Terminal window
# Review a local directory
npx pwnkit-cli review ./my-ai-app
# Review a GitHub repo (cloned automatically)
npx pwnkit-cli review https://github.com/user/repo
# Diff-aware review against a base branch
npx pwnkit-cli review ./my-repo --diff-base origin/main --changed-only

Key flags:

FlagDescriptionDefault
<path-or-url>Local path or GitHub URL(required)
--depthScan depthdefault
--runtimeRuntime to useapi
--diff-base <ref>Base branch for diff-aware review(none)
--changed-onlyOnly review changed filesfalse

Resume a persisted review or audit scan by its scan ID.

Terminal window
npx pwnkit-cli resume <scan-id>

Useful when a long-running deep scan was interrupted or when you want to continue where a previous run left off.

Open the local verification workbench for board-based triage, evidence review, and scan provenance.

Terminal window
npx pwnkit-cli dashboard
npx pwnkit-cli dashboard --port 48123

The dashboard provides a Kanban-style board for triaging findings, reviewing evidence, and tracking active scans. It runs entirely locally.

Key flags:

FlagDescriptionDefault
--port <port>Port to serve the dashboard on48120

Browse past scans with status, depth, findings count, and duration.

Terminal window
npx pwnkit-cli history
npx pwnkit-cli history --limit 20

Key flags:

FlagDescriptionDefault
--limit <n>Number of scans to show10

Query, filter, and inspect verified findings across all scans. Findings are persisted in a local SQLite database.

Terminal window
# List all findings
npx pwnkit-cli findings list
# Filter by severity
npx pwnkit-cli findings list --severity critical
# Filter by category and status
npx pwnkit-cli findings list --category prompt-injection --status confirmed
# Inspect a specific finding with full evidence
npx pwnkit-cli findings show NF-001
# Triage findings
npx pwnkit-cli findings accept <finding-id> --note "confirmed and tracked"
npx pwnkit-cli findings suppress <finding-id> --note "known test fixture"
npx pwnkit-cli findings reopen <finding-id>

Finding lifecycle: discovered -> verified -> confirmed -> scored -> reported (or false-positive if verification fails).

Subcommands:

SubcommandDescription
listList findings with optional filters
show <id>Show a finding with full evidence
accept <id>Accept a finding as confirmed
suppress <id>Suppress a finding (known false positive or accepted risk)
reopen <id>Reopen a previously suppressed finding