Workflow: indirect prompt injection via a tool/RAG result¶
Goal: plant an instruction in content the target model consumes (a tool result, a retrieved document, a served file), and detect when it lands, triggers, and exfiltrates. This is OWASP LLM01 in its indirect form.
Authorised testing only, against systems you own or are engaged to test. This describes the mechanism and the tab layout; it does not provide working payload strings.
The detection loop is a correlation between two data sources: canary tokens that Crucible watches for in captured proxy traffic, and out-of-band callbacks to the Beacon. A canary in a captured request means the model saw your artefact (Ingested). A canary in a tool call the model emitted, or in its response, means it acted on it (Triggered). An attributed Beacon callback means data left the target (Exfiltrated). See How correlation works for the exact rules.
Steps¶
1. Start the Beacon¶
Open Proxy → Beacon:
- Set Listen scope: loopback for a local target, LAN for a remote agent that must reach the callback host off-box. Listen scope is fixed once the beacon is serving.
- If the target is off-host, set an Advertise host the target can actually reach.
- Pick the Callback URL scheme: HTTP (port 8181) or HTTPS (port 8543; cert minted by the Crucible CA, so the target must trust the CA for strict TLS validation).
- Click Start. Each probe gets a unique callback URL of the form
http://<host>:<port>/beacon/<probe-id>. You don't need + new probe for IPI work: staging an artefact while the Beacon runs mints a probe bound to that artefact and writes its callback URL into the payload.
Stage with the Beacon stopped and the artefact has no probe. A callback can then attribute only if it carries the canary itself.
For an internet-facing target the built-in Beacon is unreachable. Run an external collector (for example interactsh), set Advertise host → Custom to its domain, and correlate its callbacks by hand; Crucible will not mark them Exfiltrated.
2. Stage the payload¶
Open IPI → Stage. It's a wizard with clickable composition tiles (Payload × Delivery × Shape → Target), a step rail, and a « Back / Next: … › footer:
- Payload: write the smuggled instruction in the textarea. Refine in Attacker » hands it to the Attacker as a goal if you want to iterate on it.
- Delivery: pick a channel (markdown image exfil, RAG chunk poison, MCP tool-description poison, hidden markdown comment, alt-text, file metadata, README/PR injection, MCP mock server, and others) and its parameters, plus, for the channels that hide the payload inside a host document, a Cover. The callback URL comes from the artefact's own probe, so you don't paste one.
- Shape: the output template the target should be coaxed to emit (raw pass-through,
an exfil-image reference, a
<script>fetch(...)</script>XSS shape, an auto-run config, etc.). - Target: delivery mode (Chat (JSON) / File upload (multipart) / Data
poison (inject + trigger)), a Serve bind address (defaults to
0.0.0.0:8600so a remote agent can fetch it), and Register canary with Beacon to mint the probe up front. Finish with Stage artefact ».
Each staged artefact drops into the Stage ledger with a viewer and its own controls. Sweep » all channels stages the same instruction across every channel at once when you want to rank which one fires.
3. Check the exfil path before firing¶
Open IPI → Sandbox. Paste an expected model output, pick the target Renderer, and Crucible extracts the exfil sinks (image/link URLs) and reports whether each would actually be fetched under that renderer's CSP (WOULD FETCH or BLOCKED). Manage the allowed hosts in Allowlists. Seed with defaults loads per-renderer hosts drawn from public disclosures (Copilot 365 / GitHub Copilot / ChatGPT / Gemini / Claude / Slack AI / Generic). Confirm your callback host survives the CSP here before you spend a real attempt on it.
4. Fire or serve the artefact¶
From the Stage ledger row, fire it with the mode-specific button, Send to target, Upload to target, or Poison + trigger. If a remote agent must fetch the artefact instead, use the per-row Serve control to host it over HTTP (it shows a live URL and a fetch count).
5. Watch detections¶
IPI → Detections is a live, newest-first timeline interleaving the event types:
- Ingested: the canary appeared in a captured request (reached the model's input).
- Triggered: the canary appeared in a tool call's name or arguments, or in a captured response (the model acted on it).
- Side-effect: the ingesting exchange's response contains a tool call, with or without the canary.
- Exfiltrated: an attributed Beacon callback (data left the target). Callbacks that match no probe or canary show as Beacon hit.
- Fetched: the target fetched a served artefact.
Click an underlined row to open its captured record in History. IPI → Canaries shows each artefact's INGESTED / TRIGGERED / EXFILTRATED cells; select a row for the step-by-step chain and full chain / partial chain status. Re-stage artefact » retries a stalled probe through the same channel.
6. Record the finding¶
A clean Ingested → Triggered → Exfiltrated chain for one canary is your evidence. In Detections → Proof chains, use the canary's line:
- Promote chain to Finding creates the Finding directly, anchored on the Triggered record (else Side-effect, else Ingested) with the other records attached as evidence. Its note lists every stage with record ids and each callback. Severity follows the furthest stage (Critical for Exfiltrated, High for Triggered or Side-effect, Medium for Ingested), tagged LLM01, plus LLM02 when a callback was attributed. Add the renderer and channel detail to the note in Project → Findings.
- Export proof bundle writes a hashed JSON bundle (records,
curlreproductions, beacon events, digest) under$CRUCIBLE_DATA_DIR/proofs/for the client or the report appendix.
Export while the records are still in History; trimmed ones are listed as
missing_records.
Troubleshooting¶
| Symptom | Cause | Fix |
|---|---|---|
| Callbacks arrive as Beacon hit, not Exfiltrated | The artefact was staged with the Beacon stopped, or the callback lost both probe id and canary | Start the Beacon and Re-stage artefact »; keep the callback URL intact in the payload |
| Remote agent never hits the callback | Listen scope is loopback, or Advertise host is unreachable | Stop, set Listen: LAN and an Advertise host the target can route to, Start again |
| HTTPS callback rejected by the target | Target doesn't trust the Crucible CA | Trust the CA on the target, or use the plain HTTP callback (port 8181) |
| Sandbox marks the sink BLOCKED | Beacon host not on the renderer's CSP allowlist | Add the host in Allowlists (or Seed with defaults) and re-check in Sandbox before firing |
| Detections shows Ingested but never Triggered | Model saw the artefact but didn't act on the instruction, or acted without carrying the canary | Check for Side-effect; refine the payload (Refine in Attacker »), or try a different Delivery channel or Shape template |
| Triggered fires but no Exfiltrated | Model emitted the sink, but the callback was blocked or wrong | Confirm the exact beacon URL is embedded; re-run the Sandbox CSP check; verify the beacon is still serving |
| Remote agent can't fetch the served artefact | Serve bind not reachable, or served on loopback | Serve on 0.0.0.0 (default) and confirm the advertised host/port is reachable from the agent |
| Internet target's callbacks never show up | The built-in Beacon isn't reachable from the internet | Use an external collector via Advertise host → Custom; correlate by hand |
See also: IPI tab · Beacon · Target → MCP · Payloads → HouYi.