Skip to content
isaacbitran/english-net·Indexed by this site · Originally published· Tools →

English Net: a prompt injection detector using English yes/no questions as neurons

AI summary

The author open-sourced English Net, a prompt injection detector whose neurons are whether an English question is asked; 7 questions are answered by TypeSafe AI's non-generative judgment model Jev in a single API call, and a logistic regression layer outputs an attack probability. Without retraining, adding one question about passwords raised the catch rate for previously missed password-theft attacks from 40.8% to 70.4%, at the cost of 13 new false positives among 2731 benign texts; a control on the same locked data showed that fine-tuning ProtectAI DeBERTa v2 raised the catch rate to 83.5%, but added 122 false positives and turned 13 previously caught attacks into misses. The questions were proposed by Claude over multiple rounds of search from training errors and adversarial attacks; each judgment lists the questions that contributed, and the model is a JSON file. Limitations listed by the author include ranking scores tying with a single-question baseline on unseen data, and a lower catch rate on multilingual attacks than the single-question baseline (77.7% vs. 87.5%).

Read originalgithub.com