pwnkit-cli 0.2.2 → 0.3.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.
Files changed (4) hide show
  1. package/LICENSE +188 -21
  2. package/README.md +70 -69
  3. package/dist/index.js +50408 -8102
  4. package/package.json +2 -2
package/LICENSE CHANGED
@@ -1,21 +1,188 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 Peak Twilight
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship made available under
36
+ the License, as indicated by a copyright notice that is included in
37
+ or attached to the work (an example is provided in the Appendix below).
38
+
39
+ "Derivative Works" shall mean any work, whether in Source or Object
40
+ form, that is based on (or derived from) the Work and for which the
41
+ editorial revisions, annotations, elaborations, or other modifications
42
+ represent, as a whole, an original work of authorship. For the purposes
43
+ of this License, Derivative Works shall not include works that remain
44
+ separable from, or merely link (or bind by name) to the interfaces of,
45
+ the Work and Derivative Works thereof.
46
+
47
+ "Contribution" shall mean, as submitted to the Licensor for inclusion
48
+ in the Work by the copyright owner or by an individual or Legal Entity
49
+ authorized to submit on behalf of the copyright owner. For the purposes
50
+ of this definition, "submitted" means any form of electronic, verbal,
51
+ or written communication sent to the Licensor or its representatives,
52
+ including but not limited to communication on electronic mailing lists,
53
+ source code control systems, and issue tracking systems that are managed
54
+ by, or on behalf of, the Licensor for the purpose of submitting and
55
+ discussing improvements to the Work, but excluding communication that is
56
+ conspicuously marked or designated in writing by the copyright owner as
57
+ "Not a Contribution."
58
+
59
+ "Contributor" shall mean Licensor and any Legal Entity on behalf of
60
+ whom a Contribution has been received by the Licensor and included
61
+ within the Work.
62
+
63
+ 2. Grant of Copyright License. Subject to the terms and conditions of
64
+ this License, each Contributor hereby grants to You a perpetual,
65
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
66
+ copyright license to reproduce, prepare Derivative Works of,
67
+ publicly display, publicly perform, sublicense, and distribute the
68
+ Work and such Derivative Works in Source or Object form.
69
+
70
+ 3. Grant of Patent License. Subject to the terms and conditions of
71
+ this License, each Contributor hereby grants to You a perpetual,
72
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
73
+ (except as stated in this section) patent license to make, have made,
74
+ use, offer to sell, sell, import, and otherwise transfer the Work,
75
+ where such license applies only to those patent claims licensable
76
+ by such Contributor that are necessarily infringed by their
77
+ Contribution(s) alone or by the combined Work (with their
78
+ Contribution(s)). If You institute patent litigation against any
79
+ entity (including a cross-claim or counterclaim in a lawsuit)
80
+ alleging that the Work or any Contribution embodied within the Work
81
+ constitutes a patent or copyright infringement, then any patent
82
+ licenses granted to You under this License for that Work shall
83
+ terminate as of the date such litigation is filed.
84
+
85
+ 4. Redistribution. You may reproduce and distribute copies of the
86
+ Work or Derivative Works thereof in any medium, with or without
87
+ modifications, and in Source or Object form, provided that You
88
+ meet the following conditions:
89
+
90
+ (a) You must give any other recipients of the Work or Derivative
91
+ Works a copy of this License; and
92
+
93
+ (b) You must cause any modified files to carry prominent notices
94
+ stating that You changed the files; and
95
+
96
+ (c) You must retain, in the Source form of any Derivative Works
97
+ that You distribute, all copyright, patent, trademark, and
98
+ attribution notices from the Source form of the Work,
99
+ excluding those notices that do not pertain to any part of
100
+ the Derivative Works; and
101
+
102
+ (d) If the Work includes a "NOTICE" text file as part of its
103
+ distribution, You must include a readable copy of the
104
+ attribution notices contained within such NOTICE file, in
105
+ at least one of the following places: within a NOTICE text
106
+ file distributed as part of the Derivative Works; within
107
+ the Source form or documentation, if provided along with the
108
+ Derivative Works; or, within a display generated by the
109
+ Derivative Works, if and wherever such third-party notices
110
+ normally appear. The contents of the NOTICE file are for
111
+ informational purposes only and do not modify the License.
112
+ You may add Your own attribution notices within Derivative
113
+ Works that You distribute, alongside or in addition to the
114
+ NOTICE text from the Work, provided that such additional
115
+ attribution notices cannot be construed as modifying the License.
116
+
117
+ You may add Your own license statement for Your modifications and
118
+ may provide additional grant of rights to use, copy, modify, merge,
119
+ publish, distribute, sublicense, and/or sell copies of the
120
+ Contribution.
121
+
122
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
123
+ any Contribution intentionally submitted for inclusion in the Work
124
+ by You to the Licensor shall be under the terms and conditions of
125
+ this License, without any additional terms or conditions.
126
+ Notwithstanding the above, nothing herein shall supersede or modify
127
+ the terms of any separate license agreement you may have executed
128
+ with Licensor regarding such Contributions.
129
+
130
+ 6. Trademarks. This License does not grant permission to use the trade
131
+ names, trademarks, service marks, or product names of the Licensor,
132
+ except as required for reasonable and customary use in describing the
133
+ origin of the Work and reproducing the content of the NOTICE file.
134
+
135
+ 7. Disclaimer of Warranty. Unless required by applicable law or
136
+ agreed to in writing, Licensor provides the Work (and each
137
+ Contributor provides its Contributions) on an "AS IS" BASIS,
138
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
139
+ implied, including, without limitation, any warranties or conditions
140
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
141
+ PARTICULAR PURPOSE. You are solely responsible for determining the
142
+ appropriateness of using or reproducing the Work and assume any
143
+ risks associated with Your exercise of permissions under this License.
144
+
145
+ 8. Limitation of Liability. In no event and under no legal theory,
146
+ whether in tort (including negligence), contract, or otherwise,
147
+ unless required by applicable law (such as deliberate and grossly
148
+ negligent acts) or agreed to in writing, shall any Contributor be
149
+ liable to You for damages, including any direct, indirect, special,
150
+ incidental, or exemplary damages of any character arising as a
151
+ result of this License or out of the use or inability to use the
152
+ Work (including but not limited to damages for loss of goodwill,
153
+ work stoppage, computer failure or malfunction, or all other
154
+ commercial damages or losses), even if such Contributor has been
155
+ advised of the possibility of such damages.
156
+
157
+ 9. Accepting Warranty or Additional Liability. While redistributing
158
+ the Work or Derivative Works thereof, You may choose to offer,
159
+ and charge a fee for, acceptance of support, warranty, indemnity,
160
+ or other liability obligations and/or rights consistent with this
161
+ License. However, in accepting such obligations, You may offer only
162
+ conditions consistent with this License.
163
+
164
+ END OF TERMS AND CONDITIONS
165
+
166
+ APPENDIX: How to apply the Apache License to your work.
167
+
168
+ To apply the Apache License to your work, attach the following
169
+ boilerplate notice, with the fields enclosed by brackets "[]"
170
+ replaced with your own identifying information. (Don't include
171
+ the brackets!) The text should be enclosed in the appropriate
172
+ comment syntax for the syntax of the file. We also recommend
173
+ that a file or directory "LICENSE" or "COPYING" be included with
174
+ your work.
175
+
176
+ Copyright 2026 Doruk Tan Ozturk (Peak Twilight)
177
+
178
+ Licensed under the Apache License, Version 2.0 (the "License");
179
+ you may not use this file except in compliance with the License.
180
+ You may obtain a copy of the License at
181
+
182
+ http://www.apache.org/licenses/LICENSE-2.0
183
+
184
+ Unless required by applicable law or agreed to in writing, software
185
+ distributed under the License is distributed on an "AS IS" BASIS,
186
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
187
+ See the License for the specific language governing permissions and
188
+ limitations under the License.
package/README.md CHANGED
@@ -1,39 +1,39 @@
1
1
  <p align="center">
2
- <img src="assets/pwnkit-icon.gif" alt="pwnkit" width="80" />
2
+ <img src="assets/pwnkit-icon.gif" alt="pwnkit" width="80" />
3
3
  </p>
4
4
 
5
5
  <h1 align="center">pwnkit</h1>
6
6
 
7
7
  <p align="center">
8
- <strong>General-purpose autonomous pentesting framework</strong><br/>
9
- <em>Scan LLM endpoints. Audit npm packages. Review source code. Pentest web apps. Re-exploit to kill false positives.</em>
8
+ <strong>General-purpose autonomous pentesting framework</strong><br/>
9
+ <em>Scan LLM endpoints. Audit npm packages. Review source code. Pentest web apps. Re-exploit to kill false positives.</em>
10
10
  </p>
11
11
 
12
12
  <p align="center">
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
- <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
- <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
- <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>
17
- <a href="https://pwnkit.com"><img src="https://pwnkit.com/badge/peaktwilight/pwnkit" alt="pwnkit verified" /></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
+ <a href="https://github.com/peaktwilight/pwnkit/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-Apache%202.0-blue?style=flat-square" alt="license" /></a>
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
+ <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>
17
+ <a href="https://pwnkit.com"><img src="https://pwnkit.com/badge/peaktwilight/pwnkit" alt="pwnkit verified" /></a>
18
18
  </p>
19
19
 
20
20
  <p align="center">
21
- <img src="assets/demo.gif" alt="pwnkit Demo" width="700" />
21
+ <img src="assets/demo.gif" alt="pwnkit Demo" width="700" />
22
22
  </p>
23
23
 
24
24
  <p align="center">
25
- <a href="#quick-start">Quick Start</a> &middot;
26
- <a href="#commands">Commands</a> &middot;
27
- <a href="#how-it-works">How It Works</a> &middot;
28
- <a href="#what-pwnkit-scans">What It Scans</a> &middot;
29
- <a href="#how-it-compares">Comparison</a> &middot;
30
- <a href="#github-action">CI/CD</a> &middot;
31
- <a href="#built-by">About</a>
25
+ <a href="#quick-start">Quick Start</a> &middot;
26
+ <a href="#commands">Commands</a> &middot;
27
+ <a href="#how-it-works">How It Works</a> &middot;
28
+ <a href="#what-pwnkit-scans">What It Scans</a> &middot;
29
+ <a href="#how-it-compares">Comparison</a> &middot;
30
+ <a href="#github-action">CI/CD</a> &middot;
31
+ <a href="#built-by">About</a>
32
32
  </p>
33
33
 
34
34
  ---
35
35
 
36
- pwnkit is an open-source agentic security toolkit. Autonomous agents discover, attack, verify, and report vulnerabilities across LLM endpoints, web applications, npm packages, and Git repositories — the agents read code, craft payloads, analyze responses, and **re-exploit each finding to kill false positives**. No templates, no static rules — multi-turn agentic reasoning that thinks like an attacker.
36
+ pwnkit is an open-source agentic security toolkit. A research agent discovers, attacks, and writes proof-of-concept code for vulnerabilities across LLM endpoints, web applications, npm packages, and Git repositories. Then a blind verify agent given ONLY the PoC and file path, not the reasoning independently reproduces each finding to **kill false positives**. No templates, no static rules — multi-turn agentic reasoning that thinks like an attacker.
37
37
 
38
38
  One command. Zero config. Every finding re-exploited or dropped.
39
39
 
@@ -50,10 +50,10 @@ npx pwnkit-cli audit lodash
50
50
  npx pwnkit-cli review ./my-ai-app
51
51
 
52
52
  # Or just point pwnkit at a target — it auto-detects what to do
53
- npx pwnkit-cli express # audits npm package
54
- npx pwnkit-cli ./my-repo # reviews source code
55
- npx pwnkit-cli https://github.com/user/repo # clones and reviews
56
- npx pwnkit-cli https://example.com # scans web endpoint
53
+ npx pwnkit-cli express # audits npm package
54
+ npx pwnkit-cli ./my-repo # reviews source code
55
+ npx pwnkit-cli https://github.com/user/repo # clones and reviews
56
+ npx pwnkit-cli https://example.com # scans web endpoint
57
57
  ```
58
58
 
59
59
  That's it. pwnkit discovers your attack surface, launches targeted attacks, verifies findings, and generates a report — all in under 5 minutes.
@@ -87,27 +87,28 @@ pwnkit ships five commands — from quick API probes to deep source-level audits
87
87
 
88
88
  ## How It Works
89
89
 
90
- pwnkit runs autonomous AI agents in sequence. Each agent uses tools (`read_file`, `run_command`, `send_prompt`, `save_finding`) and makes multi-turn decisions — adapting its strategy based on what it learns:
90
+ pwnkit runs autonomous AI agents in a research-then-verify pipeline. Each agent uses tools (`read_file`, `run_command`, `send_prompt`, `save_finding`) and makes multi-turn decisions — adapting its strategy based on what it learns:
91
91
 
92
92
  ```
93
- +-----------+ +-----------+ +-----------+ +-----------+
94
- | DISCOVER | --> | ATTACK | --> | VERIFY | --> | REPORT |
95
- | (Recon) | | (Offense) | | (Confirm) | | (Output) |
96
- +-----------+ +-----------+ +-----------+ +-----------+
97
- Maps endpoints Agents craft Re-exploits Generates SARIF,
98
- Model detection payloads in each finding Markdown, and JSON
99
- System prompt multi-turn to kill false with severity +
100
- extraction conversations positives remediation
93
+ +-----------+ +------------------+ +-----------+
94
+ | RESEARCH | --> | BLIND VERIFY | --> | REPORT |
95
+ | (Discover | | (PoC + path only | | (Output) |
96
+ | + Attack | | no reasoning) | | |
97
+ | + PoC) | +------------------+ +-----------+
98
+ +-----------+ Runs in parallel Only confirmed
99
+ Single agent per finding findings in SARIF,
100
+ session: recon, independently Markdown, and JSON
101
+ payloads, and reproduces or with severity +
102
+ proof-of-concept kills finding remediation
101
103
  ```
102
104
 
103
105
  | Agent | Role | What It Does |
104
106
  |-------|------|-------------|
105
- | **Discover** | Recon | Maps endpoints, detects models, extracts system prompts, enumerates MCP tool schemas |
106
- | **Attack** | Offense | Agentic multi-turn attacks: prompt injection, jailbreaks, tool poisoning, data exfiltration, encoding bypasses agent reads responses and adapts |
107
- | **Verify** | Validation | Re-exploits each finding independently. If it can't reproduce it, it's killed as a false positive |
108
- | **Report** | Output | SARIF for GitHub Security tab, Markdown for humans, JSON for pipelines — with severity scores and remediation |
107
+ | **Research** | Discover + Attack + PoC | Maps endpoints, detects models, extracts system prompts, crafts multi-turn attacks (prompt injection, jailbreaks, tool poisoning, data exfiltration), and writes proof-of-concept code — all in one agent session |
108
+ | **Verify** | Blind validation | Gets ONLY the PoC code and file path not the research agent's reasoning. Independently traces data flow and reproduces each finding. Can't reproduce? Killed as false positive |
109
+ | **Report** | Output | SARIF for GitHub Security tab, Markdown for humans, JSON for pipelines only confirmed findings with severity scores and remediation |
109
110
 
110
- The **verification step is the differentiator.** No more triaging 200 "possible prompt injections" that turn out to be nothing.
111
+ The **blind verification is the differentiator.** The verify agent can't be biased by the research agent's reasoning — same principle as double-blind peer review. No more triaging 200 "possible prompt injections" that turn out to be nothing.
111
112
 
112
113
  ## What pwnkit Scans
113
114
 
@@ -134,15 +135,15 @@ For a verbose view with the animated attack replay:
134
135
  npx pwnkit-cli scan --target https://your-app.com/api/chat --verbose
135
136
  ```
136
137
 
137
- ## Scan Depth & Cost
138
+ ## Scan Depth
138
139
 
139
- | Depth | Test Cases | Time | Estimated Cost |
140
- |-------|-----------|------|----------------|
141
- | `quick` | ~15 | ~1 min | $0.05–$0.15 |
142
- | `default` | ~50 | ~3 min | $0.15–$0.50 |
143
- | `deep` | ~150 | ~10 min | $0.50–$1.00 |
140
+ | Depth | Test Cases | Time |
141
+ |-------|-----------|------|
142
+ | `quick` | ~15 | ~1 min |
143
+ | `default` | ~50 | ~3 min |
144
+ | `deep` | ~150 | ~10 min |
144
145
 
145
- Default model is `anthropic/claude-sonnet-4.6` via [OpenRouter](https://openrouter.ai). Free tier available with `--model free`. You can also use OpenAI, Anthropic direct, or local models via Ollama.
146
+ pwnkit is an agentic harness bring your own AI. Use your API key (OpenRouter, Anthropic, OpenAI, Ollama), or use the Claude Code CLI or Codex CLI with your existing subscription via `--runtime claude` or `--runtime codex`.
146
147
 
147
148
  ```bash
148
149
  # Quick scan for CI
@@ -177,7 +178,7 @@ Bring your own agent CLI — pwnkit orchestrates it:
177
178
  | `claude` | `--runtime claude` | Attack generation, deep analysis — spawns Claude Code CLI |
178
179
  | `codex` | `--runtime codex` | Verification, source analysis — spawns Codex CLI |
179
180
  | `gemini` | `--runtime gemini` | Large context source analysis — spawns Gemini CLI |
180
- | `opencode` | `--runtime opencode` | Multi-provider flexibility — spawns OpenCode CLI |
181
+ | `` | `--runtime ` | Multi-provider flexibility — spawns CLI |
181
182
  | `auto` | `--runtime auto` | Best overall — auto-detects installed runtimes, picks best per stage |
182
183
 
183
184
  Combined with scan modes:
@@ -189,7 +190,7 @@ Combined with scan modes:
189
190
  | `mcp` | `--mode mcp` | Connect to MCP server, enumerate tools, test each for security issues |
190
191
  | `web` | `--mode web` | Full web pentesting — SQLi, XSS, SSRF, auth bypass, IDOR |
191
192
 
192
- > `deep`, `mcp`, and `web` modes require a process runtime (`claude`, `codex`, `gemini`, `opencode`, or `auto`).
193
+ > `deep`, `mcp`, and `web` modes require a process runtime (`claude`, `codex`, `gemini`, ``, or `auto`).
193
194
 
194
195
  ## How It Compares
195
196
 
@@ -205,8 +206,8 @@ Combined with scan modes:
205
206
  | **OWASP LLM Top 10** | Yes — 8/10 covered | Partial | Partial | N/A | N/A |
206
207
  | **SARIF + GitHub Security tab** | Yes | Yes | No | Yes | Yes |
207
208
  | **One command, zero config** | Yes — `npx pwnkit-cli scan` | Needs YAML config | Needs Python setup | Needs rules config | Needs templates |
208
- | **Open source** | Yes — MIT | Yes — (acquired by OpenAI) | Yes — MIT | Yes — LGPL / Paid Pro | Yes — MIT |
209
- | **Cost per scan** | $0.05–$1.00 | Varies | Free (local) | Free (OSS) / Paid (Pro) | Free |
209
+ | **Open source** | Yes — Apache-2.0 | Yes — (acquired by OpenAI) | Yes — MIT | Yes — LGPL / Paid Pro | Yes — MIT |
210
+ | **Pricing** | Free + bring your own AI | Varies | Free (local) | Free (OSS) / Paid (Pro) | Free |
210
211
 
211
212
  pwnkit isn't replacing semgrep or nuclei — it covers the AI-specific attack surface they can't see. Use them together.
212
213
 
@@ -219,28 +220,28 @@ name: AI Security Scan
219
220
  on: [push, pull_request]
220
221
 
221
222
  permissions:
222
- contents: read
223
- security-events: write
223
+ contents: read
224
+ security-events: write
224
225
 
225
226
  jobs:
226
- pwnkit:
227
- runs-on: ubuntu-latest
228
- steps:
229
- - uses: actions/checkout@v4
230
-
231
- - name: Run pwnkit
232
- uses: peaktwilight/pwnkit/action@v1
233
- with:
234
- target: ${{ secrets.STAGING_API_URL }}
235
- depth: default # quick | default | deep
236
- fail-on-severity: high # critical | high | medium | low | info | none
237
- env:
238
- OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }}
239
-
240
- - name: Upload SARIF
241
- uses: github/codeql-action/upload-sarif@v3
242
- with:
243
- sarif_file: pwnkit-report/report.sarif
227
+ pwnkit:
228
+ runs-on: ubuntu-latest
229
+ steps:
230
+ - uses: actions/checkout@v4
231
+
232
+ - name: Run pwnkit
233
+ uses: peaktwilight/pwnkit/action@v1
234
+ with:
235
+ target: ${{ secrets.STAGING_API_URL }}
236
+ depth: default # quick | default | deep
237
+ fail-on-severity: high # critical | high | medium | low | info | none
238
+ env:
239
+ OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }}
240
+
241
+ - name: Upload SARIF
242
+ uses: github/codeql-action/upload-sarif@v3
243
+ with:
244
+ sarif_file: pwnkit-report/report.sarif
244
245
  ```
245
246
 
246
247
  > **API Key Priority:** pwnkit checks for `OPENROUTER_API_KEY` first, then `ANTHROPIC_API_KEY`, then `OPENAI_API_KEY`. OpenRouter gives you access to many models (including free ones) through a single key at [openrouter.ai](https://openrouter.ai).
@@ -284,13 +285,13 @@ Finding lifecycle: `discovered → verified → confirmed → scored → reporte
284
285
 
285
286
  ## Roadmap
286
287
 
287
- - [x] Core autonomous agent pipeline (discover, attack, verify, report)
288
+ - [x] Core autonomous agent pipeline (research, blind verify, report)
288
289
  - [x] OWASP LLM Top 10 coverage (8/10)
289
290
  - [x] SARIF output + GitHub Action
290
291
  - [x] MCP server scanning
291
292
  - [x] npm package auditing
292
293
  - [x] Source code review (local + GitHub)
293
- - [x] Multi-runtime support (Claude, Codex, Gemini, OpenCode)
294
+ - [x] Multi-runtime support (Claude, Codex, Gemini)
294
295
  - [x] Multi-turn agentic attacks (agents adapt payloads based on responses)
295
296
  - [x] Web pentesting mode (SQLi, XSS, SSRF, auth bypass, IDOR)
296
297
  - [ ] RAG pipeline security (poisoning, extraction)
@@ -320,4 +321,4 @@ pnpm test
320
321
 
321
322
  ## License
322
323
 
323
- [MIT](LICENSE) — use it, fork it, ship it.
324
+ [Apache 2.0](LICENSE) — use it, fork it, ship it.