3 ms·
Is there any open source solutions for this? I would like to scan user inputs before they reach the LLM part of a project I’m working on.
by VladVladikoff 9mo ago
Is there any open source solutions for this? I would like to scan user inputs before they reach the LLM part of a project I’m working on.
- CuriouslyC 9mo agoya, you can use the tool directly.https://github.com/sibyllinesoft/scurl https://github.com/sibyllinesoft/scurl. I haven't factored the prompt injection out for use without curl but if there's interest I suppose I could hack it out quickly enough.
- VladVladikoff 9mo agoAwesome! Thank you so much!
- simonw 9mo agoYour regular expressions here only cover English: https://github.com/sibyllinesoft/scurl/blob/5b5bc118dc47b1385eb02ffaa8415b550350bf1a/src/scurl/prompt_defender/patterns.py#L8 https://github.com/sibyllinesoft/scurl/blob/5b5bc118dc47b138... Prompt injection strings can use any language the model knows, so "ignore previous instructions" could become "ignorer les instructions précédentes" or "تجاهل التعليمات السابقة" or "aurreko argibideak alde batera utzi" or "忽略之前的指令"...
- CuriouslyC 9mo agoThanks for the heads up.