Skip to content

Bug class · Intermediate

AI and LLM vulnerabilities

Prompt injection, data exfiltration and tool abuse in features built on language models, and the ordinary bugs around them.

median public bounty
$6,000

Covers CWE 1427.

How it works

Full lesson

The pattern behind every report in this class.

This lesson covers vulnerabilities in AI assistants, large language models and the surrounding plumbing: chat front ends, retrieval pipelines, agent memory, coding agents, model gateways and hosting platforms. The core theme is that model output and model input are both untrusted, yet products often treat them as safe. Programs care because these features sit close to private data, internal tools and user sessions, and a single flaw can turn a helpful assistant into a data exfiltration channel or a remote control for an agent.

In practice these issues most often lead to prompt injection that bypasses guardrails, leaks internal data or secrets, or drives an agent to take actions the user never asked for. They also lead to classic web bugs appearing in new places: cross-site scripting through chat rendering, missing authentication on assistant APIs, object-level authorisation gaps that expose other users' conversations, and server-side request forgery through URL fetchers and custom actions.

You will find this in chat assistants with URL preload parameters, memory notes and image inputs, in self-hosted LLM gateways and proxies, in model and dataset hosting platforms, in browser-integrated assistants that read page and tab content, in the APIs behind assistants, and in chatbot websocket endpoints. Coding agents and review bots that read issues, comments, merge requests and patches are another rich area.

The evidence base here is broad but shallow in places: many reports, few with summaries, and only one recorded as paid. Treat the patterns as leads to verify rather than confirmed universal bugs, and always check the target's scope and rules before testing.

Things to try

All 181

Each line worked in a disclosed report. Test only what a program's scope allows.

Guardrail evasion and obfuscation 18

  • Try role-play framing and partial compliance to bypass LLM guardrails.
  • Test guardrails with transformed or obfuscated inputs.
  • Use invisible characters to hide prompt injection in content an agent reads.
  • Probe a chatbot's safety filters with task-framed and role-framed prompts and record which framings get through.

AI coding agents and command execution 16

  • Inject instructions to reach arbitrary command execution through an AI coding agent.
  • Hide a prompt injection in content that Amp Code processes and check whether arbitrary command execution follows.
  • Inject instructions into content an LLM-powered terminal app processes and check whether it can hijack the terminal.
  • Inject instructions into content a coding agent reads and check whether it executes arbitrary commands.

Direct prompt injection and jailbreaks 15

  • Use a summarise feature as an entry point to reach a full jailbreak.
  • Put a prompt into a chat-preload URL parameter and check whether the assistant runs it as if the victim typed it, then see if it will fetch an image from a host you control with data in the path.
  • Send a single crafted link to an assistant and check whether it can be made to act against the victim's private chats or data.
  • Test Gemini for prompt injection that leaks source code.

LLM-assisted security research 13

  • Use a model to draft XSS proof-of-concept write-ups and verify the output manually.
  • Use an LLM to generate test cases and check where it actually helps versus where it misleads.
  • Use language models to find and exploit kernel bugs, then check the results.
  • Use AI models to find security bugs and then check whether they can tell when a fix is correct.

Chatbot message rendering and XSS 11

  • Test chatbot message rendering and HTML handling for cross-site scripting.
  • Combine a postMessage misconfiguration with AI prompt injection and a sandbox escape to reach XSS and data exfiltration.
  • Check whether LLM output rendered as markdown can be abused for prompt injection or link-based exfiltration.
  • Chain prompt injection with SSRF and XSS for greater impact.

Bypasses and variations

  • Task-framed and role-framed prompts get past safety filters that block direct requests.
  • Using Python-style slice notation on email addresses in model instructions evades the sensitive information filter.
  • Lockdown mode can be bypassed for phishing, malware delivery and silent exfiltration.
  • Anti-jailbreak defences can be got around with varied framings.

Typical fixes

  • Treat model output as untrusted and sanitise it before rendering or executing it.
  • Isolate caches and shared context per request and per account.
  • Do not treat text supplied in a URL as a genuine user query, and apply guardrails to task-framed instructions such as those in a chat preload parameter.
  • Apply the same guardrails to notes written from untrusted content as to core memory, and do not re-inject them without checks.

Tips for beginners

All 14
  • Start with the scope and the product's own documentation. Identify which AI features are in scope, then map the flow: what content reaches the model, what tools it can call, and where its output is rendered. Many reports fail because the feature or the impact was out of scope.
  • Test the simplest injection first: put instructions in content the assistant reads, such as a comment, issue, email, transcript or page, and see whether it follows them. Record exactly what changed in behaviour so you can show impact rather than just a strange reply.
  • Try task-framed and role-framed wording when direct requests are blocked. Vary the framing and note which ones get through, because guardrails are often inconsistent.
  • Look for persistence. If the assistant has memory or notes, check whether untrusted content can write into it and whether those notes are re-injected later with fewer checks. Persistence turns a one-off injection into a durable issue.
  • Check what the agent can do, not just what it says. If it can run commands, fetch URLs, read files or call tools, try to show a concrete consequence such as a secret leaving the environment or an internal address being reached. Keep it minimal and safe.
  • Treat model output as untrusted input and test downstream consumers. Look at how chat renders markdown, links and HTML, and whether output can become script execution or a link-based exfiltration path.

Start here: a reading path

Open the path

Clear reports in order, easiest first.

Guides and techniques

View all

The best explainers, cheat sheets and technique posts on AI / LLM, from around the web.

Newest reports

All 262

Most recently disclosed.

New AI / LLM reports by email

Follow AI / LLM and get each week's new disclosures in one short email.

Free. New reports for what you follow, weekly by default. One-click unsubscribe. Privacy