Skip to content

Proxy tab

The live capture surface. The proxy binds 127.0.0.1:8081 and MITM-terminates TLS with a leaf minted per SNI from the Crucible root CA. Point a client's HTTPS proxy at it, trust the CA (see Cert), and every in-scope request/response lands here parsed by provider.

Two capture paths run under the hood. Small responses (a Content-Length at or under the body cap, non-SSE) are buffered and published once. Streaming responses (text/event-stream, chunked, unknown length, or a Content-Length over the cap) are teed chunk-by-chunk to the client and to a bounded 16 MiB accumulator, so the History row appears the moment the model starts emitting and finalises on EOF. Out-of-scope traffic is still forwarded upstream; it is just not captured (no row, no parser, no bus event).

  • Body caps. Request and response bodies are buffered up to 16 MiB. A request body over the cap is streamed upstream unchanged, skips Intercept and match-and-replace, and is captured without a body, tagged partial:request-body-over-cap. A response over the cap keeps its first 16 MiB and is tagged partial:response-body-over-cap.
  • Client disconnects. If the client drops a stream mid-response ("Stop generating"), the bytes received so far are kept and the record is tagged partial:client-disconnected.
  • Compression. gzip, deflate, brotli and zstd upstream responses are decoded before parsing, so Cloudflare-fronted endpoints that answer with Content-Encoding: zstd parse normally.
  • WebSockets. An HTTP/1.1 upgrade is forwarded, the handshake is captured as a 101 record tagged websocket, and the upgraded stream is then tunnelled both ways (10-minute idle bound). Frames are not parsed: no per-message capture, detection or intercept.
  • TLS fingerprint. Because the proxy terminates and re-originates each connection, the target sees Crucible's JA3/JA4/JA4H, not your client's. For fingerprint-sensitive testing see Options → TLS passthrough, which splices HTTPS raw at the cost of all capture.

Sub-tabs: History · Intercept · Beacon · Options.


History

The table of every request/response the proxy captured, parsed per provider.

Filter bar

  • Filter: a query language (hover the box for the syntax). Terms AND together; a bad term is reported in red and ignored.
    • a bare word or "two words" matches host or path; -term negates; /regex/ matches as a regex;
    • field terms host: path: url: method: provider: tag: note: colour:;
    • status:404, status:4xx, status:400-499;
    • has:hits, has:prompt, has:note, has:tag, has:colour.
  • ★ opens Saved filters: name the current query and Save current filter, click a saved one to apply it, ✕ to delete. Saved filters persist with the project.
  • ⚙ opens the Columns chooser. Every column except Path can be hidden; Show all restores them. The choice persists with the project.
  • Select all selects every row in the current view; an N selected chip with ✕ clears the selection.
  • Provider dropdown: All, OpenAI API, Anthropic API, Gemini API, OpenAI-compatible, ChatGPT (web), Claude (web), Gemini (web), Bedrock, Unknown.
  • AI only: hide rows with no parsed prompt (browser noise, telemetry, model-list calls, OCSP). Off by default: a curl to a local /api/tags has no prompt and would otherwise vanish.
  • Hits only: only rows where the guardrail classifier fired at least one signal.
  • N captured counter, plus a red ● N flagged once any row carries a guardrail hit, and Clear, which wipes History and the site map (they share the same capture feed), so use it deliberately.

Under the filter bar a traffic strip shows requests per hour. Click a bar to filter the table to that hour; click it again, or clear, to drop the hour filter.

Table columns: Time · Method · Host · Path · Status · Provider · Tags · Latency · Guard. Click a header to cycle its sort: first click descending, again for ascending, a third time back to the default (newest first); clicking a different column resets to descending. Tags shows your tags, plus a 🗨 marker when the row has a note (hover for the text). Latency is a bar scaled to about 2 s. Guard shows one ◆ per guardrail hit (up to five, then +N); hover for the signal kinds. Rows promoted to a finding get a leaf-green wash and edge, and a row colour tints the whole row.

Inspecting a row: click to open the detail pane, a decoded | request | response | raw strip with a method path · status · latency summary on the right.

  • decoded (the default): any session token decoded (source, id, issued, truncated signature), the extracted prompt, the defensive signals (x-guard, refusal, jailbreak) and the response body.
  • request / response: headers (collapsible) and pretty-printed bodies. The response body has lenses Text · Tools · Reasoning · HTML · JS · Raw, each offered only when it applies; the choice sticks across rows. HTML is a stripped preview with no scripts, styles or resources loaded.
  • raw: the response body on its own (pretty-printed when it is JSON).

If capture-time redaction is on (Options), the stored auth headers read <REDACTED:sha256:…>. Rows reloaded from disk fetch their bodies on demand.

Selecting several rows. Ctrl/Cmd-click toggles a row and Shift-click selects a range (or use Select all). Right-clicking inside a multi-selection opens the bulk menu: Tag / colour N rows…, Colour, Remove tag, Copy URLs, Copy as curl and Clear selection.

Right-click a single row to act on it:

  • Add host to scope · Exclude host from scope · Add URL prefix to scope
  • Tag / note / colour… (a window with tags, a note and a colour), a Colour submenu (red, amber, green, blue, purple, grey, none) and, when the row has tags, Remove tag
  • Filter submenu: host:<host>, -host:<host> and tag:<tag> for each tag
  • Copy URL · Copy as curl
  • Send to Craft · Send to Barrage · Send to Attacker · Send to Recon
  • Save as finding

Tags are single words, case-insensitive. Prefixes the app stamps itself (partial:, intercept:, rewrite:, tls:) are reserved and do not appear in the Tags column or match tag:. Tags, notes and colours are written to the capture store when persistence is on, and otherwise live in memory for the session.

Hotkeys: Ctrl+R sends the selected row to Craft and Ctrl+I sends it to Barrage.

Typical flow: triage traffic → tick AI only (or Hits only, or filter has:hits) → click to inspect → right-click to hand the interesting request off to Craft/Barrage/Attacker, or pin it as a finding. The Judge/guardrail score is high when the model refused: to hunt bypasses, look for clean low-scored rows, not high ones (see Concepts).


Intercept

Capture-and-pause. When intercept is on, every in-scope request is parked in a queue and awaits your decision before it goes upstream. Craft-origin replays bypass the queue (they carry an origin header), request bodies over the 16 MiB cap bypass it, and static assets are skipped by default (see Proxy → Options → Intercept rules).

Toolbar (left to right): Forward ⏎ · Drop ⌫ · Action ▾ · Open Browser · the ● Intercept on / ● Intercept off toggle. A right-aligned pill shows the queue, ● N parked · holding when intercept is on or ● N parked · passing through when it is off. Forward and Drop act on the selected request.

Under the toolbar, a combo-styled control (i/N METHOD path ▾, then the host and a held Ns timer) opens the PARKED QUEUE dropdown, oldest first. Each row shows method, path, an edited chip if you changed it, and how long it has been held. Click a row, or use ↑/↓ when no text field has focus, to select it. With nothing parked the tab reads No parked requests.

Open Browser launches a Chromium-family browser (Chrome / Edge / Brave / Chromium) pre-routed through Crucible and trusting the CA by key-pin, in a throwaway profile, no cert install needed. Authorised targets only.

Action ▾: Forward all · Drop all · Send to Craft (Ctrl+R) · Send to Barrage (Ctrl+I) · Drop (Ctrl+D) · Copy URL · Copy as curl · Add to scope · Don't intercept this host. Craft, Barrage and the copy actions carry your edited version of the request. Add to scope adds a HostExact include; Don't intercept this host adds a HostExact exclude, so later traffic from that host is no longer captured either.

Hotkeys (the hint strip at the bottom lists all but Ctrl+I): Ctrl+F forwards, Ctrl+D drops, Ctrl+R sends to Craft, Ctrl+I sends to Barrage, Ctrl+T toggles intercept. On this sub-tab Ctrl+F overrides the global search shortcut.

The selected request opens in a full-width editor with tabs edit · decoded · raw · headers N (editable · changes apply on forward). edit shows the request line and headers, with the body editable; lines that differ from the captured original are highlighted. If a chat call is about to go out non-streamed, a hint offers a one-click fix (Add "stream": true, or Switch to :streamGenerateContent for Gemini). headers N adds, edits and removes headers.

On Forward, an edited request is sent with a recomputed Content-Length, and the captured record is the edited version that hit the wire, tagged intercept:edited. Dropping returns a synthesised 499 downstream with no upstream call. Turning intercept off flushes every parked request upstream and shows a Released N parked requests to upstream. banner (singular for one). The queue holds at most 64 requests; beyond that the oldest are forwarded automatically and a Queue full (64 parked): auto-forwarded the N oldest requests upstream. banner appears.


Beacon

An out-of-band callback host for catching exfiltration and blind-injection callbacks.

  • Status: ● Running / ○ Stopped; Start / Stop. Badges show each listener and its port, green when up, and an N events tally sits on the right.
  • Four listeners run together: HTTP (8181), HTTPS (8543), DNS (15353) and raw-TCP (14141). DNS catches out-of-band resolution; raw-TCP is the arbitrary-TCP catch-all.
  • Callback URL card: the newest probe's callback URL (http://<host>:<port>/beacon/<probe-id>, the probe id in coral) with a Copy button. Below it, a collapsible line (loopback · http | advertise <host>) holds the setup controls:
    • Listen: loopback (127.0.0.1, same-host targets) or LAN (0.0.0.0) (off-host targets, an explicit opt-in per the isolation rules). Fixed while the beacon runs. Starting with a non-loopback advertise host binds LAN.
    • Advertise host: Localhost / Private · <lan ip> / Public · <detected ip> / Custom. Sets which address the copied URLs point at. Public is display only; inbound callbacks from the internet still need NAT, a port-forward or a tunnel. For internet-reachable callbacks, run an external OOB collector you control (interactsh, for example) and enter its host under Custom. A warning appears if the beacon is bound to loopback but advertising an off-host address.
    • Callback URL: http (port 8181) or https (port 8543). Both listeners always run; this only sets the scheme and port of the copied URLs. The HTTPS leaf is minted by the Crucible CA, so the target must trust the CA (or ignore cert errors).
  • Probes: · N registered and + new probe (while running), then one row per probe with its id, a copy button and a hit count.
  • Events: · N received, Clear (wipes events without stopping the beacon or dropping probes), and a table of Time · Event · Via · Source · Probe. Event is Triggered for a plain hit or Exfiltrated when the hit carried body bytes. Via names the listener; Source shows the source IP and the request line, DNS name or TCP payload. Hover a row for host, user-agent, referer and a body preview.

The listeners are bounded: each reads at most 64 KiB of request body, admits 256 concurrent connections and cuts a connection after 30 s. The event log keeps the newest 4,096 events, evicting unattributed hits before ones tied to a probe.

Flow: Start → + new probe → copy its URL into an IPI payload → watch Events (and IPI → Detections) for the callback.


Options (proxy-level)

These are the capture and persistence settings, distinct from the global settings on the Options tab. A left rail picks one section at a time: Certificate · Captures · Persistence · Intercept rules · Match & replace · Guardrails · Guardrail rules · Judges · Endpoint adapters. A footer reads ● saved · changes apply immediately, with the active project and build version on the right.

Certificate

Copy certificate (PEM), Save .crt (writes the PEM to a fixed path in the data dir and shows Saved <path>), and a SHA-256 preview (the first 16 hex characters, for a quick check against the OS trust dialog). A note explains the terminating-MITM fingerprint trade-off above. Full trust recipes live on the Cert tab.

Captures

Redact sensitive headers (Authorization, Cookie, x-api-key). Off by default (single-operator tool, you own the keys). When on, credential headers are replaced with <REDACTED:sha256:…> at capture time; it only affects future captures, not existing rows.

Persistence

  • Persist captures to disk writes to the active project's captures.sqlite so traffic survives a quit (off keeps it in memory only). Discover, Recon and MCP probe traffic is shown in History but not written to disk. How much history is kept on disk (record cap, age limit, Prune now, Vacuum) is set under Storage on the global Options tab; records attached to evidence are never pruned.
  • Autosave project within 5 s of a change: project.json is checked every 5 s and written only when something changed.
  • Read-only project (freeze project.json), and a password write-lock (Lock project / Unlock). The lock forces read-only on. It is a deterrent on shared machines; the project files stay plaintext on disk.
  • Synthetic traffic: Inject synthetic traffic replays bundled synthetic LLM-traffic fixtures (Anthropic / OpenAI / Gemini / Ollama shapes, including refusals, tool use and streamed responses) into History with no network. It reads $CRUCIBLE_FIXTURES_DIR, falling back to /usr/share/crucible/fixtures. Only the container image ships that directory, so the button works out of the box there. The desktop packages (deb, dmg, msi) include no fixtures. On a desktop install the button toasts No fixtures found — set CRUCIBLE_FIXTURES_DIR. until you point CRUCIBLE_FIXTURES_DIR at a fixtures directory, such as crates/app/fixtures/synthetic in a Crucible source checkout. Setting the variable before launch also loads the fixtures once at startup.

Intercept rules

Hide non-AI requests from the queue display (off; hidden requests are still parked), Skip static assets (on by default: gif/jpg/jpeg/png/css/js/ico/woff/woff2/svg/webp/ttf/otf/map), and Intercept responses (marked reserved · v0.3; toggling it only sets the flag, and responses still pass through unparked).

Match & replace

Ordered rules that rewrite traffic on the wire. Each rule has an enable box, a name (fired rules tag the record rewrite:<name>), a target, a host substring filter (empty = any), a match pattern with regex and first only options, and a replace with field. Rules run top to bottom (↑ moves one earlier, ✕ deletes it) and several can fire on one exchange.

Target Empty match Empty replacement
Request header / Response header adds Name: value as a header deletes the matched header
Request body / Response body replaces the whole body n/a
Tool result applies the mode to the whole tool result n/a

Regex rules may use $1-style groups. Tool result rewrites the content of tool results inside provider bodies (OpenAI role:"tool" messages and function_call_output items, Anthropic tool_result blocks, Gemini functionResponse, MCP result.content[].text) with a mode of Replace, Append or Prepend. That makes the proxy a live indirect-prompt-injection injector: the model receives your staged text as if the tool had returned it, and the target's data store is never touched.

+ Add rule adds a request-body rule; + Tool-result injector adds an Append rule pre-filled with a placeholder comment to replace. The footer shows N active · applies to in-scope proxy traffic only.

Limits:

  • Rules apply only to in-scope traffic arriving through the proxy. Craft and Barrage fires are never rewritten.
  • Request rules run after Intercept, so the queue shows the original and the rules act on what you forward.
  • The captured record is the rewritten (wire) version.
  • Request bodies over the cap are left alone.
  • Streamed responses are never rewritten; when a response rule would have applied, the record is tagged rewrite:skipped-streaming.

Rules persist with the project.

Guardrails

Show signal breakdown in tooltips (default on): hover a guardrail chip for per-signal contributions and the noisy-OR aggregate.

Guardrail rules

A JSON overlay over the compiled-in refusal corpus. Import rules from JSON (paste into the box, then Apply paste: there is no file picker), Export active rules → $CRUCIBLE_DATA_DIR/guardrail_rules.json (read at start only as a fallback when the active project has no rules of its own), Restore defaults. Rule kinds: refusal_text phrases and fp_suppression regexes; disabled_builtins turns off built-in phrases by ID. Unknown kinds and invalid regexes are skipped with a warning. A status line reports N user rule(s) loaded · N built-in(s) disabled and the path.

Judges

The judge stack that confirms a hit in Barrage's Search (GA suffix) mode. Thresholds success ≥ (default 0.70) and partial ≥ (default 0.40), then one card per judge with an enable box and a weight:

  • Guardrail absence: 1.0 with no guardrail hit, falling as hit confidence adds up.
  • Rule (regex on assistant text): a regex, with score 1.0 when it matches. An invalid regex is skipped.
  • LLM rubric judge (attacker model): an editable rubric scored 0.0 to 1.0.
  • Embedding similarity (attacker model): a target text (empty = the run's goal).
  • Local toxicity (ONNX, not loaded): abstains for now.

The default stack is guardrail absence ×1, LLM rubric ×2 and embedding similarity ×1. Judges marked needs attacker model are skipped when no attacker model is configured. + Add judge and Reset to defaults sit below the cards with an N enabled · N would be skipped even with an attacker count.

Calibration scores a finished Barrage run with the rule-based judges only (no attacker calls), compares the result with the run's own labels, and shows the agreement rate and a confusion table (run label against stack verdict). High disagreement means read some rows before trusting either. The judge config persists with the project.

Endpoint adapters

Teaches the content-based fallback a bespoke transport, so custom agent traffic (custom SSE, AG-UI/CopilotKit and similar) still yields a conversation and runs the detectors. Paste a JSON document (schema v2, v1 still accepted: adapters entries with match_path, optional match_host, transport of sse / ndjson / json, RFC 6901 JSON pointers text_field / tool_field, and an optional v2 async correlation block), then Apply paste. Export active adapters writes $CRUCIBLE_DATA_DIR/endpoint_adapters.json; Clear adapters drops them (built-in recognisers still run). Adapters swap in live and ride with the project.

Troubleshooting

Symptom Cause Fix
A host you expect is missing from History The request is out of scope, or capture is paused Check Target → Scope and its Recent drops panel
HTTPS rows show but bodies are unparsed / TLS errors client-side Client doesn't trust the Crucible CA Trust the CA in that client, see Cert, or use Intercept → Open Browser
Local curl/SDK traffic missing while AI only is on Non-AI calls have no parsed prompt and are hidden Untick AI only; it's off by default
Every forwarded request returns 502 Host has HTTP(S)_PROXY/ALL_PROXY set, so the upstream can't reach a private target Crucible already forces no_proxy on its own client; unset the env proxy in the client you're routing
Intercept is on but nothing parks Only in-scope, non-replay requests under the body cap park; static assets are skipped Confirm the request is in scope and not a static asset (Proxy → Options → Intercept rules)
A record is tagged partial:request-body-over-cap and has no request body The upload was over 16 MiB Expected; the body was forwarded but not captured
A match-and-replace rule never fires on a chat response The response streamed; streamed responses are never rewritten (tagged rewrite:skipped-streaming) Target the request side, or a non-streamed call
WebSocket traffic shows only a 101 row Frames are tunnelled, not parsed Expected; per-message capture is not supported
Inject synthetic traffic toasts "No fixtures found" Desktop packages ship no fixtures Set CRUCIBLE_FIXTURES_DIR to a fixtures directory (for example crates/app/fixtures/synthetic from the source tree), or use the container image
Beacon URL is unreachable off-host Bound to loopback but advertising a LAN/public host Stop, set Listen to LAN, pick a reachable Advertise host, Start again
Captures vanish on quit Persistence is off (memory-only) Enable Persist captures to disk

See also: Concepts · Cert tab · Target → Scope · Project.