Join our Newsletter — 33% off our NHI Course

What breaks when an AI agent trusts content from email, calendars, or web pages too readily?

When an AI agent trusts untrusted content, attackers can inject instructions that hijack the agent’s workflow and steer it away from the user’s intent. This can lead to silent data theft, credential exposure, unauthorized sharing, and account takeover. The failure is an over-trust problem, where the agent treats hostile context as if it were legitimate user input.

Why This Matters for Security Teams

AI agents do not just read content, they act on it. When an agent is allowed to ingest email, calendar events, shared documents, or web pages, hostile text can be treated as if it were legitimate instruction. That turns ordinary business content into an execution path for prompt injection, workflow hijacking, and unauthorized tool use. The practical risk is not only bad answers, but bad actions taken with valid access.

NHIMG has documented how quickly exposed AI-related credentials attract abuse, including cases where attackers attempted access within minutes in LLMjacking: How Attackers Hijack AI Using Compromised NHIs. Similar patterns appear in content-driven incidents, such as the Gemini AI Breach — Google Calendar Prompt Injection, where trusted collaboration surfaces became a delivery channel for malicious instructions. Current guidance from the OWASP Agentic AI Top 10 and the NIST AI Risk Management Framework both point to the same issue: untrusted context must never be treated as trusted intent. In practice, many security teams encounter this only after an agent has already forwarded data, called a tool, or altered a workflow under attacker influence.

How It Works in Practice

The failure usually begins when an agent is connected to broad context sources and given enough authority to act without a second check. An attacker places instructions in an email body, calendar invite, web page, ticket comment, or file that the agent will later retrieve. Because the agent is optimized to follow context, it may merge hostile instructions with user intent and then execute them through connected tools.

That is why static role-based access is not enough for autonomous systems. The better pattern is runtime authorization that is aware of what the agent is trying to do, what source it learned it from, and whether the action matches policy. Best practice is evolving toward intent-based or context-aware controls, paired with just-in-time permissions and short-lived workload credentials. For identity, the agent should prove what it is with a workload identity primitive such as SPIFFE or OIDC-backed service identity, not by reusing long-lived secrets.

Practitioners usually reduce risk with a layered model:

  • Separate trusted user commands from untrusted retrieved content.
  • Label and sandbox external content before the agent can reason over it.
  • Require policy-as-code evaluation at request time for sensitive actions.
  • Use ephemeral, task-scoped secrets that expire after completion.
  • Limit tool reach so the agent cannot freely chain low-risk inputs into high-risk actions.

NHIMG’s research on the OWASP NHI Top 10 and CoPhish OAuth Token Theft via Copilot Studio shows how quickly tool-enabled agents can be redirected once they trust attacker-controlled context. These controls tend to break down when the agent has broad mailbox, calendar, or browser permissions because a single poisoned item can be replayed across multiple steps before humans notice.

Common Variations and Edge Cases

Tighter content filtering often increases friction, so organisations have to balance usability against the risk of prompt injection. That tradeoff is especially visible in knowledge-worker assistants, where overblocking can degrade adoption and underblocking can expose sensitive workflows.

There is no universal standard for this yet, but current guidance suggests treating different content sources differently. Internal policy documents may be moderately trusted, while email bodies, meeting invites, and public web pages should be assumed hostile until verified. Some teams also miss the fact that calendar data can be weaponized even when the message text looks harmless, because the dangerous part is the instruction hidden in metadata or embedded notes.

Another edge case is multi-agent orchestration. If one agent ingests content and another agent acts on its output, the trust boundary becomes harder to see and easier to bypass. The safest pattern is to preserve provenance, retain source labeling, and require a policy decision before the downstream agent can spend credentials or share data. This aligns with the direction of CSA MAESTRO agentic AI threat modeling framework and the NIST AI Risk Management Framework. In blended environments with browser access, shared inboxes, and delegated approvals, the guidance breaks down because the agent can inherit trust from one surface and spend it on another before any control sees the full chain.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Agentic AI Top 10, CSA MAESTRO and OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST AI RMF and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Agentic AI Top 10 A2 Prompt injection and tool hijack are core agentic risks.
CSA MAESTRO TA-03 Covers agent trust boundaries and unsafe action execution.
NIST AI RMF GOVERN Addresses accountability and oversight for AI system behavior.
OWASP Non-Human Identity Top 10 NHI-04 Relevant to secret exposure and unauthorized use by agents.
NIST Zero Trust (SP 800-207) PR.AC-4 Zero trust limits implicit trust in content and connected tools.

Assign ownership for agent decisions and require escalation paths for unsafe content-driven actions.