Repository navigation
FEAT: add code_attack_framed technique (closes #2088) - #2721
Merged
Richard Lundeen (richlundeen) merged 3 commits intoSep 22, 2026
Merged
Richard Lundeen (richlundeen) merged 3 commits into
Richard Lundeen (richlundeen) merged 3 commits into
Conversation
Utkarsh Bahuguna (u7k4rs6)
force-pushed
the
feat/2088-code-attack-system-prompt
branch
from
September 21, 2026 21:27
0ec8c65 to
7aa8af9
Compare
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>
Richard Lundeen (richlundeen)
approved these changes
Sep 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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