#164 · Primary category: Cybersecurity & Decryption Tools
PromptInject
PromptInject is a framework that assembles prompts in a modular fashion to provide a quantitative analysis of the robustness of LLMs to adversarial prompt attacks. 🏆 Best Paper Awards @ NeurIPS ML Safety Workshop 2022
Project last updated:04/27/26
GitHub Stars
521
Forks
55
Contributors
1
License
MIT
Why we included this project
At some point, anyone running a customer-facing LLM has to wonder how easily a stranger can talk the model out of its instructions. PromptInject turns that worry into a measurable test: it builds base prompts from modular pieces, then feeds in malicious user inputs to exercise two attack families, goal hijacking and prompt leaking. Security engineers and red-teamers can reuse it to get a number for how robust their own system prompt really is to 'ignore previous instructions' style inputs, instead of trusting a gut feeling. The attacks come from a NeurIPS ML Safety paper, so the definitions are published research rather than ad hoc tricks. Do expect to adapt the code to newer models, since it was built around GPT-3-era APIs; treat it as the starting point for an ongoing evaluation harness rather than a plug-and-play tool.
Articles for this project
No articles for this project yet.
To suggest a topic or contribute an article, contact us.
Related projects in this category
reverse-skill
AI-powered skill router for reverse engineering, authorized penetration testing, and security research, with on-demand toolchain bootstrapping and self-evolving knowledge base.
gitleaks
Find secrets with Gitleaks 🔑
osquery
SQL powered operating system instrumentation, monitoring, and analytics.
NeoPass
Your Essential Exam Companion for the Iamneo Portal & NPTEL Exams Disguised as NeoExamShield bypass
anubis
Weighs the soul of incoming HTTP requests to stop AI crawlers