A Web Page Tricked Your Browsing Agent Into Sending Files. What Do You Do?
The interviewer asksA security researcher shows that a hidden instruction on a web page made your browsing agent email a user's files to an outside address. What do you do?
AI Safety PMApplied AI PMForward Deployed Engineer (secondary)AdvancedExecution roundRepresentative10 min
On this page
The 30-second version
- Contain: disable or gate the agent's email-sending while browsing, today.
- Investigate: reproduce, check logs for real exploitation, notify affected users if any.
- It's indirect prompt injection; there's no complete fix, so limit what a hijacked agent can do.
- Layers: no sending while reading untrusted content, confirmation showing exactly what's sent, least privilege, detection.
- Thank the researcher, fix, then publish what changed; add the case to safety evals.
What it's really testing
- Incident triage
- Understanding indirect prompt injection
- Designing layered mitigations
- Weighing safety against usability
How to structure your answer
- Contain the risk today.
- Investigate exposure.
- Explain the root cause.
- Mitigate in layers.
- Close the loop: researcher, users, evals.
The interview, played out
- InterviewerA security researcher shows that a hidden instruction on a web page made your browsing agent email a user's files to an outside address. What do you do?
- CandidateContain first. Today, disable the agent's ability to send email or attach files during browsing tasks, or require confirmation for every send. That closes the hole while we work on a proper fix.
- Strong moveContains before analysing.
- CandidateThen: reproduce it, and search our logs for sends to new outside addresses during browsing sessions, to see whether anyone was actually exploited. If so, notify those users.
- InterviewerWhy did it happen?
- CandidateIndirect prompt injection. The agent reads web content into the same context as its instructions, and it can't reliably tell the page's text from the user's request. There's no complete fix for that today, so the design goal is to limit what a hijacked agent can do.
- InterviewerSo what's the real fix?
- CandidateLayers. One: separate trust levels: while the agent is processing untrusted content, high-risk tools like email and file sharing are unavailable. Two: least privilege: the agent only gets tools the current task needs. Three: confirmation for any outbound action, showing exactly what will be sent and to whom. Four: detection: classifiers for injection patterns and alerts on unusual outbound actions.
- InterviewerWon't confirmations annoy users?
- CandidateSome, yes.
- Missed signalShould weigh the usability cost from the start, and target confirmations narrowly.
- CandidateSo confirmations apply to outbound actions with new recipients or attachments, not every step. We'd measure how often users approve without changes; if it's nearly always, the prompt isn't doing its job. Finally, thank the researcher, publish what changed, and add this attack to our safety evals.
The strong answer, distilled
- Contain today: disable or confirm outbound email and file sharing during browsing.
- Investigate: reproduce; search logs for real exploitation; notify affected users.
- Root cause: indirect prompt injection; instructions and untrusted content share one context, with no complete fix today.
- Layers: high-risk tools unavailable while processing untrusted content; least privilege per task; targeted confirmations showing exactly what's sent; detection of injection patterns and unusual outbound actions.
- Balance: narrow confirmations to new recipients and attachments; track blind-approval rates.
- Close the loop: credit the researcher, publish the change, add the case to safety evals.
This is one strong answer, not the only one.
How it's scored
| Dimension | Weak (2) | Passable (3) | Strong (5) |
|---|---|---|---|
| Triage | Starts with a long-term fix | Contains eventually | Contains today, then investigates exposure |
| Cause | "A bug" | Prompt injection | Indirect injection, why it's unsolved |
| Mitigation | "Tell the model to ignore it" | Confirmations | Trust separation, least privilege, targeted confirmation, detection |
| Balance | Confirm everything | Mentions friction | Narrow confirmations, measured |
Round scorecard: AI Safety PM: execution round, filled in for the mock candidate
| Dimension | Weak | Passable | Strong | The mock candidate |
|---|---|---|---|---|
| Triage | Treats everything as equally urgent. | Acts on the incident. | Contains harm first, then investigates, then fixes the system. | Strong. Contained first: disabled the risky capability, then investigated exposure. |
| Understanding the abuse | Assumes the cause. | Looks at examples. | Reads cases, finds the pattern, sizes prevalence. | Strong. Reproduced it and checked logs for exploitation in the wild. |
| Layered response | One filter. | Several measures. | Model, classifiers, product limits, enforcement and monitoring, each with a role. | Strong. Permissions, confirmations, untrusted-content separation and detection. |
| Balance | Blocks broadly. | Mentions false positives. | Measures missed harm and wrongful blocks, and chooses the trade-off openly. | Passable. Didn't weigh the usability cost of more confirmations until asked. |
How the answer changes by role
| Role | What to emphasise |
|---|---|
| AI Safety PMProduct Manager. Decides what a product should do, for whom, and why. Read the full explanation | Incident response and the layered defence |
| Applied AI PM | The product impact of new limits and confirmations |
| Forward Deployed EngineerForward Deployed Engineer. An engineer embedded with customers who scopes, builds and ships AI solutions into production. Read the full explanation | Explaining the risk and controls to enterprise customers |
Common mistakes
- Trying to fix it with a stronger prompt alone
- Claiming injection can be fully prevented
- Not checking whether it was exploited
- Adding confirmations everywhere until users ignore them
More follow-ups to practise
- "Enterprise customers want to turn confirmations off." Hint: admin controls, scoped permissions, audit logs.
- "How would you test for this before launch?" Hint: an injection eval set and red-teaming.
- "The researcher wants to publish in a week." Hint: coordinated disclosure.
Go deeper
- Module: Safety, risk and safeguards
- Framework: AI Risk and Safeguards Framework
- Framework: Opening Any Interview Answer
- Lesson: Prompt injection
- Lesson: Safeguards in layers
- Also tests: Tools and agents
- Also tests: AI product design patterns
Sources
Representative question: written to match AI safety and product rounds, not a specific reported interview.