Index / Computing / Database and network design and administration
Prompt Injection Defender
Space · aruuuuuuuu/prompt-injection-env
Act as a security filter that detects, classifies and sanitises prompt injection attacks in messages sent to a downstream assistant.
Good for
- LLM security filter training
- multi-turn attack detection
Reward
- How it is scored
- Mixed
- Signal
- Graded, 0 to 1
Partial-progress scoring; the hard task is graded by an LLM judge and the card gives no further formula.
How to run it
1. From the cardcopied from the publisher's own instructions
curl -X POST https://aruuuuuuuu-prompt-injection-env.hf.space/baseline
2. Run the Space locallyevery Space is a Docker image or app you can clone
git clone https://huggingface.co/spaces/aruuuuuuuu/prompt-injection-env cd prompt-injection-env
The Space also runs live on the Hub; open it to see the API it serves.
Framework documentation: OpenEnv. Needs: API key for the baseline model.