Skip to main content

Attacks

attacks lists the techniques to run. Every goal goes through every attack, unless execution.escalate says otherwise.

Every technique is listed below. Each one has its own page under Attacks, which explains how it works and lists its parameters and the helper models it drives.

attacks[]​

One attack technique to run against the target: which one, how to tune it, and which helper models it drives.

FieldTypeDefaultDescription
namestringrequiredThe technique to run, e.g. flipattack or tap. It must be one of the registered attacks.
parametersmap of string to anyemptyThe technique's own settings. Valid keys differ per attack; anything you leave out keeps its default. Each attack's page lists its parameters.
rolesmap of string to ModelConfigemptyThe helper models an attack uses, keyed by role name (for example attacker). Most static attacks need none; FC and tFC need an attacker. Each attack's page lists the roles it requires.

Attack names​

name must be one of these.

nameAttackTypeNeeds
advprefixAdvPrefixAdaptiveattacker
autodan_turboAutoDAN-TurboAdaptiveattacker, embedder, summarizer
baselineBaselineStaticnone
bonBoNAdaptivenone
cipherchatCipherChatStaticnone
crescendoCrescendoMulti-turnattacker
fcFC-AttackStaticattacker
flipattackFlipAttackStaticnone
h4rm3lh4rm3lAdaptivenone
mmlMMLStaticnone
pairPAIRAdaptiveattacker
papPAPAdaptiveattacker
ragRAG poisoningIndirectattacker, embedder
stacSTACMulti-turnnone
static_templateStatic TemplateStaticnone
tapTAPAdaptiveattacker
tfctFC-AttackStaticattacker
tool_output_ipiTool-output IPIIndirectnone
toolhijackerToolHijackerIndirectnone

Examples​

One static attack, which needs no helper model

attacks:
- name: flipattack
parameters:
flip_mode: FCS

An adaptive attack, which drives its own attacker model

attacks:
- name: tap
parameters:
width: 4
depth: 3
roles:
attacker:
name: llama3.2:latest
connection:
provider: ollama
type: OLLAMA
on_topic:
name: llama3.2:latest
connection:
provider: ollama
type: OLLAMA