AI Engineering
/
Security & Privacy
/

Threat-model an agent with private data

Security & Privacy · 3 to 4 hours

Threat-model an agent with private data

Threat-model a multi-tenant assistant that reads private documents, keeps conversation summaries, and sends approved notifications, naming where each control is enforced and what risk remains.

Hard
System Design

4 h

Premium

Used in interview rounds:

AI System Design (Hard)

Overview

Threat-model an agent that reads private documents and can perform external actions. A strong answer identifies assets, attacker-controlled inputs, trust boundaries, concrete enforcement points, residual risks, and tests that observe actual data flows and effects.

Study time: 3 to 4 hours

Interview format: System design

By the end you can

  • Define the system, the attacker's capabilities, and their objectives so each threat is testable
  • Inventory assets and trace private data through every model, tool, cache, memory, and log
  • State security invariants and the exact component that enforces each one
  • Separate untrusted reading from privileged execution, and bind external sends to approved recipients and payloads
  • Handle revocation, deletion, restores, and in-flight work without promising more than the system can guarantee
  • Plan security tests and incident response, and state the residual risk after each mitigation

Prerequisites

Helpful background: Comfort with authentication, authorization, and asynchronous job processing helps.

This topic covers technical attack and exposure controls. Responsible AI & Governance covers oversight, impact, and release accountability.

In this guide

  1. The system and the adversary
  2. Connect capabilities to objectives
  3. Inventory assets and data flows
  4. Define security invariants
  5. Threat table
  6. Separate untrusted reading from privileged execution
  7. Control information leaving the system
  8. Time-of-check and time-of-use
  9. Memory, caches, and deletion
  10. Supply chain and tool descriptions
  11. Security evaluation plan
  12. Worked incident: an injected notification
  13. Incident response and residual risk

Hard questions are part of Premium: the study guide, reference answer, rubric, and exercises unlock with Premium.

Practice the interview question

Answer it in your own words before you look at the reference answer.