News for hackers. Stuff that matters.
Re:Show HN: Rgx.tools – Generate Regex from Text Using GPT by themendelson on Thursday April 11, 2024 @09:33AM (#40001966)
haha

I'm using a private package I built for safely parsing GPT responses. chances are you did spill its guts, but if the parser doesn't recognize the pattern, you won't see the response :)

Re:Show HN: Rgx.tools – Generate Regex from Text Using GPT by barfbagginus on Saturday April 13, 2024 @03:43AM (#40021292)
That's fantastic! Sounds like you're generating until the regex parses the input. This eventually works against my attack, because no jailbreak is 100% successful. It will eventually generate an accepting regex.

Given this information, I have a new attack hypothesis: To succeed, an attack must yield a regex that

a) parses the original attack statement

b) also contains the system prompt

So it would be a kind of bizarre Attack Quine! Fascinating!

I'll give the approach a try, and report the results!

P.S. If you're interested in open sourcing you sanitizer, let me know and I'll contribute some code janitor work and some redteam/blueteam work.

Thank you for sharing your work and insight!