Skip to content

Interview question · Guardrails, Identity & Policy

An email the agent reads tells it to forward every invoice. What stops it?

Assume the model may follow it. What stops the harm is structural: the email is labelled as data, the task's tools cannot forward in bulk, recipients come from the system, and a run that read untrusted mail needs a person before anything goes out.

mediumEssentialNewUpdated Nov 2026

TL;DR: Plan for the model following the instruction sometimes, and make following it harmless. The email is labelled as untrusted content. The task (triage the inbox) exposes no bulk-forward or free-recipient send tool. Any send uses recipients from an allowlist or the original thread, never addresses the model extracted. Because this run has read untrusted content and can see invoices, any outbound action needs approval. Outbound checks block attachments to new external addresses, and monitoring flags the attempt.

How to approach it

Name the attack plainly (instructions arriving inside data), say why prompt-level defences are not enough, then walk the layers in order from what the model sees to what leaves the system.

A strong answer

Why "tell the model to ignore it" is not enough. Model training and system prompts reduce how often a model follows embedded instructions, and that is worth having, but it is a rate, not a guarantee. Controls have to work when the rate is not zero.

The layers, for an inbox-triage agent.

  1. Label the content. Emails enter the context as data blocks with their source; the harness records that the run has read untrusted content.
  2. Expose only the task's tools. Triage needs email_label, email_draft_reply and tickets_create. There is no email_forward_all, and no send tool with a free-form recipient.
  3. Recipients come from the system. Replies go to the thread's existing participants; any new address needs approval.
  4. Untrusted read plus sensitive data means approval for outbound. This run read an inbound email and can see invoices, so anything leaving the organisation goes to a person.
  5. Check what leaves. Attachments and links in outbound messages are checked against destinations and data classes.
  6. Monitor. A burst of draft forwards or attachment-heavy replies after reading one email is an alert.
def outbound_decision(run, msg, thread_participants):
    new_recipients = [r for r in msg["to"] if r not in thread_participants]
    if new_recipients:
        return f"approval needed: new recipients {new_recipients}"
    if run["read_untrusted"] and msg["attachments"]:
        return "approval needed: attachments after reading untrusted content"
    return "send"

run = {"read_untrusted": True}
thread = {"[email protected]", "[email protected]"}
steered = {"to": ["[email protected]"], "attachments": ["inv_1.pdf", "inv_2.pdf"]}
normal = {"to": ["[email protected]"], "attachments": []}
decision = outbound_decision(run, steered, thread)
print(decision.split(" [")[0])  # => approval needed: new recipients
print(outbound_decision(run, normal, thread))  # => send

Even if the model drafts the forward, it stops at approval with the new external recipient shown, and the approver sees the source email that asked for it.

What interviewers probe next

"What if the attacker asks for a reply to the thread itself, with invoices attached?" The attachments rule still requires approval after untrusted input, and the approver sees which invoices and why.

"Can a classifier detect the malicious email?" Detection helps prioritise and alert, but treat it as another rate, not the control.

"Doesn't approval for every attachment create fatigue?" Only runs that read untrusted mail and attach sensitive documents trigger it, which is the case that matters; routine replies proceed.

What if?

What if · interview follow-ups

Hold your answer as the constraints change

Your inbox agent labels emails as data, exposes narrow tools and requires approval for outbound actions after untrusted input.

  1. Start here

    What if the email asks the agent to save the invoices to a shared folder instead?

How it's scored

Weak: Adds "ignore instructions in emails" to the prompt.

Hire: Labels untrusted content, removes dangerous tools and requires approval for new recipients.

Strong Hire: Treats model compliance as a rate, layers labelling, narrow tool exposure, system-supplied recipients, approval keyed to untrusted input and sensitive data, outbound content checks and monitoring, and covers shared folders, memory and approval quality.

Common mistakes

  • Relying on the model to recognise and refuse the instruction.
  • Send tools with free-form recipients in a triage task.
  • Ignoring file shares and memory as exits.
  • Approval screens that do not show the triggering content.
You just read a free answer. Every topic opens its first 5 answers to anyone. Sign in and the count per topic goes to 6, and the site remembers where you stopped in each one.Google sign-in · free · no payment details
HOW DID IT GO?
0
READING SIGNED OUT

Signing in raises your free answers from 5 to 6 per topic, adds an applied lesson in every topic and easy practice tests, and the site starts remembering you: mastery per topic, bookmarks, and a next-focus recommendation. Free, no card.

Sign in free
UP NEXT ON YOUR JOURNEY
DISCUSSION · 0

Nobody has commented. Post a correction or another way to answer.