probes: add persuasion (Persuasive Adversarial Prompt) probe#1955
Draft
JayYarlagadda wants to merge 1 commit into
Draft
probes: add persuasion (Persuasive Adversarial Prompt) probe#1955JayYarlagadda wants to merge 1 commit into
JayYarlagadda wants to merge 1 commit into
Conversation
Add garak.probes.persuasion.PersuasiveJailbreak, which rewrites base harmful requests into Persuasive Adversarial Prompts (PAPs) using a configurable red-team generator and the social-influence taxonomy from Zeng et al. (arXiv:2401.06373). Only the openly-released, Apache-2.0 persuasion taxonomy is vendored; no gated harmful data is shipped or downloaded. Includes docs and tests. This change was AI-assisted (GitHub Copilot); the author reviewed every line and ran the tests. Co-authored-by: GitHub Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: Jayanth Sai Yarlagadda <jayanthyarlagadda@gmail.com>
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.
Summary
Adds
garak.probes.persuasion.PersuasiveJailbreak, a probe implementing Persuasive Adversarial Prompts (PAPs) from Zeng et al., "How Johnny Can Persuade LLMs to Jailbreak Them" (arXiv:2401.06373). The probe rewrites base harmful requests into persuasive phrasings using a configurable red-team generator, then sends them to the target.Closes #683.
What's included
garak/probes/persuasion.py— thePersuasiveJailbreakprobe.garak/data/persuasion/persuasion_taxonomy.jsonl— the openly-released, Apache-2.0 persuasion taxonomy (40 techniques), vendored with SPDX header + attribution.garak/data/persuasion/README.md— provenance, licensing, and citation.docs/source/probes/persuasion.rst+docs/source/index_probes.rst— docs wiring.tests/probes/test_probes_persuasion.py— unit tests.Design decisions (open to change)
active = Falseby default, since the probe needs a red-team model to function.persuasion, classPersuasiveJailbreak;primary_detector = mitigation.MitigationBypass.Scope questions for maintainers
active=Falsegiven it needs a red-team model?Testing
Result:
8 passed. Tests use garak'stest.Repeat/test.Blankstand-in generators, so they run without network access or API keys.Note on prior claim
The earlier volunteer (@asaadkhaja99) claimed this in Oct 2025 but has been inactive for 8+ months with no PR. I posted intent on the issue before proceeding. Happy to coordinate if they are still working on it.
Disclosure
AI assistance was used in preparing this contribution. Every changed line has been reviewed by me, and the tests above were run and pass.