Payloads tab¶
Browse and edit the payload corpus, transform payloads with encoders and converters, and build three-part injections.
Sub-tabs: Corpus · Encoder · HouYi.
There are two separate transform catalogues on this tab, and they do not share code:
- The Corpus encode menus (per-payload encode and pack-wide Encode
all) run the converter catalogue. Each pick writes a new, runnable payload
into
user-overrides. - The Encoder sub-tab runs the encoder catalogue. It is a scratch bench with encode and decode, and it saves nothing.
Several names appear in both (Base64, Hex, ROT13, Leetspeak, Homoglyph, zero-width) but behave differently. The encoder and converter reference below lists every transform in both catalogues.
Corpus¶
Manage the payload packs that Barrage fires. Three pack origins appear side by side:
- built-in: 40 packs compiled into the binary.
- ext json: any
PayloadPack-shaped*.jsonfile in$CRUCIBLE_DATA_DIR/payloads/. Imported.txtfiles, URL installs and youruser-overrides.jsonall land here. - ext yaml: a sub-folder of the same directory that holds a
pack.yamlmanifest plus its entry files.
Pack list¶
The left column groups packs by name prefix:
| Group header | Packs |
|---|---|
ENUM · recon probes |
enum-*: system-prompt-leak, reasoning-leak, model-fingerprint, capability-probe, refusal-mapping, tool-rag-discovery, model-identity, training-bias, memory-limits, rag-recon, tool-probing |
ATTACK · exploitation |
attack-*: one pack per technique family (persona-swap, policy-puppetry, role-play-frame, many-shot, meta-prompt, context-poisoning, encoding-bypass, translation-pivot, tool-spoof, fiction-frame, conditional, skeleton-key, refusal-fishing, faux-reasoning, session-spoof, judge-gaming); the 2024–25 technique packs (pap-persuasion, renellm-nesting, past-tense, function-call-coercion, prefill-seeds); and the specialty packs (rag-targeted, hardcore-direct, keyword-checker, db-agent, sqli, ipi-evasion, invisible-span) |
OTHER · control & custom |
anything without an enum- or attack- prefix: control-benign, user-overrides, and external packs |
The technique packs record their source paper in each payload's source
field (not shown on the payload card):
PAP persuasion (arXiv:2401.06373), ReNeLLM rewriting and nesting
(arXiv:2311.08268), past-tense reformulation (arXiv:2407.11969),
function-calling coercion (arXiv:2407.17915), and assistant prefill seeds for
providers that accept a trailing assistant turn (pair those with Craft's prefill
option).
Each row shows the pack name and payload count; external packs also show their
origin label. The filter payloads box at the top narrows the list to packs
whose name, or any payload id, category or text, contains the filter text
(case-insensitive). The right pane then shows only the matching payloads, with a
+ N more payloads hidden by the filter line.
Top bar¶
- Import .txt: opens a path field and Import. See Import and export.
- Install from URL: opens a URL field, an optional
expected sha256field and Install. The fetch runs in the background (the button reads Installing…). See Import and export. - Reload: re-scans the payloads directory.
Pack detail¶
The header shows the pack name, an origin pill and vN · N payloads, with
Export .txt, Encode all and + New on the right.
Each payload is a card with its id, category, text (truncated at 480 characters) and note, plus these row actions:
| Action | What it does |
|---|---|
| → Craft | Builds a request around the payload against the target set on the Attacker tab's form and opens it in Craft. |
| → Barrage | Opens the Send-to-Barrage modal seeded with the payload; you place the marker and pick the pack there. |
| edit | Opens the editor (id / category / text / note → Save / Cancel). |
| delete | Only on user-overrides payloads. |
| encode | Forks an encoded copy. See Corpus encode menus. |
+ New opens the editor with the next free custom-N id and category
custom.
Edits never touch the source pack. Saving writes the payload into
user-overrides.json (toast saved to user-overrides.json). A second edit of
the same id replaces that override in place.
Corpus encode menus¶
The per-payload encode menu and the pack-wide Encode all menu offer the
same 15 converters. Each pick writes a new payload into user-overrides:
- id
{original-id}--{short-id}(for exampleatt-pap-evidence--b64), - category
{original-category}/encoded:{short-id}, so you can still filter by attack family, - a note recording the converter and the original id.
Re-encoding the same payload with the same converter replaces the earlier fork.
Encode all runs every payload in the pack and toasts one summary
(encoded N payloads with …, or encoded N / skipped M with …).
The two LLM-backed converters, Bijection learning (attacker model) and
Low-resource translate → Swahili (attacker model), call the model
configured on the Attacker tab. They
run off the UI thread, one model call per payload; the toast reads encoding N
payload(s) with … via the attacker model… and then encoded N payload(s) with
… when they finish. If the Attacker tab has no usable backend the toast says
… needs the Attacker tab's backend: <error> and nothing is written. Each call
uses temperature 0.7 and the Attacker form's per-request token cap.
Chaining. There is no multi-step chain builder in the UI. To stack
converters, encode a payload, open user-overrides, and encode the fork again:
x → x--b64 → x--b64--rot13. Each converter runs over the whole text
of the payload it is given, including any decode instruction an earlier step
added, so the last converter you apply is the outermost layer. ROT13 over a
Base64 fork also rotates the Base64 instruction line; order the steps with that
in mind.
Encoder¶
A scratch bench for one transform at a time, with no model in the loop and nothing saved to a pack.
- encoder dropdown with all 19 encoders, plus quick-pick chips for
base64,hex,rot13,zero-widthandhomoglyph. - decode checkbox runs the selected encoder in reverse.
- swap (or Ctrl+D) moves OUTPUT into INPUT and flips the decode box. This is how you round-trip a payload, and how you chain by hand: after a swap, untick decode if you want the next encoder to encode rather than decode.
- input / output panes. Output recomputes as you type and has a
Copy button (toast
Copied output). When the output is entirely invisible codepoints, the pane shows… [N invisible codepoints]instead of an empty box; Copy still copies the real characters. - Under the output, the selected encoder's description, and
Detector: input carries at least one codepoint from this scheme.when the input already matches the scheme. The ROT13, Caesar and Atbash detectors fire on any input longer than 8 characters that contains a letter, so treat that line as meaningless for those three.
HouYi¶
A three-part injection composer, after Liu et al., HouYi (arXiv:2306.05499), which broke 31 of 36 tested LLM-integrated apps with this decomposition:
- Framework (F): a task-consistent prefix that the target's pre-prompt accepts as legitimate.
- Separator (S): a context-partitioning escape (fake completion, delimiter injection) that ends the perceived data region.
- Disruptor (D): the actual instruction.
The composed payload preview assembles the parts colour-coded as you type.
Copy and Send to IPI use the same text: each non-empty part is trimmed,
then the parts are joined in F, S, D order with a blank line between them.
Because of the trim, leading or trailing newlines you type into the Separator
are dropped; put delimiter lines inside the text. Send to IPI writes the
result into IPI → Stage as the instruction (toast
Sent composed payload to IPI → Stage → Instruction).
Encoder and converter reference¶
Corpus converters (persisted forks)¶
These are the 15 entries in the encode and Encode all menus. "Wrapper"
means text the transform adds so the target knows to decode. For Base64, Hex,
Base32 and Morse the converter writes its own instruction and the menu
prepends a second one, so the fork starts with two instruction lines (for
example Decode the following base64 and answer the decoded question: followed
by Decode the following Base64 and act on it:, a blank line, then the
encoded text). Edit the fork if you want only one.
| Menu label | Short id | What it does to the payload | Wrapper | Fixed parameters |
|---|---|---|---|---|
| Base64 | b64 |
Standard Base64 with padding | Two lines (menu + converter) | none |
| ROT13 | rot13 |
Rotates ASCII letters by 13 | Menu line: Apply ROT13 to the following and answer the result: |
n = 13 |
| Hex | hex |
Lower-case hex, two characters per byte | Two lines (menu + converter) | none |
| Base32 | b32 |
RFC 4648 Base32 with padding | Two lines (menu + converter) | none |
| Morse | morse |
Upper-cases, then encodes A–Z and 0–9; space and newline become /; other characters are dropped |
Two lines (menu + converter) | none |
| Leetspeak | leet |
a→4 e→3 i→1 o→0 s→5 l→1 g→9 b→8, case-insensitive | None | aggression 2 |
| Homoglyph (Cyrillic) | homo-cyr |
Swaps a c e o p x y and A B C E H K M O P T X Y for Cyrillic lookalikes | None | Cyrillic alphabet; NFKC-stable substitutes only |
| Unicode tag smuggle | utag |
Every ASCII character becomes its U+E0000 tag-block twin; non-ASCII passes through. The result renders as nothing | None | none |
| Sneaky bits (U+2062-4) | sneaky |
Every byte becomes 8 invisible characters (U+2062 = 0, U+2063 = 1). The whole payload becomes invisible | None | none |
| Zero-width insert (ZWSP) | zw |
Inserts U+200B between every character; text stays readable | None | interval 1, ZWSP |
| Hyphenate every char | hyphen |
h-e-l-l-o |
None | every 1 |
| Math prompt (set theory) | math |
Embeds the payload as q in a set-theory framing that asks for A(q) directly |
The framing is the wrapper | set-theory wrap |
| Reverse CAPTCHA | revcap |
Sandwiches every visible character between zero-width characters drawn in rotation from U+200B, U+200C, U+200D, U+2060, U+FEFF | None | none |
| Bijection learning (attacker model) | bij |
Asks the attacker model to invent a random letter permutation and return a worked-example legend plus the payload encoded under it, separated by ---. The whole model reply becomes the fork's text |
The legend is the wrapper | needs the attacker model |
| Low-resource translate → Swahili (attacker model) | lrt |
Asks the attacker model to translate the payload, reply text only | None | target language sw; needs the attacker model |
The converter library takes more parameters than the menus expose. No UI surface sets them today, so the menus always use the fixed values above:
| Converter | Parameters |
|---|---|
| ROT | n: any shift, taken mod 26 |
| Zero-width | interval (minimum 1) and char: ZWSP U+200B, ZWNJ U+200C, ZWJ U+200D or BOM U+FEFF |
| Homoglyph | alphabet: Cyrillic, Greek, Fullwidth or Mixed (Cyrillic, then Greek, then fullwidth); keep_visible_nfkc: drop substitutes that NFKC folds back to ASCII (this removes every fullwidth swap) |
| Hyphen split | every: insert a hyphen every N characters |
| Leet | aggression 0–3. 0 = none; 1 = a e i o; 2 adds s l g b; 3 adds t→7 z→2 y→` |
| Math prompt | wrap: set theory, abstract algebra (a morphism f: NL → A) or first-order logic |
| ArtPrompt | mask_words: each listed word is replaced by a 5-row ASCII-art block between [ascii-art word follows; decode mentally as one token] and [/ascii-art] markers, under a one-line explanation. Not in either menu |
| Low-resource translate | target_lang: any language name or code |
Encoder sub-tab encoders (scratch only)¶
All 19 entries in the encoder dropdown, in dropdown order. None of them adds a decode instruction; the framing templates are themselves the wrapper. None takes parameters.
| Dropdown entry | Encode | Decode |
|---|---|---|
| Unicode tag block (E0000–E007F) | Each ASCII character becomes U+E0000 + its code; non-ASCII passes through | Maps tag codepoints back to ASCII; anything else passes through, so mixed text decodes cleanly |
| Zero-width binary (U+200B / U+200C) | Each byte becomes 8 characters, U+200B = 0 and U+200C = 1. The payload is hidden entirely (unlike the Corpus "Zero-width insert") | Reads the bits back; strips U+200D, U+FEFF and U+2060–U+2064 as noise; visible text is kept |
| Bidi override (Trojan Source) | Wraps the input in U+202E (RLO) … U+2069 (PDI), so it renders reversed | Strips U+202A–U+202E and U+2066–U+2069 |
| Bidi override · carrier-wrapped (Trojan Source) | See Bidi forms | Same strip as bidi |
| Homoglyph swap (Cyrillic / Greek / Latin confusables) | Fixed swaps for 16 lower-case and 17 upper-case Latin letters, mostly Cyrillic with some Greek (for example a→Cyrillic а, o→Greek omicron, k→kappa, n→eta); other letters pass through |
Folds its own substitutes back to Latin |
| Variation selector byte-per-VS (Butler) | Outputs U+1F512 (🔒) followed by one variation selector per byte: bytes 0x00–0x0F use U+FE00–U+FE0F, 0x10–0xFF use U+E0100–U+E01EF | Collects every variation selector, whatever it follows, and rebuilds the bytes |
| Base64 | Standard Base64 with padding, no instruction | Trims, decodes; invalid input comes back unchanged |
| Hex (base16) | Lower-case hex, no separators | Ignores whitespace, accepts either case; invalid input comes back unchanged |
| ROT13 (self-inverse Caesar) | Rotates ASCII letters by 13 | Same operation |
| Caesar (shift 3) | Shifts ASCII letters forward 3 | Shifts back 3 |
| Atbash (Latin alphabet reversal) | a↔z, b↔y, … | Same operation |
| Framing · Grandma | Wraps the payload in a late-grandmother roleplay | Strips any of the four frames if the input matches one |
| Framing · DAN (v14) | Wraps it in a Do-Anything-Now persona | Same |
| Framing · Defense researcher | Wraps it as a controlled-evaluation task | Same |
| Framing · Story mode | Wraps it as a short-story training exercise | Same |
| Markdown image URL exfil detector | No-op | Lists every image URL found (inline , reference-style ![][ref] with [ref]: url, and raw <img src>), one per line, ready for the IPI tab |
| Character spacing | Puts a space between every character | Removes every space, including original ones (lossy) |
| Leetspeak (a4 e3 i1 o0 s5 t7) | a→4 e→3 i→1 o→0 s→5 t→7 b→8 g→9, case-insensitive | Reverses the map; literal digits in the source also become letters (lossy) |
| Diacritics (combining accents) | Adds U+0301 (combining acute) after every letter | Strips U+0300–U+036F |
Bidi forms¶
bidi reverses the whole payload on screen. This is the Trojan Source primitive (CVE-2021-42574), and it is visibly scrambled.
bidi-carrier is the composable form. The first input line is a benign carrier that renders normally. The remaining lines are the payload, emitted as U+2066 (LRI) + U+202E (RLO) + payload + U+202C (PDF) + U+2069 (PDI) straight after the carrier. The isolate keeps the carrier's layout intact while the payload renders as a reversed run beside it. The model tokenises logical order (carrier, then payload, both intact); a reviewer skimming the rendered text sees the carrier and a backwards span. With no newline in the input, the carrier is empty and the result is a reversed-payload-only wrap. Neither form hides characters: the payload is reordered on screen, not made invisible. Decode on either strips the whole bidi control set and returns logical order (carrier directly followed by payload).
Import and export¶
Import .txt and Export .txt share one format: one payload per line, with
blank lines and #-prefixed lines ignored. Import writes
imported-{slug}.json into the payloads directory, where {slug} comes from the
file name; each payload gets id {slug}#{line-number} and category {slug}.
Export writes {slug}.txt into the same directory, flattening multi-line
payloads onto one line.
Install from URL fetches the pack (20 s timeout), checks its SHA-256 against
the value you paste (case-insensitive; leave it blank to skip the check),
validates the PayloadPack JSON shape, then writes it as an external pack. The
toast reads installed "<name>" (N payloads) or install failed: <error>.
External pack formats¶
A JSON pack is one object:
{
"name": "my-pack",
"version": "1",
"payloads": [
{ "id": "p1", "text": "…", "category": "custom", "source": "me", "note": "" }
]
}
source_url and each payload's note are optional.
A YAML pack is a folder under $CRUCIBLE_DATA_DIR/payloads/ containing
pack.yaml with name, version, source (kind: Local, GitHubRepo or
Url), description, categories, entries and sha256. Each entry names a
file and a mime. A text/plain file gives one payload per non-blank,
non-# line (id {entry-name}#{line}); an application/json file holds an
array of payload objects. Unreadable entries are skipped.
How packs flow through the tool¶
Corpus is the source of truth. Built-in packs, external packs and your
user-overrides edits all appear in one list, and the Barrage
Send-to-Barrage modal reads the same set. The Corpus encode menus are how you
persist an encoded variant as a runnable payload. The Encoder sub-tab is a
throwaway bench, and HouYi feeds the IPI lab rather than Barrage.
Troubleshooting¶
| Symptom | Cause | Fix |
|---|---|---|
| An external pack doesn't appear | Malformed JSON or YAML, or the wrong directory | Put it under $CRUCIBLE_DATA_DIR/payloads/ and click Reload. A bad pack is skipped and logged, never fatal |
Install from URL fails with sha256 mismatch |
The fetched bytes don't match the expected hash | Re-copy the hash, or leave the field blank to skip the check (only for a source you trust) |
| Edits to a built-in pack "disappear" | They were saved to user-overrides.json, not the built-in pack |
Open user-overrides (under OTHER · control & custom) |
Bijection / Low-resource translate toast says it needs the Attacker tab's backend |
No usable attacker backend is configured | Configure one on the Attacker tab, then encode again |
| An LLM-backed encode reports failures | The attacker model call failed for some payloads | The toast carries the first error; fix the backend and re-run. Successful forks are already saved |
| Import produced fewer payloads than lines in the file | Blank and #-comment lines are dropped |
Expected. Remove the leading # from lines you want kept |
| A Base64 fork starts with two decode instructions | The menu prefix and the converter's own instruction are both applied | Edit the fork and delete one line |
The Encoder output pane shows … [N invisible codepoints] |
The encoding produced only invisible characters | Expected. Copy copies the real characters |
See also: Barrage · IPI · Attack strategies.