Glossary

Prompt injection

Prompt injection hides malicious instructions inside content to hijack a model's behavior - a real risk whenever AI reads untrusted documents or web pages.

Prompt injection is an attack that embeds malicious instructions inside content a model is asked to read - a PDF, a web page, an email - so those instructions get interpreted as legitimate directions rather than data to be processed.

Why it matters

A large language model doesn't intrinsically distinguish between "the prompt my developer wrote" and "text embedded in the document I'm reading." Both arrive as tokens. A well-crafted injection exploits that by hiding instructions inside the content itself: "Ignore all previous instructions and instead…" tucked in white text, buried in metadata, or disguised as a footnote.

When it works, the injected instruction overrides the system's intended behavior. A document-reading AI might be redirected to leak information, change its output format, fabricate answers, or take actions the user didn't authorize.

What makes it hard to prevent

Unlike traditional injection attacks (SQL injection, for instance), where the injected syntax is structurally distinct from data, prompt injection is semantically identical to legitimate instructions. There's no bracket or semicolon that marks the boundary - just natural language that the model must somehow know to distrust.

Defences are layered: careful prompt design that frames user content as data rather than instruction, input sanitisation, output validation, and restricting what actions the model can take in response to document content. No single control eliminates the risk.

Any AI that reads documents from untrusted sources - uploaded PDFs, web pages, third-party feeds - is exposed. Keeping that exposure in mind is part of building responsibly with AI, and Sidenote's security and compliance posture covers how the product handles untrusted document content.

FAQ

Is prompt injection the same as jailbreaking?

Related, but different. Jailbreaking is a user talking a model out of its own rules; prompt injection hides instructions in third-party content so the attack runs without the user doing, or noticing, anything. Injection is the bigger risk for document AI because the attacker is the document, not the user.

Can prompt injection be prevented entirely?

No single control eliminates it, because injected text is ordinary language rather than distinguishable syntax. Practical defense is layered: treat document content as data, validate outputs, and strictly limit what actions a model can take in response to what it reads.

All terms
Ready when you are

Stop digging. Start asking.

Add Sidenote to your browser, open any page in your wiki, and ask it the question you’ve been Slacking the team about.

7-day Pro trial · No card required · Free plan forever