Indirect Prompt Injection

Inject instructions via external content that the LLM retrieves and follows.

What you practise

Inject instructions via external content that the LLM retrieves and follows. You run the attack yourself on a live model in a private sandbox set up for you, then capture the flag. Nothing to install and no API key.

Indirect injection: the attacker isn't the user

Direct prompt injection assumes the attacker is the one talking to the model. Indirect injection breaks that assumption, the attacker plants content somewhere the model will later read on behalf of a legitimate user. Emails, calendar invites, GitHub issues, Slack messages, web pages, PDFs in Drive, anywhere an LLM might autonomously read becomes an injection surface. The victim of the attack is whoever asks the assistant to summarize the poisoned content.

Where this has happened

  • Greshake et al. 'Not what you've signed up for' (Feb 2023): The paper that named indirect prompt injection, demonstrated against Bing Chat reading attacker-controlled web pages and changing its behavior toward the user.
  • GitHub Copilot Chat (2024): Researchers showed that comments in source files could redirect Copilot Chat, opening any repo with poisoned comments became an attack surface.
  • Google Gemini in Gmail (2024): Demonstrated that an attacker emailing you could plant instructions Gemini would later follow when you asked it to summarize your inbox, no click required.

Sign in to launch this lab Learn the theory in the Academy

More Knowledge & Retrieval labs

Attack labs

20 hands-on scenarios across 4 tracks. Pick a target, launch a private sandbox, capture the flag.

Active sessions

Resume a running lab or stop it before starting the next one.