Skip to main content

MML

Multi-Modal Linkage attack encoding harmful prompts into images for VLMs.

Static. Builds its prompts up front and sends them. It drives no model of its own, so it is cheap and repeatable.

One multimodal request with the encoded goal as an image.

Helper models​

None. This attack drives no model of its own, so roles can be left out.

Parameters​

Settings for the algorithm itself, written under the attack's parameters. Anything left out keeps its default.

FieldTypeDefaultDescription
encoding_modeone of word_replacement, mirror, rotate, base64, mixedword_replacementHow the goal is hidden in the image: word_replacement swaps key words for placeholders shown in the image, mirror and rotate distort the text, base64 encodes it, mixed combines them.
image_widthinteger (>= 100)800Width of the generated image, in pixels.
image_heightinteger (>= 100)400Height of the generated image, in pixels.
font_sizeinteger (>= 8)24Font size of the text drawn in the image.
background_colorstringwhiteBackground color of the image.
text_colorstringblackColor of the text drawn in the image.
num_replacementsinteger (>= 1)3For word_replacement: how many words of the goal are moved into the image.
prompt_styleone of game, controlgameHow the target is asked to decode the image: game frames it as a puzzle, control asks plainly.

In a campaign file​

attacks:
- name: mml