Remix.run Logo
VladVladikoff a day 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 a day ago | parent [-]

ya, you can use the tool directly.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.

simonw a day ago | parent | next [-]

Your regular expressions here only cover English: 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 21 hours ago | parent [-]

Thanks for the heads up.

VladVladikoff a day ago | parent | prev [-]

Awesome! Thank you so much!