bugxhunter 0.5.0 → 0.6.0
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/.env.example +3 -0
- package/README.md +9 -3
- package/bin/bugxhunter.mjs +10 -2
- package/bugxhunter-0.6.0.tgz +0 -0
- package/docker-compose.yml +3 -2
- package/package.json +2 -2
- package/bugxhunter-0.5.0.tgz +0 -0
package/.env.example
CHANGED
|
@@ -39,3 +39,6 @@ SCX_PROXY_TOKEN=
|
|
|
39
39
|
# Optional: which published images `docker compose pull` fetches — a signed
|
|
40
40
|
# release tag like v1.2.3 (see SECURITY.md), or latest (default).
|
|
41
41
|
# BXH_VERSION=latest
|
|
42
|
+
# Optional: the agent image without the scan toolchain (nuclei, nmap, …), about
|
|
43
|
+
# half the download, for reviewing code only. Unset = the full image.
|
|
44
|
+
# BXH_AGENT_FLAVOR=-slim
|
package/README.md
CHANGED
|
@@ -44,7 +44,8 @@ npx bugxhunter docker # the sandboxed stack instead (needs Docker Desktop):
|
|
|
44
44
|
```
|
|
45
45
|
|
|
46
46
|
`npm i -g bugxhunter` makes it a plain `bugxhunter` command; `bugxhunter --help` lists the
|
|
47
|
-
options (`--port`, `--dir`, `--no-open`; `docker down|logs|ps`;
|
|
47
|
+
options (`--port`, `--dir`, `--no-open`; `docker --slim|--full`, `docker down|logs|ps`;
|
|
48
|
+
`vault reset`). The current
|
|
48
49
|
folder becomes the default project. Then, in the sidebar: set up the [vault](#key-vault) with a
|
|
49
50
|
passkey, add your SCX.ai key as `SCX_API`, and [connect GitHub](#github-repositories-read-only).
|
|
50
51
|
The package is published by the release workflow with npm provenance: `npm audit signatures`
|
|
@@ -83,8 +84,12 @@ docker compose up -d --build # build locally, or `docker compose pull &
|
|
|
83
84
|
```
|
|
84
85
|
|
|
85
86
|
The images are multi-arch (linux/amd64 and linux/arm64, so Apple Silicon and Graviton run them
|
|
86
|
-
natively)
|
|
87
|
-
|
|
87
|
+
natively) with zstd-compressed layers (Docker 23+). The agent image comes in two flavours: the
|
|
88
|
+
default carries the scan toolchain (nuclei, nmap, httpx, katana, ffuf, gitleaks, testssl and
|
|
89
|
+
wordlists, about 400 MB to download); **`-slim`** leaves it out for code review only, about half
|
|
90
|
+
the size (`npx bugxhunter docker --slim`, or `BXH_AGENT_FLAVOR=-slim` in `.env`). Open
|
|
91
|
+
**http://localhost:8790** and set up the [vault](#key-vault) in the sidebar: it seals your SCX
|
|
92
|
+
key and turns on passkey sign-in. (`setup.ps1 -CopyScxKey` copies
|
|
88
93
|
the key into `.env` instead, in the clear.)
|
|
89
94
|
|
|
90
95
|
Two containers:
|
|
@@ -260,6 +265,7 @@ GHCR images by digest) and the signed `checksums.txt` that covers them all.
|
|
|
260
265
|
<!-- releases:start -->
|
|
261
266
|
| Release | Published | Checksums | Signature | Signature check | Build |
|
|
262
267
|
| --- | --- | --- | --- | --- | --- |
|
|
268
|
+
| [v0.5.0](https://github.com/cintelis/bugxhunter-runner/releases/tag/v0.5.0) | 2026-10-07 | [checksums.txt](https://github.com/cintelis/bugxhunter-runner/releases/download/v0.5.0/checksums.txt) | [checksums.txt.sig](https://github.com/cintelis/bugxhunter-runner/releases/download/v0.5.0/checksums.txt.sig) | ✅ release key | [workflow run](https://github.com/cintelis/bugxhunter-runner/actions/runs/37702342512) |
|
|
263
269
|
| [v0.4.0](https://github.com/cintelis/bugxhunter-runner/releases/tag/v0.4.0) | 2026-10-07 | [checksums.txt](https://github.com/cintelis/bugxhunter-runner/releases/download/v0.4.0/checksums.txt) | [checksums.txt.sig](https://github.com/cintelis/bugxhunter-runner/releases/download/v0.4.0/checksums.txt.sig) | ✅ release key | [workflow run](https://github.com/cintelis/bugxhunter-runner/actions/runs/37640130325) |
|
|
264
270
|
| [v0.3.0](https://github.com/cintelis/bugxhunter-runner/releases/tag/v0.3.0) | 2026-10-07 | [checksums.txt](https://github.com/cintelis/bugxhunter-runner/releases/download/v0.3.0/checksums.txt) | [checksums.txt.sig](https://github.com/cintelis/bugxhunter-runner/releases/download/v0.3.0/checksums.txt.sig) | ✅ release key | [workflow run](https://github.com/cintelis/bugxhunter-runner/actions/runs/37636400569) |
|
|
265
271
|
| [v0.2.0](https://github.com/cintelis/bugxhunter-runner/releases/tag/v0.2.0) | 2026-10-07 | [checksums.txt](https://github.com/cintelis/bugxhunter-runner/releases/download/v0.2.0/checksums.txt) | [checksums.txt.sig](https://github.com/cintelis/bugxhunter-runner/releases/download/v0.2.0/checksums.txt.sig) | ✅ release key | [workflow run](https://github.com/cintelis/bugxhunter-runner/actions/runs/37618237000) |
|
package/bin/bugxhunter.mjs
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*
|
|
5
5
|
* bugxhunter run the runner here, UI on http://localhost:8790
|
|
6
6
|
* bugxhunter [--port N] [--dir P] [--no-open]
|
|
7
|
-
* bugxhunter docker [
|
|
7
|
+
* bugxhunter docker [--slim|--full] the sandboxed stack: writes ~/.config/bugxhunter/docker
|
|
8
8
|
* (compose file + .env secrets), pulls the signed images
|
|
9
9
|
* matching this version, starts it, opens the UI.
|
|
10
10
|
* With args, runs `docker compose <args>` there (down, logs…).
|
|
@@ -39,6 +39,8 @@ if (flag("--help") || flag("-h")) {
|
|
|
39
39
|
--no-open don't open the browser
|
|
40
40
|
bugxhunter docker the sandboxed stack via Docker (writes ~/.config/bugxhunter/docker, pulls the
|
|
41
41
|
signed images for v${pkg.version}, starts, opens the UI)
|
|
42
|
+
--slim the agent image without the scan toolchain: half the download, code review only
|
|
43
|
+
--full back to the full image (the default)
|
|
42
44
|
bugxhunter docker <args> docker compose <args> in that folder, e.g. down, logs -f, ps
|
|
43
45
|
bugxhunter vault reset delete the key vault when every unlock factor is lost
|
|
44
46
|
|
|
@@ -110,6 +112,8 @@ function openBrowser(url) {
|
|
|
110
112
|
// --- docker mode ----------------------------------------------------------------------
|
|
111
113
|
|
|
112
114
|
async function dockerMode(rest) {
|
|
115
|
+
const slim = flag("--slim"), full = flag("--full");
|
|
116
|
+
rest = rest.filter((a) => a !== "--slim" && a !== "--full");
|
|
113
117
|
const dir = path.join(CONFIG_DIR, "docker");
|
|
114
118
|
if (spawnSync("docker", ["compose", "version"], { stdio: "ignore" }).error) {
|
|
115
119
|
console.error("Docker is not installed or not running. Install Docker Desktop (https://docs.docker.com/get-docker/) and try again.");
|
|
@@ -131,12 +135,16 @@ async function dockerMode(rest) {
|
|
|
131
135
|
if (!vals.get("OPEN_RUNNER_SECRET")) vals.set("OPEN_RUNNER_SECRET", crypto.randomBytes(32).toString("base64url"));
|
|
132
136
|
if (!vals.get("SCX_PROXY_TOKEN")) vals.set("SCX_PROXY_TOKEN", crypto.randomBytes(32).toString("base64url"));
|
|
133
137
|
vals.set("BXH_VERSION", `v${pkg.version}`);
|
|
138
|
+
// The agent flavour sticks until changed: `--slim` once, then plain `docker` keeps it.
|
|
139
|
+
if (slim) vals.set("BXH_AGENT_FLAVOR", "-slim");
|
|
140
|
+
if (full) vals.delete("BXH_AGENT_FLAVOR");
|
|
141
|
+
const flavor = vals.get("BXH_AGENT_FLAVOR") ?? "";
|
|
134
142
|
fs.writeFileSync(envFile, [...vals].map(([k, v]) => `${k}=${v}`).join("\n") + "\n", { mode: 0o600 });
|
|
135
143
|
console.log(`${fresh ? "Created" : "Updated"} ${dir} (compose file + .env; secrets are random and never printed)`);
|
|
136
144
|
|
|
137
145
|
const compose = (a) => spawnSync("docker", ["compose", ...a], { cwd: dir, stdio: "inherit" }).status ?? 1;
|
|
138
146
|
if (rest.length) process.exit(compose(rest));
|
|
139
|
-
console.log(`Pulling the signed images for v${pkg.version} (the agent image is large the first time)…`);
|
|
147
|
+
console.log(`Pulling the signed images for v${pkg.version}${flavor ? " (slim agent: no scan toolchain)" : " (the agent image is large the first time; --slim halves it)"}…`);
|
|
140
148
|
if (compose(["pull"]) !== 0) process.exit(1);
|
|
141
149
|
if (compose(["up", "-d"]) !== 0) process.exit(1);
|
|
142
150
|
const port = vals.get("OPEN_RUNNER_PORT") ?? "8790";
|
|
Binary file
|
package/docker-compose.yml
CHANGED
|
@@ -61,7 +61,8 @@ services:
|
|
|
61
61
|
restart: unless-stopped
|
|
62
62
|
|
|
63
63
|
agent:
|
|
64
|
-
image
|
|
64
|
+
# BXH_AGENT_FLAVOR=-slim picks the image without the scan toolchain (code review only).
|
|
65
|
+
image: ghcr.io/cintelis/bugxhunter-agent:${BXH_VERSION:-latest}${BXH_AGENT_FLAVOR:-}
|
|
65
66
|
build:
|
|
66
67
|
context: .
|
|
67
68
|
dockerfile: docker/agent.Dockerfile
|
|
@@ -92,7 +93,7 @@ services:
|
|
|
92
93
|
# /logs/egress-<date>.jsonl. Log-only — it never blocks traffic and
|
|
93
94
|
# is not in the data path, so scans keep full speed.
|
|
94
95
|
egress-logger:
|
|
95
|
-
image: ghcr.io/cintelis/bugxhunter-agent:${BXH_VERSION:-latest}
|
|
96
|
+
image: ghcr.io/cintelis/bugxhunter-agent:${BXH_VERSION:-latest}${BXH_AGENT_FLAVOR:-}
|
|
96
97
|
command: ["node", "/usr/local/lib/egress-logger.mjs"]
|
|
97
98
|
network_mode: "service:agent" # see the agent's connections
|
|
98
99
|
user: root # needs CAP_NET_RAW effective (agent image defaults to non-root)
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bugxhunter",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
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",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
|
-
"url": "https://github.com/cintelis/bugxhunter-runner.git"
|
|
9
|
+
"url": "git+https://github.com/cintelis/bugxhunter-runner.git"
|
|
10
10
|
},
|
|
11
11
|
"bugs": {
|
|
12
12
|
"url": "https://github.com/cintelis/bugxhunter-runner/issues"
|
package/bugxhunter-0.5.0.tgz
DELETED
|
Binary file
|