Skip to main content

FlipAttack

Prompt obfuscation via character/word flipping modes.

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

One system + user request carrying the flipped goal.

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
flip_modeone of FWO, FCW, FCS, FMMFCSHow the goal is flipped: FWO reverses word order, FCW reverses the characters inside each word, FCS reverses the whole sentence character by character, and FMM reverses the sentence but shows word-level flips as the example.
cotbooleanfalseAdd a chain-of-thought instruction asking the model to decode step by step.
lang_gptbooleanfalseWrap the instructions in a structured LangGPT-style role prompt.
few_shotbooleanfalseInclude worked examples of flipping and un-flipping a sentence.

In a campaign file​

attacks:
- name: flipattack