Multimodal Attacks
Guide MultimodalImage Targets
Wallbreaker supports attacking image-generation models (text-to-image targets). Set modality = "image" on the target endpoint, or let the harness auto-detect image models by their model ID.
Querying Image Targets
Use query_image_target instead of query_target for image targets:
Images are saved under wb_images/img_<sha1>.png (content-hashed, no clock dependency). The tool vision-grades the result using the configured judge’s vision capability.
Modality Detection
The harness auto-detects image models by ID (e.g., google/gemini-3-pro-image). Force it manually:
Image Edit Attacks
The query_image_edit tool sends an input image plus an instruction to an image target and vision-judges the edited output:
Chain-of-Jailbreak (Image Chain)
The image_chain tool decomposes a refused image edit into a ladder of individually-benign edit steps, then drives them in sequence. Each step is innocent on its own, but the cumulative effect achieves what the target refused in a single shot:
Text-to-Image Framing Transforms
Four transforms target text-to-image models specifically:
| Transform | Technique |
|---|---|
inscriptive_scene | Etch/inscriptive T2I: render the payload as legible text on a benign whiteboard scene |
perceptual_sub | PGJ perceptual substitution: swap flagged terms for benign phrases that look the same when drawn |
safety_inject | OptJail safety-indicator injection: append SFW/tasteful/educational tokens to bias the output classifier |
dilute | Prompt dilution: pad with benign scene detail to drown the post-hoc NSFW checker |
These transforms are one-way (no decode function) since they target the input side only.
Typographic Image
The build_typographic_image tool renders arbitrary text into a PNG image using PIL’s default font. A vision target reads the words off the picture, so the instruction never passes through a text-input classifier:
Barcode / QR Payloads
The barcode tool encodes a payload as a QR code or Code128/EAN13/Code39 barcode image. Useful against multimodal targets that can read barcodes:
gpt-4o) or image grading is meaningless. A non-vision judge is blind to image content.