Module: 3/4
Lesson: 3/5
Exercises:
Module 3 | Lesson 2

Prompt Injection in Tools You Use

AI Document Summarizers

Tools that process uploaded PDFs, Word documents, or web pages can be manipulated by content in those documents. Here's what makes this particularly dangerous: a malicious document could contain text that's effectively invisible to human readers — white text on white background, text the same color as the background, tiny font sizes, text hidden in image alt attributes or metadata.

An attacker could create a PDF that looks like a legitimate business contract but contains hidden injection instructions throughout. When you upload it to an AI summarizer expecting a summary of the terms, the AI processes both the visible contract text and the hidden instructions. The injection instructions could tell the AI to summarize the document incorrectly, omit critical clauses, claim the contract includes terms it doesn't, or recommend you sign without reading carefully.

What to do: for documents with important implications — contracts, financial documents, anything that commits you to action or expenditure — read the source document, not just the AI summary. Use the AI summary as a starting point, but verify critical information against the original. This habit is especially important for documents from unfamiliar sources.

🔒

This lesson is premium

Get full access to AI Security Essentials — all modules, all lessons, lifetime access.

Already purchased? Sign in to restore access.