fix: block additional you-are-now jailbreaks - #127
Conversation
The enumerated injection matcher missed five attack-shaped continuations documented in phasespace-labs#126. Add each string to the committed corpus and widen only the existing you-are-now branch, preserving the safe technical-prose cases and the intentionally unchanged script, JavaScript URI, and system-prompt branches.
|
Two things about the rebase, both consequences of the release landing under you rather than anything First, the good news: I checked your matcher against the strings themselves rather than reading the Your changelog bullet needs to move up a section. You anchored it under the The fixture corpus gained six rows you don't have yet.
plus the three benign Sorry for the drip-feed — I said "rebase before opening the PR" when it had already been open two |
Closes #126
Why
PR #124 intentionally replaced the broad
you are nowmatcher with anenumerated set of attack-shaped continuations. Five concrete jailbreak forms
remained outside that enumeration, including the well-known
in DAN modeshape.
What changed
you are nowbranch to cover:uncensoredin DAN modeevil assistantadministratorable to bypass ... safety rules<script>,javascript:, andsystem prompt:patterns unchangedThe existing safe corpus is unchanged, including
You are now ready to run the migration.andYou are now a developer on the migration project.Verification
Red-first corpus run, before changing the matcher:
After the matcher change:
tests/test_injection_scanner.pyplustests/integration/test_security.py:57 passed
ruff check palinode/ tests/ scripts/bandit -r palinode/ -ll: no medium/high findingsgit diff --checkAI assistance disclosure
I used OpenAI Codex to inspect the issue and prior implementation, make the
focused code/test/changelog changes, and run validation. I reviewed the final
diff and test evidence before submitting this PR.