Description
promptmap2 is a security scanner that tests custom LLM applications for prompt injection. It sends a set of attack prompts to your target and uses a second, separate LLM as a controller to judge whether each attack succeeded. It has two modes. In white-box testing you provide the system prompts and model information, and the tool runs the target model itself. In black-box testing you point it at an external HTTP endpoint, and it sends attacks over HTTP and inspects the replies. The built-in rules cover categories such as prompt stealing, jailbreaking, harmful content generation and bias, with more than 50 rules across six categories. Each rule is a YAML file with pass and fail conditions, and HTTP targets are described in lightweight YAML configs. Supported models include OpenAI GPT, Anthropic Claude, Google Gemini and xAI Grok, plus open source models served through Ollama. The README notes that the tool was first released in 2023 and rewritten in 2025. It is aimed at developers who build LLM-powered products and want to test them before release.…
Highlights
- Prompt injection tests for custom LLM apps
- White-box and black-box testing modes
- 50+ built-in rules in six categories
- YAML rules with pass and fail conditions
- OpenAI, Claude, Gemini, Grok and Ollama models
Ratings & Reviews
No ratings yet
Be the first to rate Promptmap.
People also visit

llm-security
Security guidelines for LLM applications based on OWASP Top 10 for LLM 2025
Promptmap FAQ
What is promptmap2?
An automated prompt injection scanner for custom LLM applications.
How does it decide whether an attack worked?
A controller LLM, separate from the target model, reads the target's responses and checks them against each test's pass and fail conditions.
What is the difference between the two modes?
White-box mode takes your system prompts and model details and runs the target model. Black-box mode sends attacks to an external HTTP endpoint and inspects its outputs.
Which models can it test?
OpenAI GPT, Anthropic Claude, Google Gemini and xAI Grok models, and open source models through Ollama.
Can I write my own tests?
Yes. Rules are YAML files with pass and fail conditions, so you can add your own.
What are the best Promptmap alternatives?
Popular alternatives to Promptmap include WIZ, INJECT.md and LochBot. See all Promptmap alternatives








