Sun, Jul 12, 2026NY 8:00 PM EDTLA 5:00 PM PDTLON 1:00 AM GMT+1PAR 2:00 AM GMT+2DXB 4:00 AM GMT+4SIN 8:00 AM GMT+8TOK 9:00 AM GMT+9SYD 10:00 AM GMT+10UTC 12:00 AM UTCPayment alerts updated guide pathsScam watch official links firstConsumer alertsSupport-scam watchMoney help deskHow-to guides
Strangely Useful

Payment problems, online safety, browser privacy, AI tools, and everyday tech choices.

Browse the site
Topic hubsFake support guideWrong Cash App paymentLatest storiesTopicsPayment helpSearch
All sections
Internet & CultureTech & AISecurity & TrustPractical TechnologyMoney & PaymentsBrowser & PrivacyAI ToolsSoftware & ServicesInternet Culture & Everyday WorkflowsHidden HistoryUseful ThingsEntertainmentQuizzesAboutHow we workHow guides are madeFollow by RSS
AI Tools - story

Prompt Injection Is the Phishing Problem Inside an AI Agent

Treat every page, email, file and image as untrusted input. Limit the agent's tools, validate its outputs and confirm the raw details before high-impact actions.

By Strangely Useful EditorsReviewed by the Strangely Useful AI Tools deskPublished July 12, 2026Updated September 20, 20263 sources6 min read
Quick answer

Prompt injection hides instructions in content an AI tool reads. Limit permissions, separate untrusted text, and require confirmation before risky actions.

An AI agent reading untrusted content while sensitive tools remain behind a permission boundary
Untrusted content can influence an AI agent, so actions need separate permission and verification controls. Illustration by Strangely Useful.
In this story9 sectionsDirect and indirect attacksReduce the blast radiusWhen browsingSeparate reading from actingConfirm with raw detailsLogs should support investigationDesign for a successful injectionPut the confirmation outside the attacker's reachTest the boundary, not a blacklist

Prompt injection occurs when untrusted content tries to redirect an AI system's behavior. In an agent, the instruction may hide in a webpage, email or document. The defense is not one clever prompt; it is limiting authority.

Direct and indirect attacks

Direct injection comes from a user. Indirect injection arrives inside outside content and may tell the model to reveal data or call a tool. Language models process instructions and content through related channels, making perfect separation difficult.

The UK NCSC warns prompt injection may be enduring rather than fixed like a normal bug. OWASP ranks it as a leading LLM risk.

Reduce the blast radius

  • Connect only required tools.
  • Prefer read-only access.
  • Confirm sends, purchases, deletions and publishing.
  • Keep secrets outside reachable context.
  • Review the actual tool call and destination.

When browsing

Assume pages can contain adversarial instructions, including visually hidden text. Do not let a research task inherit email and payment authority.

Stop unexpected behavior

Interrupt objective changes, unrelated logins or transmission attempts. Revoke tokens if an action escaped.

Untrusted content should not gain authority because it writes convincing instructions. Keep authority in permissions and confirmations.

Separate reading from acting

A strong workflow uses one stage to inspect and summarize untrusted content and another, separately authorized stage to act on the result. The reading stage should not hold send, delete or payment permissions. If an action is needed, transfer only the verified facts required for that action.

Confirm with raw details

A confirmation screen should show the actual recipient, destination URL, amount, file and operation. A sentence such as everything looks good is not enough because it may repeat the model's mistaken interpretation. Compare those fields with the user's original request.

Example: processing an email

An email can contain hidden instructions telling an assistant to forward attachments elsewhere. The safe agent can summarize the message, but it should draft—not send—a reply. A person then checks the address, attachments and text. The malicious instruction remains data rather than becoming authority.

Logs should support investigation

Keep a record of retrieved sources, tool calls, permission changes and confirmations for important runs. The log should avoid secrets while preserving enough detail to explain what the agent saw and did. When an incident occurs, this makes it possible to distinguish a model error from malicious page content or an overly broad integration.

For recurring workflows, seed tests with harmless hostile instructions and confirm the agent refuses them without losing the legitimate task. Re-run those tests whenever the model, browser connector or permission set changes.

Design for a successful injection

OWASP's current LLM01 guidance says prompt injection can arrive directly or through external content such as websites, files and images. Retrieval and fine-tuning do not fully remove the risk. The practical question is therefore not only whether an instruction can be detected, but what the agent could do if it follows one.

Give the model the minimum tools and data needed for the current task. Keep privileged operations behind deterministic code, restrict destinations and parameters, and validate structured outputs before they reach a tool. An agent that reads an untrusted email should not silently inherit the ability to send its contents, change permissions or spend money.

Put the confirmation outside the attacker's reach

For a sensitive action, show the actual recipient, destination URL, amount, file and operation in a trusted interface. The confirmation should be generated from the pending tool call—not from prose the model wrote after reading untrusted content. Require a fresh approval when any material field changes.

NCSC guidance warns that current language models do not enforce a dependable boundary between instructions and data. OpenAI similarly recommends constraining the impact of manipulation even when filtering or model training misses an attack. These controls reduce exposure; they do not make arbitrary untrusted content safe.

Test the boundary, not a blacklist

Seed harmless hostile instructions into webpages, documents, email bodies and images, then verify that the legitimate task still completes without unauthorized tool use or data transmission. Re-run those tests when the model, connector, tool permissions or confirmation flow changes. Log source retrieval, tool calls and approvals without recording secrets so an unexpected action can be investigated.

Sources used3 sources checked for this guide
  1. LLM01:2025 Prompt InjectionOWASP Gen AI Security Projectofficial-guidance - Retrieved Sep 20, 2026 - record checked

    Used forOWASP LLM01:2025 describes direct and indirect prompt injection and says retrieval and fine-tuning do not fully mitigate it. - OWASP recommends least privilege, deterministic output validation, human approval for high-risk actions and adversarial testing.

  2. Prompt injection is not SQL injection (it may be worse)UK National Cyber Security Centreofficial-guidance - Retrieved Sep 20, 2026 - record checked

    Used forNCSC says current LLMs do not enforce an inherent security boundary between instructions and data. - NCSC recommends deterministic safeguards that constrain actions and treating prompt injection as residual risk.

  3. Designing AI agents to resist prompt injectionOpenAIofficial-guidance - Retrieved Sep 20, 2026 - record checked

    Used forOpenAI recommends constraining the impact of manipulation even when some prompt-injection attacks succeed.

Guide feedback

Was this guide useful?

No personal details are collected here. Use corrections for factual issues.