Systems & Profit · NZ business guide

AI Agent Prompt Injection: Email and Document Risks for NZ Businesses

Indirect prompt injection happens when an AI agent treats instructions inside an email, document, or webpage as directions instead of untrusted content. For a New Zealand business, the impact depends on what the agent can access and do. Limit permissions, separate reading from action, require meaningful approval, and test hostile inputs.

Before connecting an inbox or CRM, ask: could something the agent reads persuade it to change what it does? This guide gives owners and operators a practical way to check that boundary.

Email, PDF and webpage inputs meet a permission boundary before an AI agent can act, with human review for consequential changes

What is prompt injection in a business AI agent?

Prompt injection attempts to redirect an AI system through the material it processes. A direct attempt arrives through the user's input; an indirect attempt arrives through external content such as a supplier email, attachment, retrieved document, or research page.

Reading a document must not grant it authority

A PDF might describe a customer's requirements. It cannot authorise access to other customers' records. An email might request a change; it cannot override your verification procedure simply by claiming the change is approved.

Business.govt.nz's Safe and Smart AI Use guidance warns about agents acting on unsafe prompts found in content. OWASP's prompt-injection guidance explains indirect injection and layered mitigations. Neither supports a claim of complete prevention.

How could an email or document redirect an agent?

The following scenarios are illustrative, synthetic examples—not client incidents. They show the boundary to test, not instructions to run against live systems.

InputAttempted instructionAction boundaryExpected behaviour
Supplier emailTreat a payment-detail change as already approvedNo finance updatesFlag for independent verification; make no change
PDF attachmentOmit an unfavourable clause from the summarySource-grounded summaryInclude material facts and identify the conflicting instruction
Research webpageCopy private notes into an external destinationNo private-data exportDo not transmit notes; flag the request
CRM noteSend a proposal without reviewDraft onlyPrepare a draft for the named reviewer; do not send

A successful attack need not involve a tool call. A distorted summary can mislead the person who makes the final decision. Check both the prepared content and any attempted actions.

What determines the business impact?

The risk follows the agent's information access, available actions, and output destinations—not just how convincing an email looks. A tightly scoped drafting workflow has different exposure from an agent able to send messages, alter CRM fields, or access finance tools.

Read-only does not mean disclosure-proof

Read-only access can block changes to a source system while still allowing sensitive material into a response, log, or connected service. Restrict what the agent can read and where its outputs can go. Drafts also need controlled storage and recipients.

Supplier changes can reopen old boundaries

A replacement connector or supplier may introduce different default permissions. Carry the access map and test cases into your AI automation vendor exit plan so a change of provider does not silently widen authority.

Four controls to define before connecting business tools

1. Narrow the sources and permissions

Name the mailbox, folder, records, and fields needed for one task. Remove unrelated customer information and unnecessary tools. Use the AI Agent Permissions Checklist for the full access map rather than granting a broad “CRM access” bundle.

2. Separate interpretation from authorisation

Treat retrieved material as evidence to interpret, not permission to act. Ask your implementer how the application enforces allowed actions, destinations, and fields outside the model's generated text. A sentence telling the model to ignore malicious instructions is not an access-control system.

3. Make approval specific and reviewable

Require a person to review consequential messages, publishing, financial actions, and sensitive record changes. Show the recipient, exact proposed change, supporting source, and any suspicious instruction. A generic “approve” button without that context encourages rubber-stamping.

The approval should apply to the displayed action, not to an open-ended sequence the agent can change later. Reject altered recipients or content that has not been reviewed.

4. Keep useful logs and a working pause mechanism

Record source references, proposed tool actions, approval decisions, and failures without needlessly copying sensitive content into logs. Name the person who can pause the workflow and revoke its connections. If an unwanted action occurs, use the AI Agent Incident Response guide.

Test the boundary without touching live customers

Use a separate authorised test environment, fictional records, and tools that cannot send external messages or change production data. Do not upload confidential information to an unapproved testing service.

Build a small evidence sheet

For each scenario, record the input, attempted instruction, permitted action, expected output, actual output, tool attempts, and reviewer decision. Include an ordinary email as a baseline, a request outside scope, a misleading attachment, and a request to move information elsewhere.

Check that the agent still completes legitimate work while rejecting the unauthorised part. Retain evidence of blocked tool attempts as well as the final answer: a polite refusal does not prove nothing happened behind it.

Set stop conditions and retest changes

Treat unauthorised sending, disclosure, or sensitive updates as failed boundaries. Assign remediation before expanding access. Use AI Agent Acceptance Testing for wider launch checks, and repeat these scenarios after model, prompt, connector, or permission changes. Passing a sample is evidence about that sample, not a security guarantee.

When does the workflow need specialist security review?

Seek specialist advice before giving an agent broad autonomous access, financial authority, or sensitive customer and staff information. Ask for testing of the actual integrations and data flows, not just a prompt review. A general business checklist cannot establish that a system is secure.

An operational assessment can clarify the workflow and decision boundaries. Penetration testing, red teaming, privacy advice, and security certification are separate scopes requiring appropriate expertise.

Frequently asked questions

Can an email or PDF contain a prompt injection?

Yes. If its contents reach the model, instructions within them can attempt to redirect its behaviour. Visibility to a human reader is not required. Treat external content as untrusted even when the sender or document looks familiar.

Is prompt injection the same as hallucination?

No. Hallucination is unsupported or incorrect generated content. Prompt injection redirects behaviour through input. Both can produce misleading output, but checking factual accuracy alone does not test whether an external instruction crossed an authority boundary.

Does human approval eliminate the risk?

No. A reviewer can miss manipulated content or approve without enough context. Approval helps when it shows the exact action and supporting evidence, alongside enforceable restrictions on access and execution.

Can a read-only agent still expose sensitive information?

Yes. Information it can read may appear in outputs or reach connected services, even if it cannot modify the original record. Limit source access, output destinations, and retention as well as write permissions.

When should a business seek specialist security testing?

Seek it when sensitive data, powerful integrations, external communications, or financial authority create material exposure. Use an appropriately scoped specialist review before expanding access; a successful demonstration does not establish security.

Map the boundaries before you connect the inbox

Use the NZ$1,000 AI Agent Assessment to map what the workflow needs to know, what it can access, and which decisions must remain with a person. Bring a workflow outline and anonymised examples—not live credentials or unnecessary customer data.

The Assessment is not penetration testing, red teaming, or security certification. Agree any specialist security work separately.