What is prompt injection?

Analytics & measurement

What is the difference between direct and indirect prompt injection?

Direct injection is a person typing instructions meant to push the model off its job.

Indirect injection comes from external content. OWASP gives web pages and files as examples of where it can sit1. The AI tool reads the page or file as data. It may treat a sentence in it as an instruction.

Why does prompt injection matter for MCP tools and marketing data?

AI tools can be connected to ad accounts, analytics and spreadsheets. Through a connector built on the Model Context Protocol, an assistant can read reports and, depending on the setup, act on them.

Everything the assistant reads is input. A product review, a customer email, a supplier file or a web page can carry text written by someone else. If the tool has permission to change things, hidden instructions in that text become a risk to your account.

The size of the risk depends on what the tool is allowed to do. A read-only connector can expose less than one that can edit budgets. That is why the permission scope matters more than the brand of the tool.

Can prompt injection be fully prevented?

OWASP notes that it is unclear whether any method fully prevents prompt injection1. So the practical answer is to limit damage. OWASP's mitigations include least-privilege access, human approval for high-risk actions and keeping external content separate and marked1. In practice: give the tool the smallest access it needs. Keep a human in the loop who can approve or reject actions before they happen. Do not let one tool read untrusted content and act on money in the same step without review.

For a wider view of where AI helps and where it fails on marketing data, read what an AI analyst gets right and wrong.

For ZFD: Our view is that an AI tool with write access to ad accounts needs a person approving its actions.

Easily confused with

  • Prompt injection vs A bug or a wrong answer

    A model can be wrong without anyone attacking it. Injection means someone placed instructions in the input.

  • Prompt injection vs A hack of the AI vendor

    Injection works through the content the tool reads, not by breaking into the vendor's systems.

FAQ

A rider in a red cape and bicorne hat on a rearing yellow plush horse, after David's Napoleon Crossing the Alps

Is prompt injection only a risk for developers?

No. Anyone who connects an AI tool to accounts or files that other people can write into shares the exposure.

Does a read-only connection remove the risk?

It limits what the tool can change. It does not remove the need to review what the tool can reach.

Let’s find what’s actually working.

Next step. Been pitched an AI tool and not sure what it does? Talk it through with us.