The attack library
255 documented attacks on AI agents, assistants and MCP connectors, across 19 techniques. Each page explains what the attacker does, why it works, what BotSting counts as proof, and what to change in your system.
Four kinds of failure
Every attack in the library aims at one of four outcomes. Each has its own setup, its own evidence and its own fix.
Data disclosure
Secrets and instructions talked out of the model
Cross-user access
One user reaching another user's records
Unauthorized actions
A tool run for someone with no right to cause it
Planted text
Indirect prompt injection through content the agent reads
Nineteen techniques
A technique is the method of persuasion. The same technique often serves several ends: impersonation is used to extract a secret, to reach another user's record, and to trigger a refund.
Broken access control
The attacker asks, as one user, for a record that belongs to another.
Delimiter spoofing
The attacker imitates the markers a system uses to separate instructions from data.
Direct request
The attacker simply asks for the protected thing.
Encoded exfiltration
The attacker asks for the content in an encoding: base64, hex, reversed text.
False memory
The attacker refers to an agreement, a permission or an earlier conversation that never happened.
Format coercion
The attacker asks for the protected content in a structured form: JSON, a table, a configuration file.
Impersonation
The attacker claims to be someone with authority: a manager, an administrator, a developer, the account's owner.
Instruction override
The attacker tells the model to disregard its instructions and follow new ones.
Planted fake system message
Planted content dressed up as a message from the system, the developer or the platform.
Planted instruction
A plain instruction, addressed to the assistant, left in content the assistant will read.
Planted instruction override
Planted content that tells the assistant to drop its instructions and follow the content.
Planted task framing
Planted content that presents the attacker's goal as a step in the user's own task.
Pretext
The attacker wraps the request in a plausible story that makes compliance look reasonable.
Prompt extraction
The attacker asks the model to repeat, summarise or continue its own instructions.
Refusal suppression
The attacker forbids the model from refusing, apologising or explaining.
Roleplay
The attacker asks the model to play a character, write a story or run a simulation in which the protected thing is revealed or done.
Split across turns
The attacker takes the content in pieces, or builds up to the request over several messages.
Translation
The attacker asks for the protected content in another language.
Urgency
The attacker applies pressure: an emergency, a deadline, a threat of harm if the model does not act now.
Where the attacks come from
Every attack names its source, and the library refuses to load if a source's record is incomplete.
| Source | Licence | Attacks |
|---|---|---|
| Written for BotSting | Apache-2.0 | 220 |
| Built into the scanner | Apache-2.0 | 21 |
| PromptInject templates | MIT | 8 |
| AgentDojo injection templates | MIT | 3 |
| promptfoo example prompts | MIT | 3 |
A public collection is used only if its licence allows commercial reuse. Its texts are kept as published, and each change is recorded.
How to use the library
- As a test
- The scanner runs every attack that applies to your system and reports the ones that were proven. Quickstart
- As a design review
- Read the four kinds of failure before you build. Each page ends with what to change, and most of the changes are cheap at design time.
- As a floor, not a ceiling
- A fixed list shows that known wordings fail. The AI red team writes new attacks for your system.