Jailbreak-Test Your Own App: Eight Wrappers, Counted
My bot refused a plain question, then answered four of eight wrapped versions of it.
Video #89 ยท AI security and governance
Steps in the video
Files
- attacks.py (16 lines)
- bot.py (22 lines)
- compare.py (10 lines)
Tested with
Python 3.12.15 | ollama==0.6.3
What this does not show
One bot, one harmless off-topic question, eight wrappers I wrote, one seed and one small local model (llama3.2); success is the single word Paris in the reply; no real cooking question was sent, so the cost of the check is not measured.
Sources
Learning IT by Example.