Skip to content

FEAT: add code_attack_framed technique (closes #2088) - #2721

Merged
Richard Lundeen (richlundeen) merged 3 commits into
microsoft:mainfrom
u7k4rs6:feat/2088-code-attack-system-prompt
Sep 22, 2026
Merged

Richard Lundeen (richlundeen) merged 3 commits into
microsoft:mainfrom
u7k4rs6:feat/2088-code-attack-system-prompt

Conversation

@u7k4rs6

@u7k4rs6 Utkarsh Bahuguna (u7k4rs6) commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

Follow-up to #1960. This adds code_attack_framed, an opt-in variant of code_attack that puts a system prompt on top of the converter. The paper doesn't use one, so code_attack stays as it is and the new variant goes in the extra catalog instead of the default set.

No new abstraction was needed, since from_system_prompt already handles attaching a system prompt, and targets without editable history fold it into the user turn like they normally do.

Closes #2088

Clarify that the system prompt is an optional PyRIT framing variant rather than part of the CodeAttack paper or reference implementation.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@richlundeen
Richard Lundeen (richlundeen) added this pull request to the merge queue Sep 22, 2026
Merged via the queue into microsoft:main with commit 58f4883 Sep 22, 2026
49 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a code_attack technique variant that applies the code-completion system prompt

2 participants