bugxhunter 0.12.0 → 0.14.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/README.md CHANGED
@@ -3,18 +3,37 @@
3
3
  [![CI](https://github.com/cintelis/bugxhunter-runner/actions/workflows/ci.yml/badge.svg)](https://github.com/cintelis/bugxhunter-runner/actions/workflows/ci.yml)
4
4
  [![CodeQL](https://github.com/cintelis/bugxhunter-runner/actions/workflows/codeql.yml/badge.svg)](https://github.com/cintelis/bugxhunter-runner/actions/workflows/codeql.yml)
5
5
  [![Built with Claude Code](https://img.shields.io/badge/built_with-Claude_Code-0a0e14?logo=anthropic&logoColor=00e5ff)](https://claude.com/claude-code)
6
- [![Reviewed by Claude Mythos 5.1](https://img.shields.io/badge/reviewed_by-Claude_Mythos_5.1-0a0e14?logo=anthropic&logoColor=faf9f5)](https://www.anthropic.com/claude/mythos)
6
+ [![Reviewed by Claude Mythos 5.2](https://img.shields.io/badge/reviewed_by-Claude_Mythos_5.2-0a0e14?logo=anthropic&logoColor=faf9f5)](https://www.anthropic.com/claude/mythos)
7
7
 
8
8
  The [BugXHunter](https://bugxhunter.com) security-testing agent runner: a web UI for the
9
- [OpenCode](https://opencode.ai) coding agent, running on open-weight models (GLM-5.3 by default)
10
- through [SCX.ai](https://platform.scx.ai). The UI follows bugxhunter.com's design system — a
11
- macOS-style terminal window, the red-team palette (GitHub-dark surfaces with red, amber, cyan and
12
- green accents) and Fira Code throughout. Started from the `sovgov-poc` chatbot designer.
9
+ [OpenCode](https://opencode.ai) coding agent, on the model you choose. The default is the
10
+ open-weight GLM-5.3 through [SCX.ai](https://platform.scx.ai); Claude through the Anthropic API,
11
+ OpenRouter and Amazon Bedrock models work too, and the Playground adds NVIDIA's. It runs on your own machine, with the
12
+ agent in a sandboxed container if you use the Docker install, and your keys in an encrypted
13
+ vault.
14
+
15
+ The UI follows bugxhunter.com's design system — a macOS-style terminal window, the red-team
16
+ palette (GitHub-dark surfaces with red, amber, cyan and green accents) and Fira Code throughout.
17
+ Started from the `sovgov-poc` chatbot designer.
18
+
19
+ It has three parts:
13
20
 
14
21
  - **Runner** — point it at a project folder and drive OpenCode's `build` (edits + shell) or
15
22
  `plan` (read-only) agent. Every file edit and shell command waits for your approval.
16
23
  Markdown replies, collapsible tool calls and reasoning, per-turn token counts, and a
17
24
  **Changes** view of what the agent edited (git repos only — OpenCode tracks changes via git).
25
+ - **[Supervised recon](#supervised-recon)** — in the Runner, a test of a target you are
26
+ authorised to test, driven round after round by the runner's code:
27
+ - Read-only requests to the target run on their own; everything else waits for you.
28
+ - A separate verifier rules on every finding, and its quotes are checked against what the
29
+ target really returned.
30
+ - Findings are followed up and combined into **attack paths**, shown end to end.
31
+ - Finished runs are **remembered** per target, encrypted: the next run starts from them, and
32
+ a **retest** says what has been fixed.
33
+ - A browser extension captures a session you logged in with, so a run can test **behind a
34
+ login**, 2FA included.
35
+ - **Concurrency mode** tests several targets at once, one worker each, with one list of
36
+ approvals.
18
37
  - **Playground** — chat with any SCX, Anthropic (Claude), NVIDIA, OpenRouter or Amazon Bedrock model directly (no agent), with
19
38
  tool-calling, JSON mode, an embeddings-backed knowledge base and browser voice. Also:
20
39
  - **Security presets** (code review, threat modelling, AI system review, pentest planning,
@@ -41,6 +60,18 @@ green accents) and Fira Code throughout. Started from the `sovgov-poc` chatbot d
41
60
  (Docker: the `runner-data` volume), never in browser storage.
42
61
  - Retired NVIDIA models (their endpoints answer 404) are found and hidden automatically.
43
62
 
63
+ ## Contents
64
+
65
+ - Getting it running: [Install](#install) · [Run from source](#run-from-source) ·
66
+ [Docker](#docker-sandboxed-agent--login) · [Key vault](#key-vault)
67
+ - Models: [OpenRouter](#other-models-via-openrouter) · [Amazon Bedrock](#glm-53-on-amazon-bedrock) ·
68
+ [Claude](#claude-via-the-anthropic-api)
69
+ - Testing: [GitHub repositories](#github-repositories-read-only) ·
70
+ [Security-testing tools](#security-testing-tools-authorised-use-only) ·
71
+ [Supervised recon](#supervised-recon) · [Sigilant](#through-sigilant-governed-runs)
72
+ - Reference: [Configuration](#configuration-environment-variables) · [Releases](#releases) ·
73
+ [Development](#development) · [Releasing](#releasing) · [Layout](#layout)
74
+
44
75
  ## Screenshots
45
76
 
46
77
  The agent working in a project — live tool calls, reasoning, and a markdown summary:
@@ -52,7 +83,7 @@ vault's state and lock live in the sidebar footer:
52
83
 
53
84
  ![BugXHunter — Runner landing view](docs/images/landing.jpg)
54
85
 
55
- Playground — compare SCX models directly with full generation controls:
86
+ Playground — compare models side by side, with full generation controls:
56
87
 
57
88
  ![BugXHunter — Playground](docs/images/playground.jpg)
58
89
 
@@ -70,7 +101,8 @@ npx bugxhunter docker # the sandboxed stack instead (needs Docker Desktop):
70
101
  options (`--port`, `--dir`, `--no-open`; `docker --slim|--full`, `docker down|logs|ps`,
71
102
  `docker export <path> [dest]`; `vault reset`). The current
72
103
  folder becomes the default project. Then, in the sidebar: set up the [vault](#key-vault) with a
73
- passkey, add your SCX.ai key as `SCX_API`, and [connect GitHub](#github-repositories-read-only).
104
+ passkey, add a model key (an SCX.ai key as `SCX_API` for the default models; an Anthropic,
105
+ OpenRouter or Bedrock key works too), and [connect GitHub](#github-repositories-read-only).
74
106
  The package is published by the release workflow with npm provenance: `npm audit signatures`
75
107
  confirms it was built from this repository.
76
108
 
@@ -78,8 +110,9 @@ confirms it was built from this repository.
78
110
 
79
111
  - Node 22+
80
112
  - OpenCode on `PATH`: `npm install` here provides it, or `npm i -g opencode-ai`
81
- - An SCX.ai key: in the [vault](#key-vault) (preferred), else `opencode auth login` (choose
82
- **Other**, provider id `scx`) or `SCX_API` in a `.env` here.
113
+ - A model key. For the default models, an SCX.ai key: in the [vault](#key-vault) (preferred),
114
+ else `opencode auth login` (choose **Other**, provider id `scx`) or `SCX_API` in a `.env`
115
+ here. For Claude, OpenRouter or Bedrock models instead, see their sections below.
83
116
 
84
117
  ## Run from source
85
118
 
@@ -404,39 +437,215 @@ you run this in — Docker's bridge NAT doesn't restrict outbound on its own.
404
437
 
405
438
  ## Supervised recon
406
439
 
407
- The Runner's **recon** button starts a supervised test of one target. You give the target (one
408
- host or URL), an objective, the environment (local, staging or production) and how it differs
409
- from production, and confirm you are authorised to test it. The runner then drives the session
410
- round after round:
440
+ The Runner's **recon** button starts a supervised test of a target you are authorised to test.
441
+ The agent does the probing; the runner's code decides what runs without you, what waits for you,
442
+ and what counts as a finding. The security model is in
443
+ [docs/recon-security.md](docs/recon-security.md).
444
+
445
+ > Memory, retest, the evidence check, leads, logged-in targets and concurrency mode are new.
446
+ > They are covered by tests against scripted agents and have had little use against real
447
+ > targets and models yet: expect rough edges, and read a finding's reproduction before you
448
+ > rely on it.
449
+
450
+ | You want to | Use |
451
+ |---|---|
452
+ | Test one target | [A run](#a-run) |
453
+ | Know a finding rests on a real response | [The evidence check](#the-evidence-check) |
454
+ | See how findings combine | [Attack paths](#attack-paths) |
455
+ | Not lose what was noticed along the way | [Leads](#leads) |
456
+ | Build on earlier runs, and keep results across restarts | [Memory](#memory) |
457
+ | Check what has been fixed | [Retest](#retest) |
458
+ | Test behind a login, 2FA included | [Logged-in targets](#logged-in-targets) |
459
+ | Test several targets at once | [Concurrency mode](#concurrency-mode) |
460
+ | Choose the models | [Recon models](#recon-models) |
461
+
462
+ ### A run
463
+
464
+ You give the target (one host or URL), an objective, the environment (local, staging or
465
+ production) and how it differs from production, and confirm you are authorised to test it. The
466
+ runner then drives the session round after round:
411
467
 
412
468
  1. **Route.** Each round the executor runs on the model its profile gives it. After two stuck
413
- rounds, or a High or Critical finding, the next round runs on the escalation model; a model
414
- that answers "rate limited" is routed around for a minute.
415
- 2. **Probe, under the gate.** Every shell command the executor (or a subagent) wants to run raises
469
+ rounds, or a High or Critical finding or attack path, the next round runs on the escalation
470
+ model. A model that answers "rate limited" is routed around for a minute.
471
+ 2. **Probe, under the gate.** Every shell command the executor or a subagent wants to run raises
416
472
  an approval. The gate answers the ones it can prove safe: a `curl` GET or HEAD to exactly the
417
- in-scope origin, an `nmap` version scan of the in-scope host, piped into read filters with
418
- allow-listed flags. A handful of shapes that would wreck or hijack the agent's own machine are
419
- rejected. Everything else waits for you, as an approval card. "Always allow" is off during a
420
- run, and the recon agents cannot use webfetch or websearch.
421
- 3. **Verify.** The executor hands each candidate to the `recon-verify` subagent, which rejects it
422
- without reproduction evidence and marks it *config-dependent* when it relies on a setting that
423
- differs from production. Only its verdicts become findings.
424
- 4. **Stop.** The run ends when the executor reports the surface exhausted, a round finds nothing
473
+ in-scope origin (with the URL in double quotes if it has a query string), an `nmap` version
474
+ scan of the in-scope host, piped into read filters with allow-listed flags. A handful of shapes that would wreck or hijack the agent's own machine
475
+ are rejected. Everything else waits for you, as an approval card. "Always allow" is off
476
+ during a run, and the recon agents cannot use webfetch or websearch.
477
+ 3. **Verify.** The executor hands each candidate to the `recon-verify` subagent, which rejects
478
+ it without reproduction evidence and marks it *config-dependent* when it relies on a setting
479
+ that differs from production. Only its verdicts become findings, and its quotes of the
480
+ response are [checked](#the-evidence-check) against what the run's commands really returned.
481
+ 4. **Follow up.** Once something is verified, each round starts from what the findings so far
482
+ unlock (a credential, a token, an identifier, a level of access), then from the open
483
+ [leads](#leads), and only then moves to a fresh hypothesis. A sequence that reaches something
484
+ worse than the finding it builds on goes to `recon-verify` as an
485
+ [attack path](#attack-paths).
486
+ 5. **Stop.** The run ends when the executor reports the surface exhausted, a round finds nothing
425
487
  new, the round or token cap is reached, it stays stuck after escalating, every model is
426
488
  rate-limited, a round fails, or you press stop.
489
+ 6. **Chain.** A run that ends with two or more findings gets a [chain pass](#attack-paths).
427
490
 
428
- A strip above the composer shows the round, tokens, model and how many approvals the gate
429
- answered; the findings appear in the transcript. Gate decisions and the run's start and end go to
430
- the audit log (`recon.gate`, `recon.started`, `recon.finished`). A run lives in the runner's
431
- memory: restarting the runner ends it (the session and its transcript stay).
432
-
433
- **Models.** `RECON_PROFILE` picks a profile: `recon-open` (SCX models only), `recon-balanced`
434
- (GLM executor, Claude for triage, verification and escalation) or `recon-quality`. With no
435
- Anthropic key the default is `recon-open`, otherwise `recon-balanced`. `RECON_EXECUTOR_MODEL`,
436
- `RECON_TRIAGE_MODEL`, `RECON_VERIFY_MODEL` and `RECON_ESCALATE_MODEL` (`provider/model`) override
437
- one role. In Docker the subagents are defined in `docker/opencode.json` on SCX models; the
438
- per-role variables in `.env` reach both containers, so set them there to put a role on Claude.
439
- The security model is in [docs/recon-security.md](docs/recon-security.md).
491
+ A strip above the composer shows the round (or the chain pass's turn), tokens, model and how
492
+ many approvals the gate answered. The results appear in the transcript, in this order: attack
493
+ paths, the findings (each numbered `F1`, `F2`, … and marked with the paths it is part of and
494
+ how its evidence fared), unproven paths with the step each stopped at, and the leads.
495
+
496
+ Gate decisions and the run's start and end go to the audit log (`recon.gate`, `recon.started`,
497
+ `recon.finished`). A run that is still going lives in the runner's memory: restarting the runner
498
+ ends it. The session and its transcript stay, and so does a finished run (see
499
+ [Memory](#memory)).
500
+
501
+ ### The evidence check
502
+
503
+ The verifier is a model, and it only sees the executor's account of a response. So it must
504
+ quote the response, and the runner looks each quote up in what the run's own shell commands
505
+ really returned. It reads that from the agent's event stream, not from anything a model wrote.
506
+ Each finding then carries one of three marks:
507
+
508
+ - *evidence matched*: every quote was found in this run's output.
509
+ - *evidence not matched*: a quote was not found there. It was paraphrased or made up; check
510
+ the reproduction yourself.
511
+ - *no quotes*: nothing was quoted that could be checked.
512
+
513
+ A match shows the text was really returned to this run. It does not show the finding is right:
514
+ that is still the verifier's judgement and yours. Whitespace is ignored in the comparison, case
515
+ is not, and a quote shorter than 12 characters counts for nothing. An unmatched finding is
516
+ marked, not removed. Attack-path steps are not checked yet.
517
+
518
+ ### Attack paths
519
+
520
+ An attack path is a sequence in which what one step returns is what the next step needs, and
521
+ which reaches something worse than any single finding. Paths are recorded two ways:
522
+
523
+ - **During the run.** When following a finding up reaches something worse, the executor hands
524
+ the whole sequence to `recon-verify`, and the path is recorded as soon as it is ruled on.
525
+ - **In the chain pass.** When the loop ends with two or more findings, one turn on the
526
+ escalation model proposes up to three paths the loop did not already record, each naming the
527
+ findings it builds on. The executor then has up to three rounds per path to show it end to
528
+ end, under the same gate and scope.
529
+
530
+ `recon-verify` rejects a path unless every step has its evidence and each step used what the
531
+ one before returned. A path that holds is *demonstrated*, rated on what the attacker ends up
532
+ with and never below the worst finding it uses; it is config-dependent if any of those is. A
533
+ path that stops (a write you declined, a step that did not work, the rounds running out) is
534
+ *partial*, with the step and the reason: a lead, not a finding.
535
+
536
+ The chain pass does not run after an error, rate limits or a stop. It spends what is left of
537
+ the token budget and no more: once a run has two findings, the main loop leaves 15% of the
538
+ budget for it. The start dialog has a checkbox to leave the chain pass out of a run.
539
+
540
+ ### Leads
541
+
542
+ The executor keeps a list of what it noticed and did not get to: an identifier, a hidden
543
+ parameter, an error that leaks something. It writes a `RECON-LEAD:` line, the run numbers it
544
+ (`L1`, `L2`, …), and each later round is given the open ones back, oldest first, to follow
545
+ before anything new or to close with a reason. If the executor reports the surface exhausted
546
+ while leads are open, it is sent back to them once.
547
+
548
+ The panel lists the leads. They are the executor's notes: nothing in the list is a finding.
549
+ What the newest run left open is handed to the next run on that target.
550
+
551
+ ### Memory
552
+
553
+ A finished run is kept, encrypted with the vault key, in `recon/` beside the vault (Docker: the
554
+ `runner-data` volume, which the agent container cannot read). Only an id and the finish time
555
+ are in the clear. Two things use it:
556
+
557
+ - **The next run on the same host and port starts from it.** The opening prompt lists what
558
+ earlier runs verified there, the attack paths they recorded and the leads the last one left
559
+ open. They are leads for this run: the executor re-tests each with one probe, and one counts
560
+ again only after `recon-verify` has ruled on the new evidence. The start dialog shows what
561
+ is remembered about the target you typed, with a checkbox to start cold and a link to forget
562
+ that target.
563
+ - **A session shows its last finished run again** after the runner restarts.
564
+
565
+ Nothing is kept without a vault. If the vault is locked when a run finishes, the run waits in
566
+ the runner's memory and is written at the next unlock; a restart before that loses it. The
567
+ newest 300 runs are kept.
568
+
569
+ ### Retest
570
+
571
+ When something is remembered about the target, the start dialog offers *Retest only*. That run
572
+ explores nothing. It takes the remembered findings one at a time, worst first, sends the
573
+ original request again, and hands the old evidence and the new response to `recon-verify`,
574
+ which rules:
575
+
576
+ - *still reproducible*: it is a finding of the retest run, with the new evidence.
577
+ - *fixed*: the same request now gets an answer that shows the weakness is gone. The finding is
578
+ no longer offered to later runs, unless a later run finds it again.
579
+ - *cannot confirm*: anything else. An error, a timeout or a logged-out answer is not a fix.
580
+
581
+ A ruling with no evidence, or one whose quotes are not in the run's output, is recorded as
582
+ *cannot confirm*. The executor's own word never marks a finding fixed.
583
+
584
+ ### Logged-in targets
585
+
586
+ By default a run tests what answers without an account. To test behind a login, capture the
587
+ session of a browser you logged in with yourself, so a captcha, an emailed code or 2FA is no
588
+ obstacle:
589
+
590
+ 1. In the start dialog, type the target and choose *capture one from your browser*. It shows a
591
+ pairing code and a link to download the extension (`web/public/bxh-extension`). Install it
592
+ once: unzip, open `chrome://extensions` in Chrome or Edge, turn on Developer mode, *Load
593
+ unpacked*.
594
+ 2. Open the target in a tab and log in. If the app sends a bearer token, press *Start watching
595
+ this site* in the extension first, so it sees the `Authorization` header.
596
+ 3. Paste the code into the extension and press *Send session to BugXHunter*. The code works
597
+ once, for that target, for ten minutes.
598
+
599
+ The extension asks for access to a site only when you press a button on it, and sends that
600
+ site's cookies (and the header, if seen) to your runner and nowhere else. The runner keeps the
601
+ session encrypted with the vault key in `sessions/` beside the vault, one per target.
602
+
603
+ For a run, the session is written into the project folder as a cookie jar and a header file
604
+ (`.bugxhunter/session-…/`) and removed when the run ends. The executor is told the file names,
605
+ not the values. The gate lets `curl` read exactly those two files on a read to the target, and
606
+ asks if the request would print them (`-v`) or goes anywhere else. Untick the box to run
607
+ logged out, or forget the session, in the same dialog.
608
+
609
+ Use a test account. The agent's container can read those files while a run is going, and a
610
+ `GET` sent as a logged-in user can do more than one sent as a stranger.
611
+
612
+ ### Concurrency mode
613
+
614
+ Type several targets in the start dialog, one per line, and the run becomes a batch: one
615
+ worker per target, up to three at a time by default (five at most, fifty targets), the next
616
+ target starting as each one finishes. It is off unless you give more than one target.
617
+
618
+ - **A worker is an ordinary recon run** on a session of its own, named `recon <target>` in the
619
+ session list. Its gate is bound to its own target: a request to another target of the same
620
+ batch is not auto-approved, it waits for you.
621
+ - **One approval list.** Every approval any worker is waiting on comes to one list, each marked
622
+ with its target.
623
+ - **Budgets.** Each worker has its own token budget and round limit. A budget for the whole
624
+ batch is optional; a running worker counts against it for its whole budget, so the ceiling
625
+ holds, and a target that cannot be afforded is skipped with the reason.
626
+ - **Memory and sessions per target.** Each worker starts from what is remembered about its
627
+ target and uses the logged-in session captured for it, if there is one. Workers do not share
628
+ what they find with each other.
629
+ - **Stop.** *stop all* stops every worker and starts nothing more.
630
+
631
+ One batch runs at a time. A batch lives in the runner's memory: a restart ends it, and what
632
+ each finished worker found is kept per target as for any run. All workers share the one agent
633
+ (in Docker, one container with 4 GB and 2 CPUs), which is the practical limit on how many are
634
+ worth running at once. The audit log records `recon.batch.started` and `recon.batch.finished`
635
+ beside each worker's own events.
636
+
637
+ ### Recon models
638
+
639
+ `RECON_PROFILE` picks a profile: `recon-open` (SCX models only), `recon-balanced` (GLM executor,
640
+ Claude for triage, verification and escalation) or `recon-quality`. With no Anthropic key the
641
+ default is `recon-open`, otherwise `recon-balanced`. `RECON_EXECUTOR_MODEL`,
642
+ `RECON_TRIAGE_MODEL`, `RECON_VERIFY_MODEL` and `RECON_ESCALATE_MODEL` (`provider/model`)
643
+ override one role.
644
+
645
+ In Docker the subagents are defined in `docker/opencode.json` on SCX models; the per-role
646
+ variables in `.env` reach both containers, so set them there to put a role on Claude. The
647
+ verifier's prompt lives in the agent image, so a release that changes how it rules needs the
648
+ new agent image, not only the runner.
440
649
 
441
650
  ## Through Sigilant (governed runs)
442
651
 
@@ -488,6 +697,8 @@ nobody is there to unlock.
488
697
  | `OPENCODE_URL` | unset (spawn locally) | Use a remote OpenCode server (Docker sets `http://agent:4096`) |
489
698
  | `OPEN_RUNNER_RENDER_URL` | unset (diagrams off) | The render service for diagrams and `.drawio` files (Docker sets `http://render:8080`) |
490
699
  | `OPEN_RUNNER_PLAYGROUND_DIR` | `playground/` beside the vault | Saved Playground chats and canvases, sealed with the vault key |
700
+ | `OPEN_RUNNER_SESSION_DIR` | `sessions/` beside the vault | Captured logged-in sessions for recon targets, sealed with the vault key |
701
+ | `OPEN_RUNNER_RECON_DIR` | `recon/` beside the vault | Finished recon runs (what later runs on the same target start from), sealed with the vault key |
491
702
  | `OPEN_RUNNER_WORKSPACE` | `/workspace` (local: `~/bugxhunter/repos`) | Remote mode: projects must live under this folder. Both modes: where GitHub clones land |
492
703
  | `SCX_PROXY_TOKEN` | unset | Enables the `/scx/v1` key proxy for the sandboxed agent |
493
704
  | `RECON_PROFILE` | `recon-balanced` (`recon-open` without an Anthropic key) | Model profile for [supervised recon](#supervised-recon); `RECON_PROFILES_FILE` adds your own (JSON) |
@@ -508,6 +719,8 @@ GHCR images by digest) and the signed `checksums.txt` that covers them all.
508
719
  <!-- releases:start -->
509
720
  | Release | Published | Checksums | Signature | Signature check | Build |
510
721
  | --- | --- | --- | --- | --- | --- |
722
+ | [v0.13.0](https://github.com/cintelis/bugxhunter-runner/releases/tag/v0.13.0) | 2026-11-27 | [checksums.txt](https://github.com/cintelis/bugxhunter-runner/releases/download/v0.13.0/checksums.txt) | [checksums.txt.sig](https://github.com/cintelis/bugxhunter-runner/releases/download/v0.13.0/checksums.txt.sig) | ✅ release key | [workflow run](https://github.com/cintelis/bugxhunter-runner/actions/runs/45992894056) |
723
+ | [v0.12.0](https://github.com/cintelis/bugxhunter-runner/releases/tag/v0.12.0) | 2026-11-27 | [checksums.txt](https://github.com/cintelis/bugxhunter-runner/releases/download/v0.12.0/checksums.txt) | [checksums.txt.sig](https://github.com/cintelis/bugxhunter-runner/releases/download/v0.12.0/checksums.txt.sig) | ✅ release key | [workflow run](https://github.com/cintelis/bugxhunter-runner/actions/runs/45961143760) |
511
724
  | [v0.11.1](https://github.com/cintelis/bugxhunter-runner/releases/tag/v0.11.1) | 2026-11-27 | [checksums.txt](https://github.com/cintelis/bugxhunter-runner/releases/download/v0.11.1/checksums.txt) | [checksums.txt.sig](https://github.com/cintelis/bugxhunter-runner/releases/download/v0.11.1/checksums.txt.sig) | ✅ release key | [workflow run](https://github.com/cintelis/bugxhunter-runner/actions/runs/45953964866) |
512
725
  | [v0.11.0](https://github.com/cintelis/bugxhunter-runner/releases/tag/v0.11.0) | 2026-11-26 | [checksums.txt](https://github.com/cintelis/bugxhunter-runner/releases/download/v0.11.0/checksums.txt) | [checksums.txt.sig](https://github.com/cintelis/bugxhunter-runner/releases/download/v0.11.0/checksums.txt.sig) | ✅ release key | [workflow run](https://github.com/cintelis/bugxhunter-runner/actions/runs/45788161293) |
513
726
  | [v0.10.0](https://github.com/cintelis/bugxhunter-runner/releases/tag/v0.10.0) | 2026-11-21 | [checksums.txt](https://github.com/cintelis/bugxhunter-runner/releases/download/v0.10.0/checksums.txt) | [checksums.txt.sig](https://github.com/cintelis/bugxhunter-runner/releases/download/v0.10.0/checksums.txt.sig) | ✅ release key | [workflow run](https://github.com/cintelis/bugxhunter-runner/actions/runs/44896163152) |
@@ -547,6 +760,9 @@ To use a release, verify it first (`scripts/verify-release.sh vX.Y.Z`, see
547
760
 
548
761
  ## Development
549
762
 
763
+ To contribute, read [CONTRIBUTING.md](CONTRIBUTING.md) first: it covers setup, what a pull
764
+ request needs and which changes get a closer look.
765
+
550
766
  ```bash
551
767
  npm run check # typecheck + lint + unit tests (what CI runs)
552
768
  npm run typecheck # tsc, both workspaces
@@ -595,11 +811,17 @@ publisher** on npmjs.com set to this repository and `release.yml`, once; no npm
595
811
  | Path | Role |
596
812
  |---|---|
597
813
  | `server/src/opencode.ts` | Starts/stops the OpenCode server, one SDK client per project folder, event mapping |
598
- | `server/src/index.ts` | Express: `/api/agent/*` (OpenCode) and `/api/chat`, `/api/models`, `/api/kb` (SCX) |
599
- | `server/src/recon.ts`, `recon-driver.ts`, `recon-run.ts` | Supervised recon: the model router and approval gate, the driver loop, and the OpenCode side of a turn (`web/src/ReconPanel.tsx` is its UI) |
814
+ | `server/src/index.ts` | Express: `/api/agent/*` (OpenCode, recon), `/api/chat`, `/api/models`, `/api/kb` (the Playground), `/api/vault`, and `/api/capture/session` (the browser extension's post) |
815
+ | `server/src/recon.ts`, `recon-driver.ts`, `recon-run.ts` | Supervised recon: the model router, the approval gate and the agents' prompts; the driver loop (main loop, chain pass, retest, leads) and its parsers; the OpenCode side of a turn |
816
+ | `server/src/recon-evidence.ts` | What a run's commands really returned, and the check of the verifier's quotes against it |
817
+ | `server/src/recon-memory.ts`, `recon-session.ts` | Finished runs per target, and captured logged-in sessions with their pairing codes: both sealed with the vault key |
818
+ | `server/src/recon-batch.ts` | Concurrency mode: the queue of targets, the cap on workers and the batch's token ceiling |
819
+ | `web/src/ReconPanel.tsx`, `BatchPanel.tsx`, `reconView.ts` | Recon's start dialog and results, the batch panel, and the wording both show (kept apart so it can be tested) |
820
+ | `web/public/bxh-extension/` | The browser extension that sends a logged-in session to the runner; served as a zip (`server/src/zip.ts`) |
600
821
  | `server/src/scx.ts`, `rag.ts` | SCX client and in-memory knowledge base (Playground) |
601
822
  | `server/src/providers.ts`, `anthropic.ts`, `nvidia-health.ts` | Anthropic / NVIDIA / OpenRouter providers (Claude via the official SDK); hides NVIDIA models whose endpoints are retired |
602
823
  | `server/src/bedrock.ts` | Amazon Bedrock: which AWS credentials the runner uses (OIDC role, profile, compute role) and the SigV4 signing of each call |
824
+ | `server/src/vault.ts`, `auth.ts` | The key vault (passkey-wrapped, sealed at rest) and sign-in |
603
825
  | `server/src/playground-store.ts` | Saved Playground sessions, sealed with the vault key |
604
826
  | `server/src/render.ts`, `docker/render-server.py`, `docker/drawio_outline.py` | The render service (diagrams, `.drawio` outlines) and the runner's client for it |
605
827
  | `web/src/Canvas.tsx`, `web/src/canvas/` | The threat-model canvas |
@@ -615,7 +837,7 @@ publisher** on npmjs.com set to this repository and `release.yml`, once; no npm
615
837
  ## AI assistance
616
838
 
617
839
  BugXHunter was built with [Claude Code](https://claude.com/claude-code), and the codebase was
618
- reviewed and hardened by [Claude Mythos 5.1](https://www.anthropic.com/claude/mythos) (bug fixes,
840
+ reviewed and hardened by [Claude Mythos 5.2](https://www.anthropic.com/claude/mythos) (bug fixes,
619
841
  the security hardening, tests and CI). The app shows this with Anthropic's Claude wordmark, used
620
842
  as published. It is a model credit, not an endorsement by Anthropic; the maintainers are
621
843
  responsible for the code.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bugxhunter",
3
- "version": "0.12.0",
3
+ "version": "0.14.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",
@@ -242,6 +242,10 @@ export function mountAuth(app, allowedHosts) {
242
242
  app.use("/api", (req, res, next) => {
243
243
  if (req.path === "/health" || isAuthenticated(req))
244
244
  return next();
245
+ // The browser extension's post: it carries a single-use pairing code in place of a sign-in
246
+ // (see recon-session.ts). The route checks the code; nothing else is reachable this way.
247
+ if (req.method === "POST" && req.path === "/capture/session")
248
+ return next();
245
249
  // The header is how the browser tells our 401 apart from an upstream one
246
250
  // (e.g. SCX rejecting a key), which must not bounce it to the sign-in screen.
247
251
  res.setHeader("WWW-Authenticate", "BXH-Passkey");