bugxhunter 0.8.3 → 0.8.5
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 +9 -2
- package/package.json +1 -1
- package/server/dist/workspaces.js +19 -2
package/README.md
CHANGED
|
@@ -86,7 +86,7 @@ docker compose up -d --build # build locally, or `docker compose pull &
|
|
|
86
86
|
The images are multi-arch (linux/amd64 and linux/arm64, so Apple Silicon and Graviton run them
|
|
87
87
|
natively) with zstd-compressed layers (Docker 23+). The agent image comes in two flavours: the
|
|
88
88
|
default carries the scan toolchain (nuclei, nmap, httpx, katana, ffuf, gitleaks, testssl and
|
|
89
|
-
wordlists, about
|
|
89
|
+
wordlists) plus the Rust and Go toolchains, about 750 MB to download; **`-slim`** leaves all of that out for code review only, about a third of
|
|
90
90
|
the size (`npx bugxhunter docker --slim`, or `BXH_AGENT_FLAVOR=-slim` in `.env`). Open
|
|
91
91
|
**http://localhost:8790** and set up the [vault](#key-vault) in the sidebar: it seals your SCX
|
|
92
92
|
key and turns on passkey sign-in. (`setup.ps1 -CopyScxKey` copies
|
|
@@ -118,7 +118,9 @@ Two containers:
|
|
|
118
118
|
powershell -File docker/copy-out.ps1 my-repo C:\temp\my-repo-out
|
|
119
119
|
```
|
|
120
120
|
|
|
121
|
-
(Plain `docker compose cp` also copies in, but leaves files owned by root, so the agent
|
|
121
|
+
(Plain `docker compose cp` also copies in, but leaves files owned by root, so neither the agent nor uploads can
|
|
122
|
+
write there. To fix a folder copied that way: `docker run --rm -u root -v bugxhunter_workspace:/workspace
|
|
123
|
+
--entrypoint chown ghcr.io/cintelis/bugxhunter-agent -R node:node /workspace/<folder>`.)
|
|
122
124
|
- **Getting files out**: `/workspace` is a Docker volume, so there is no host folder to open. Any
|
|
123
125
|
file path the agent prints under the project (for example "Saved as
|
|
124
126
|
`/workspace/acme/app/analysis.md`") is a download link in the UI, served only for files inside
|
|
@@ -225,6 +227,9 @@ labs, CTFs). Build with `--build-arg SECTOOLS=0` to leave them out.
|
|
|
225
227
|
`ffuf` (+ SecLists wordlists in `/opt/wordlists`), `testssl`, `curl`, `openssl`, `subfinder`
|
|
226
228
|
(passive).
|
|
227
229
|
- **Secrets (local, no network):** `gitleaks` — scan copied-in repos and JS bundles for leaked keys.
|
|
230
|
+
- **Rust and Go:** `cargo` (with `clippy`, `rustfmt` and `cargo audit` for RustSec advisories) and
|
|
231
|
+
`go` (with `govulncheck`), to build, test and audit Rust and Go repositories. `--build-arg RUST=0`
|
|
232
|
+
or `GO=0` leaves one out; `RUST=1` / `GO=1` adds it to a slim build.
|
|
228
233
|
- **Raw-socket:** `nmap`, `ping`, `traceroute`, `dig`/`host` (incl. zone transfer).
|
|
229
234
|
- **Not included — LLM red-teaming:** `promptfoo` (~1.4 GB installed) and `garak` (~2 GB with
|
|
230
235
|
CPU-only PyTorch, 5 GB+ if pip is left to pull the CUDA build) would more than double the image,
|
|
@@ -310,6 +315,8 @@ GHCR images by digest) and the signed `checksums.txt` that covers them all.
|
|
|
310
315
|
<!-- releases:start -->
|
|
311
316
|
| Release | Published | Checksums | Signature | Signature check | Build |
|
|
312
317
|
| --- | --- | --- | --- | --- | --- |
|
|
318
|
+
| [v0.8.4](https://github.com/cintelis/bugxhunter-runner/releases/tag/v0.8.4) | 2026-10-21 | [checksums.txt](https://github.com/cintelis/bugxhunter-runner/releases/download/v0.8.4/checksums.txt) | [checksums.txt.sig](https://github.com/cintelis/bugxhunter-runner/releases/download/v0.8.4/checksums.txt.sig) | ✅ release key | [workflow run](https://github.com/cintelis/bugxhunter-runner/actions/runs/39600671629) |
|
|
319
|
+
| [v0.8.3](https://github.com/cintelis/bugxhunter-runner/releases/tag/v0.8.3) | 2026-10-21 | [checksums.txt](https://github.com/cintelis/bugxhunter-runner/releases/download/v0.8.3/checksums.txt) | [checksums.txt.sig](https://github.com/cintelis/bugxhunter-runner/releases/download/v0.8.3/checksums.txt.sig) | ✅ release key | [workflow run](https://github.com/cintelis/bugxhunter-runner/actions/runs/39593447575) |
|
|
313
320
|
| [v0.8.2](https://github.com/cintelis/bugxhunter-runner/releases/tag/v0.8.2) | 2026-10-21 | [checksums.txt](https://github.com/cintelis/bugxhunter-runner/releases/download/v0.8.2/checksums.txt) | [checksums.txt.sig](https://github.com/cintelis/bugxhunter-runner/releases/download/v0.8.2/checksums.txt.sig) | ✅ release key | [workflow run](https://github.com/cintelis/bugxhunter-runner/actions/runs/39570620468) |
|
|
314
321
|
| [v0.8.1](https://github.com/cintelis/bugxhunter-runner/releases/tag/v0.8.1) | 2026-10-09 | [checksums.txt](https://github.com/cintelis/bugxhunter-runner/releases/download/v0.8.1/checksums.txt) | [checksums.txt.sig](https://github.com/cintelis/bugxhunter-runner/releases/download/v0.8.1/checksums.txt.sig) | ✅ release key | [workflow run](https://github.com/cintelis/bugxhunter-runner/actions/runs/37888271992) |
|
|
315
322
|
| [v0.8.0](https://github.com/cintelis/bugxhunter-runner/releases/tag/v0.8.0) | 2026-10-09 | [checksums.txt](https://github.com/cintelis/bugxhunter-runner/releases/download/v0.8.0/checksums.txt) | [checksums.txt.sig](https://github.com/cintelis/bugxhunter-runner/releases/download/v0.8.0/checksums.txt.sig) | ✅ release key | [workflow run](https://github.com/cintelis/bugxhunter-runner/actions/runs/37885369502) |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bugxhunter",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.5",
|
|
4
4
|
"description": "BugXHunter: an AI security-testing agent with a sandboxed runner, a passkey-sealed key vault and read-only GitHub access. `npx bugxhunter` runs it on your machine.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://bugxhunter.com",
|
|
@@ -79,6 +79,18 @@ export async function createWorkspace(name) {
|
|
|
79
79
|
catch { /* no git: still a usable folder */ }
|
|
80
80
|
return { name: n, directory: dir, git: isGit(dir), modified: modified(dir) };
|
|
81
81
|
}
|
|
82
|
+
/**
|
|
83
|
+
* A permission error, explained. The usual cause is a folder copied in with
|
|
84
|
+
* plain `docker cp`, which leaves it owned by root while the runner and agent
|
|
85
|
+
* run as node.
|
|
86
|
+
*/
|
|
87
|
+
function notWritable(e, dir) {
|
|
88
|
+
const code = e.code;
|
|
89
|
+
if (code !== "EACCES" && code !== "EPERM")
|
|
90
|
+
return e;
|
|
91
|
+
return httpError(403, `No permission to write in ${dir}. It is probably owned by root because it was copied in with docker cp. ` +
|
|
92
|
+
`Give it back to BugXHunter with: docker run --rm -u root -v bugxhunter_workspace:/workspace --entrypoint chown ghcr.io/cintelis/bugxhunter-agent -R node:node ${dir}`);
|
|
93
|
+
}
|
|
82
94
|
/** Delete a workspace and everything in it. Only a listed workspace qualifies. */
|
|
83
95
|
export function deleteWorkspace(directory) {
|
|
84
96
|
const want = typeof directory === "string" ? P.resolve(directory.trim()) : "";
|
|
@@ -90,7 +102,12 @@ export function deleteWorkspace(directory) {
|
|
|
90
102
|
const real = fs.realpathSync(ws.directory);
|
|
91
103
|
if (!isInside(real, fs.realpathSync(WORKSPACES_ROOT)) || real === fs.realpathSync(WORKSPACES_ROOT))
|
|
92
104
|
throw httpError(400, "Not a workspace.");
|
|
93
|
-
|
|
105
|
+
try {
|
|
106
|
+
fs.rmSync(real, { recursive: true, force: true, maxRetries: 3 });
|
|
107
|
+
}
|
|
108
|
+
catch (e) {
|
|
109
|
+
throw notWritable(e, ws.directory);
|
|
110
|
+
}
|
|
94
111
|
return ws;
|
|
95
112
|
}
|
|
96
113
|
/** One folder of the project: sub-folders first, then files, by name. */
|
|
@@ -133,7 +150,7 @@ export function saveUpload(directory, sub, name, bytes) {
|
|
|
133
150
|
}
|
|
134
151
|
catch (e) {
|
|
135
152
|
if (e.code !== "EEXIST")
|
|
136
|
-
throw e;
|
|
153
|
+
throw notWritable(e, dir);
|
|
137
154
|
}
|
|
138
155
|
}
|
|
139
156
|
throw httpError(409, `Too many files called ${base}.`);
|