pwnkit-cli 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -22
- package/package.json +5 -9
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
</p>
|
|
11
11
|
|
|
12
12
|
<p align="center">
|
|
13
|
-
<a href="https://www.npmjs.com/package/pwnkit"><img src="https://img.shields.io/npm/v/pwnkit?color=crimson&style=flat-square" alt="npm version" /></a>
|
|
13
|
+
<a href="https://www.npmjs.com/package/pwnkit-cli"><img src="https://img.shields.io/npm/v/pwnkit-cli?color=crimson&style=flat-square" alt="npm version" /></a>
|
|
14
14
|
<a href="https://github.com/peaktwilight/pwnkit/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue?style=flat-square" alt="license" /></a>
|
|
15
15
|
<a href="https://github.com/peaktwilight/pwnkit/actions"><img src="https://img.shields.io/github/actions/workflow/status/peaktwilight/pwnkit/ci.yml?style=flat-square" alt="CI" /></a>
|
|
16
16
|
<a href="https://github.com/peaktwilight/pwnkit/stargazers"><img src="https://img.shields.io/github/stars/peaktwilight/pwnkit?style=flat-square&color=gold" alt="stars" /></a>
|
|
@@ -41,13 +41,13 @@ One command. Zero config. Every finding re-exploited or dropped.
|
|
|
41
41
|
|
|
42
42
|
```bash
|
|
43
43
|
# Scan an LLM endpoint
|
|
44
|
-
npx pwnkit scan --target https://your-app.com/api/chat
|
|
44
|
+
npx pwnkit-cli scan --target https://your-app.com/api/chat
|
|
45
45
|
|
|
46
46
|
# Audit an npm package for vulnerabilities
|
|
47
|
-
npx pwnkit audit lodash
|
|
47
|
+
npx pwnkit-cli audit lodash
|
|
48
48
|
|
|
49
49
|
# Deep security review of a codebase
|
|
50
|
-
npx pwnkit review ./my-ai-app
|
|
50
|
+
npx pwnkit-cli review ./my-ai-app
|
|
51
51
|
```
|
|
52
52
|
|
|
53
53
|
That's it. pwnkit discovers your attack surface, launches targeted attacks, verifies findings, and generates a report — all in under 5 minutes.
|
|
@@ -58,11 +58,11 @@ pwnkit ships five commands — from quick API probes to deep source-level audits
|
|
|
58
58
|
|
|
59
59
|
| Command | What It Does | Example |
|
|
60
60
|
|---------|-------------|---------|
|
|
61
|
-
| **`scan`** | Probe LLM endpoints, MCP servers, and AI APIs for vulnerabilities | `npx pwnkit scan --target https://api.example.com/chat` |
|
|
62
|
-
| **`audit`** | Install and security-audit any npm package with static analysis + AI review | `npx pwnkit audit express@4.18.2` |
|
|
63
|
-
| **`review`** | Deep source code security review of a local repo or GitHub URL | `npx pwnkit review https://github.com/user/repo` |
|
|
64
|
-
| **`history`** | Browse past scans with status, depth, findings count, and duration | `npx pwnkit history --limit 20` |
|
|
65
|
-
| **`findings`** | Query, filter, and inspect verified findings across all scans | `npx pwnkit findings list --severity critical` |
|
|
61
|
+
| **`scan`** | Probe LLM endpoints, MCP servers, and AI APIs for vulnerabilities | `npx pwnkit-cli scan --target https://api.example.com/chat` |
|
|
62
|
+
| **`audit`** | Install and security-audit any npm package with static analysis + AI review | `npx pwnkit-cli audit express@4.18.2` |
|
|
63
|
+
| **`review`** | Deep source code security review of a local repo or GitHub URL | `npx pwnkit-cli review https://github.com/user/repo` |
|
|
64
|
+
| **`history`** | Browse past scans with status, depth, findings count, and duration | `npx pwnkit-cli history --limit 20` |
|
|
65
|
+
| **`findings`** | Query, filter, and inspect verified findings across all scans | `npx pwnkit-cli findings list --severity critical` |
|
|
66
66
|
|
|
67
67
|
## How It Works
|
|
68
68
|
|
|
@@ -103,13 +103,13 @@ The **verification step is the differentiator.** No more triaging 200 "possible
|
|
|
103
103
|
See the [demo GIF above](#) for real scan output, or run it yourself:
|
|
104
104
|
|
|
105
105
|
```bash
|
|
106
|
-
npx pwnkit scan --target https://your-app.com/api/chat --depth quick
|
|
106
|
+
npx pwnkit-cli scan --target https://your-app.com/api/chat --depth quick
|
|
107
107
|
```
|
|
108
108
|
|
|
109
109
|
For a verbose view with the animated attack replay:
|
|
110
110
|
|
|
111
111
|
```bash
|
|
112
|
-
npx pwnkit scan --target https://your-app.com/api/chat --verbose
|
|
112
|
+
npx pwnkit-cli scan --target https://your-app.com/api/chat --verbose
|
|
113
113
|
```
|
|
114
114
|
|
|
115
115
|
## Scan Depth & Cost
|
|
@@ -124,22 +124,22 @@ Default model is `anthropic/claude-sonnet-4.6` via [OpenRouter](https://openrout
|
|
|
124
124
|
|
|
125
125
|
```bash
|
|
126
126
|
# Quick scan for CI
|
|
127
|
-
npx pwnkit scan --target https://api.example.com/chat --depth quick
|
|
127
|
+
npx pwnkit-cli scan --target https://api.example.com/chat --depth quick
|
|
128
128
|
|
|
129
129
|
# Deep audit before launch
|
|
130
|
-
npx pwnkit scan --target https://api.example.com/chat --depth deep
|
|
130
|
+
npx pwnkit-cli scan --target https://api.example.com/chat --depth deep
|
|
131
131
|
|
|
132
132
|
# Source + API scan with Claude Code
|
|
133
|
-
npx pwnkit scan --target https://api.example.com/chat --runtime claude --mode deep --repo ./src
|
|
133
|
+
npx pwnkit-cli scan --target https://api.example.com/chat --runtime claude --mode deep --repo ./src
|
|
134
134
|
|
|
135
135
|
# MCP server audit
|
|
136
|
-
npx pwnkit scan --target https://mcp-server.example.com --mode mcp --runtime claude
|
|
136
|
+
npx pwnkit-cli scan --target https://mcp-server.example.com --mode mcp --runtime claude
|
|
137
137
|
|
|
138
138
|
# Audit an npm package
|
|
139
|
-
npx pwnkit audit react --depth deep --runtime claude
|
|
139
|
+
npx pwnkit-cli audit react --depth deep --runtime claude
|
|
140
140
|
|
|
141
141
|
# Review a GitHub repo
|
|
142
|
-
npx pwnkit review https://github.com/user/repo --runtime codex --depth deep
|
|
142
|
+
npx pwnkit-cli review https://github.com/user/repo --runtime codex --depth deep
|
|
143
143
|
```
|
|
144
144
|
|
|
145
145
|
## Runtime Modes
|
|
@@ -177,7 +177,7 @@ Combined with scan modes:
|
|
|
177
177
|
| **Source code review** | Yes — AI-powered deep analysis | No | No | Yes — Rules only | No |
|
|
178
178
|
| **OWASP LLM Top 10** | Yes — 8/10 covered | Partial | Partial | N/A | N/A |
|
|
179
179
|
| **SARIF + GitHub Security tab** | Yes — | Yes — | No | Yes — | Yes — |
|
|
180
|
-
| **One command, zero config** | Yes — `npx pwnkit scan` | Needs YAML config | Needs Python setup | Needs rules config | Needs templates |
|
|
180
|
+
| **One command, zero config** | Yes — `npx pwnkit-cli scan` | Needs YAML config | Needs Python setup | Needs rules config | Needs templates |
|
|
181
181
|
| **Open source** | Yes — MIT | Yes — (acquired by OpenAI) | Yes — | Yes — | Yes — |
|
|
182
182
|
| **Cost per scan** | $0.05–$1.00 | Varies | Free (local) | Free (OSS) / Paid (Pro) | Free |
|
|
183
183
|
|
|
@@ -241,16 +241,16 @@ Every finding is persisted in a local SQLite database. Query across scans:
|
|
|
241
241
|
|
|
242
242
|
```bash
|
|
243
243
|
# List critical findings
|
|
244
|
-
npx pwnkit findings list --severity critical
|
|
244
|
+
npx pwnkit-cli findings list --severity critical
|
|
245
245
|
|
|
246
246
|
# Filter by category
|
|
247
|
-
npx pwnkit findings list --category prompt-injection --status confirmed
|
|
247
|
+
npx pwnkit-cli findings list --category prompt-injection --status confirmed
|
|
248
248
|
|
|
249
249
|
# Inspect a specific finding with full evidence
|
|
250
|
-
npx pwnkit findings show NF-001
|
|
250
|
+
npx pwnkit-cli findings show NF-001
|
|
251
251
|
|
|
252
252
|
# Browse scan history
|
|
253
|
-
npx pwnkit history --limit 10
|
|
253
|
+
npx pwnkit-cli history --limit 10
|
|
254
254
|
```
|
|
255
255
|
|
|
256
256
|
Finding lifecycle: `discovered → verified → confirmed → scored → reported` (or `false-positive` if verification fails).
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pwnkit-cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.1",
|
|
5
5
|
"description": "AI-powered agentic security scanner. Scan endpoints, audit packages, review source code. Autonomous agents discover, attack, verify, and report.",
|
|
6
6
|
"bin": {
|
|
7
7
|
"pwnkit": "dist/index.js"
|
|
@@ -47,14 +47,10 @@
|
|
|
47
47
|
"pnpm": ">=8"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
"
|
|
54
|
-
"commander": "^12.1.0",
|
|
55
|
-
"drizzle-orm": "^0.44.0",
|
|
56
|
-
"ora": "^8.0.0",
|
|
57
|
-
"yaml": "^2.4.0"
|
|
50
|
+
"better-sqlite3": "^12.8.0"
|
|
51
|
+
},
|
|
52
|
+
"optionalDependencies": {
|
|
53
|
+
"@clack/prompts": "^1.1.0"
|
|
58
54
|
},
|
|
59
55
|
"devDependencies": {
|
|
60
56
|
"@types/node": "^25.5.0",
|