Skip to content

FEAT: Adding Garak prompt injection scenario - #2509

Merged
Richard Lundeen (richlundeen) merged 16 commits into
microsoft:mainfrom
richlundeen:rlundeen2-plan-garak-injection-scenarios
Sep 22, 2026
Merged

Richard Lundeen (richlundeen) merged 16 commits into
microsoft:mainfrom
richlundeen:rlundeen2-plan-garak-injection-scenarios

Conversation

@richlundeen

Copy link
Copy Markdown
Contributor

Adds a Garak PromptInject scenario with five selectable injection techniques and three default goal texts. Stores the carrier contexts and injection templates as compact local YAML datasets. Uses standard dataset sampling and persisted objective hashes for reliable scenario resume behavior. Adds focused tests and scanner documentation.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 4dcdc508-9524-4451-8291-45176340e841
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 4dcdc508-9524-4451-8291-45176340e841
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 4dcdc508-9524-4451-8291-45176340e841
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 4dcdc508-9524-4451-8291-45176340e841
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 4dcdc508-9524-4451-8291-45176340e841
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 4dcdc508-9524-4451-8291-45176340e841
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 4dcdc508-9524-4451-8291-45176340e841
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

# Conflicts:
#	doc/scanner/garak.ipynb
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

# Conflicts:
#	THIRD_PARTY_NOTICES.txt
#	doc/code/datasets/1_loading_datasets.ipynb
#	doc/code/datasets/1_loading_datasets.py
#	doc/scanner/garak.ipynb
#	doc/scanner/garak.py
Reserve a sampled context for every requested goal and apply injection wording through technique-owned converters. Preserve shared seed identities and caller configuration, with regression coverage for persisted technique statistics.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

# Conflicts:
#	doc/code/datasets/1_loading_datasets.ipynb
@richlundeen
Richard Lundeen (richlundeen) added this pull request to the merge queue Sep 22, 2026
Merged via the queue into microsoft:main with commit 1fe7725 Sep 22, 2026
49 checks passed
@richlundeen
Richard Lundeen (richlundeen) deleted the rlundeen2-plan-garak-injection-scenarios branch September 22, 2026 16:48
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.

3 participants