AI red teaming & LLM evaluation

promptmap: open-source prompt injection scanner

promptmap is an open-source prompt injection scanner from utkusen. It is released under the GPL-3.0 license and is offered as: CLI, Self-hosted.

  • Last reviewed
Open sourceGPL-3.0 Layer 4: Testing and red teaming

Best for

  • Developers who want a free command-line scanner that checks their own system prompt or HTTP chatbot against prompt injection rules before release
  • Teams that put a guard LLM in front of their main model and want to see which injection rules still get past it

Consider instead if

  • You also want probes for hallucination, data leakage and toxicity in one scanner. See garak.
  • You need multi-turn attacks, payload-transforming plugins or your own seed datasets, for example to test data exfiltration through injection. See Spikee.

What promptmap does

promptmap answers a narrow question: does the system prompt behind your own LLM app hold up against injection? First released in 2023 and rewritten in 2025, it takes either the system prompt and model (white-box) or a YAML description of an HTTP endpoint (black-box) and fires more than 50 YAML rules in six categories, from distraction and prompt stealing to jailbreak, hate and bias. A second LLM, the controller, judges each reply. The README warns that a weak controller gives false positives and negatives, so results are only as good as the judge model you pay for. A firewall mode checks a guard LLM placed in front of your main model. Spikee adds multi-turn attacks and payload plugins that this README does not list, and garak covers more risk types. GPL-3.0, with no tagged releases.

This summary is our own wording of the sourced facts on this page.

Key facts

Each value links to the page that states it, with the date we checked it.

Latest release
Not documented in the sources we checked
API reference
Not documented in the sources we checked
Quickstart
Not documented in the sources we checked
Security page
Not documented in the sources we checked
Attestations or disclosure
Not documented in the sources we checked

Capabilities

As documented by the vendor or project. The tag is our label from a controlled vocabulary.

Integrations

Where promptmap fits in our AI security layers

Our analysis

Our editorial model, not a standard. The primary layer follows the category, except for tools whose main documented job is detection and response; other layers rest on a capability the sources document. How the model works.

AI security layers that promptmap covers, with the role, how each applies and what it rests on
LayerRoleHow it appliesBased on
L4 Testing Testing and red teaming Primary Attack and evaluate models, apps and agents on purpose, before release and after every change, to find what the other layers miss. Follows its category, AI red teaming & LLM evaluation

OWASP LLM Top 10 mapping

Our analysis

The risk list is OWASP's (Top 10 for LLM Applications, 2025). The mapping is our analysis, and each row rests on a capability the sources document.

OWASP LLM risks mapped to promptmap, with the capabilities each mapping rests on
RiskHow it appliesBased on
LLM01 Prompt Injection Runs prompt injection and jailbreak rules against a target application. Scans custom LLM applications for prompt injection, including distraction rules; Includes jailbreak rules; Firewall mode tests a guard LLM placed in front of the primary model against the same rules, with a pass condition you set
LLM07 System Prompt Leakage Runs prompt stealing rules that try to extract the system prompt. Includes prompt stealing rules that try to extract the system prompt

Alternatives and related tools

More in AI red teaming & LLM evaluation, ranked within the category by Coverage Score.

garak

NVIDIA

Open sourceApache-2.0
  • CLI
  • Library
  • Self-hosted

Probes language models and LLM apps for prompt injection, jailbreaks, data leakage and more.

Best for: Teams that want a free command-line scanner they can point at any model or LLM endpoint before release

Coverage Score 82 out of 100
  • LLM01 Prompt Injection
  • LLM02 Sensitive Information Disclosure
  • LLM09 Misinformation

Reviewed

Giskard

Giskard AI

Open sourceApache-2.0 Freemium
  • Library
  • Self-hosted
  • SaaS
  • On-prem

Generates adversarial test suites for LLM agents and RAG apps, runs them and reports failures by threat type.

Best for: Python teams that want a free library to scan an LLM agent or RAG app for prompt injection and harmful output, and to write pass or fail checks for it

Coverage Score 81 out of 100
  • LLM01 Prompt Injection
  • LLM02 Sensitive Information Disclosure
  • LLM09 Misinformation

Reviewed

Promptfoo

OpenAI (Promptfoo)

Open sourceMIT Freemium
  • CLI
  • Library
  • Self-hosted
  • SaaS
  • On-prem

Runs evals and red team scans against LLM apps from a CLI or CI pipeline and writes a vulnerability report.

Best for: Developer teams that want one open-source CLI for both prompt evals and red teaming, run locally and in CI

Coverage Score 80 out of 100
  • LLM01 Prompt Injection
  • LLM02 Sensitive Information Disclosure
  • LLM09 Misinformation

Reviewed

promptmap FAQ

Is promptmap open source?

Yes. promptmap is released under the GPL-3.0 license, and the code is on GitHub at utkusen/promptmap.

What does promptmap test for?

The README lists six rule categories: distraction, prompt stealing, jailbreak, harmful content, hate and social bias, with more than 50 pre-built rules.

How does promptmap decide whether an attack worked?

A separate controller LLM analyzes the target's responses and judges each attack against pass and fail conditions written in the YAML rule. The README warns that weaker controller models can give false positives or negatives, so use a strong model as the controller.

Can promptmap test a prompt injection firewall?

Yes. Firewall mode sends the rules to a guard LLM placed in front of your primary model, with a pass condition you set, so you can see which attacks the firewall lets through. Each attack is tried three times by default.

Key facts you can cite

We have no commercial relationship with utkusen.

Sources & last reviewed

Last reviewed . We compile from the vendors' own public pages and repositories and we do not run the products. Source links open in a new tab. Found a mistake? Report a correction.