Commit 8016c64
test
MAINT: Address Jailbreak PR review feedback
Revise the standardized Jailbreak scenario in response to review:
- Enable the baseline attack policy by default (was Disabled).
- Rename run parameters to num_jailbreaks / num_jailbreak_attempts.
- Build the technique pool from every registered factory plus the
scenario-local delivery extras, instead of a curated "core" set.
- Default to a random jailbreak sample rather than a curated name list.
- Default techniques to prompt_sending + jailbreak_system_prompt. Native
system-prompt delivery is capability-gated (requires editable history and
system-prompt support) and degrades to converter-based delivery otherwise,
so the objective is never silently dropped.
- Order the system-framing seed at sequence=-1 so a caller-supplied seed group
carrying a user prompt at the default sequence 0 does not raise a
same-sequence role collision when system delivery merges in.
Update the scanner docs/notebook and the scenarios instruction example to match.1 parent 901e6ce commit 8016c64
5 files changed
Lines changed: 515 additions & 152 deletions
File tree
- .github/instructions
- doc/scanner
- pyrit/scenario/scenarios/airt
- tests/unit/scenario/airt
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
527 | 527 | | |
528 | 528 | | |
529 | 529 | | |
530 | | - | |
531 | | - | |
532 | | - | |
533 | | - | |
534 | | - | |
535 | | - | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
536 | 538 | | |
537 | 539 | | |
538 | 540 | | |
| |||
542 | 544 | | |
543 | 545 | | |
544 | 546 | | |
545 | | - | |
546 | | - | |
547 | | - | |
548 | | - | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
549 | 551 | | |
550 | 552 | | |
551 | 553 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
175 | 177 | | |
176 | 178 | | |
177 | 179 | | |
| |||
181 | 183 | | |
182 | 184 | | |
183 | 185 | | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
188 | 190 | | |
189 | 191 | | |
190 | 192 | | |
| |||
0 commit comments