Choose your region

    Lists show the case studies of your region first. Browse and search still hold every case study.

    Europe
    North America

    Dropbox checks code changes against threat models with Dash

    Dropbox's security team built an agent that pulls threat models from Dash through MCP when a pull request opens, then has a foundational model check the code against them.

    DropboxUnited StatesEnterprise softwarePilot
    Scenario
    Code review against security threat models
    Business function
    Software engineering
    Who built it
    Built in-house
    Human oversight
    Assists people
    Organization
    Enterprise, 1,000 to 9,999 employees
    AI types
    Generative AI, Agentic AI

    Sources and their publishers

    This case study draws on reporting by the following publishers. Enterprise AI Case Studies combined these accounts and added its own explanation. The reporting, and every passage quoted from it, belongs to whoever published or supplied it.

    1. Dropbox

    2. InfoQ

    tl;drDash semantic search linked 80% of Dropbox's security design reviews to the code that built them.See the results

    View the solutionBuild this solution yourself

    Dropbox’s security team uses an AI security review agent to check code changes against the threat models agreed in security design review1. When a pull request opens, the agent pulls the relevant threat models from Dropbox Dash through the Model Context Protocol (MCP), and a foundational model compares them with the code1.

    Dropbox described the system on its engineering blog in June 20261. To validate the approach, Dash’s semantic search linked 80% of the company’s 150 security design reviews from the previous year and a half to the code changes that implemented them1. In testing, the retrieved context surfaced missing controls, contradictions with approved designs, and regressions against known risks that were invisible without the threat model1.

    Before the deployment

    Dropbox keeps threat model documents that span years of product development1. Each one records the risks of a feature and the protections agreed in security design review. The threat model lives in a wiki or documentation system, while the code arrives later as pull requests (PRs)1. Unless an engineer links the two, code reviewers don’t see the requirements.

    The security team measured how often the link broke:

    • Only 12% of implementing PRs linked back to their design review and threat model1.
    • Across 79 verified pairs, 54% of implementing PRs opened more than a month after the review was filed1.
    • The median delay was about five weeks, with a long tail beyond 11 months1.
    • Only 29% of implementing PRs opened within the first two weeks of security review1.
    • About 15% of design reviews were filed retroactively, after the code was built1.

    A review of security incidents found cases where the root cause was a security requirement that had been documented during design review but not enforced in the code1.

    What was built

    The solution brings the threat model into code review and checks the code change against it1. It combines three technologies: MCP, foundational large language models, and Dash, the Dropbox product that finds and connects a team’s content1. Each part has its job:

    • Security review agent: Retrieves the relevant threat models and supporting context through MCP when a code change opens for review1.
    • Dash: Indexes content stored in Dropbox and in connected applications, so the threat models are searchable next to other engineering documents without manual links1.
    • Foundational model: Compares the documented requirements with the proposed change. For example, it recognizes that a threat model requires authentication on an endpoint and checks whether the new code enforces it1.
    • Human reviewers: Keep the final judgment on each finding. The model takes over the manual cross-referencing1.

    Dropbox put the results inside code review instead of a separate security workflow1. Security context appears directly in the code review interface2.

    “It does not replace the security reviewer, but it changes the review from a generic code-quality exercise into one that’s grounded in the original design intent.”

    Ishan Mishra, engineering lead at Dropbox2

    Alternatives considered

    • Static analysis tools: They inspect code for known patterns and can tell that a security control is present. They can’t tell whether it meets the requirement agreed in design review1.
    • Required links and reminder bots: These depend on engineers remembering extra steps, and compliance tends to decline over time1.
    • Retrieval built into CI or code review systems: Dropbox chose MCP instead, to avoid a one-off integration for a single workflow and to iterate quickly on a proof of concept2.

    Technology and architecture

    Figure 1How the security review agent checks a pull request against its threat model
    How the security review agent checks a pull request against its threat modelThreat models and engineering documents in connected applications are indexed by Dropbox Dash. The Dash MCP server lets the security review agent search and read that content. When an engineer opens a pull request, the agent takes the code change, retrieves the relevant threat models through the MCP server, and passes both to a foundational model. The model's findings appear in the code review interface, where a human reviewer makes the final judgment. No part is inferred.indexed content (data) · Documented in source [1]search and read (data) · Documented in sources [1] [3]relevant threat models (data) · Documented in source [1]code change (data) · Documented in source [1]requirements and code (data) · Documented in source [1]potential gaps (data) · Documented in sources [1] [2]findings to judge (handoff to people) · Documented in source [1]DROPBOX DASHCODE REVIEWThreat models and docs · Data · Documented in source [1]DATAThreat modelsand docsDash index and search · System · Documented in sources [1] [2]SYSTEMDash indexand searchDash MCP server · System · Documented in sources [1] [3]SYSTEMDash MCPserverPull request · Application · Documented in source [1]APPLICATIONPull requestSecurity review agent · Application · Documented in source [1]APPLICATIONSecurityreview agentFoundational model · AI model · Documented in source [1]AI MODELFoundationalmodelCode review interface · Application · Documented in source [2]APPLICATIONCode reviewinterfaceHuman reviewer · Person · Documented in source [1]PERSONHumanreviewerindexedcontentsearchand readrelevantthreat modelscode changerequirementsand codepotential gapsfindingsto judgeHow the security review agent checks a pull request against its threat modelThreat models and engineering documents in connected applications are indexed by Dropbox Dash. The Dash MCP server lets the security review agent search and read that content. When an engineer opens a pull request, the agent takes the code change, retrieves the relevant threat models through the MCP server, and passes both to a foundational model. The model's findings appear in the code review interface, where a human reviewer makes the final judgment. No part is inferred.indexed content (data) · Documented in source [1]search and read (data) · Documented in sources [1] [3]relevant threat models (data) · Documented in source [1]code change (data) · Documented in source [1]requirements and code (data) · Documented in source [1]potential gaps (data) · Documented in sources [1] [2]findings to judge (handoff to people) · Documented in source [1]DROPBOX DASHCODE REVIEWThreat models and docs · Data · Documented in source [1]DATAThreat modelsand docsDash index and search · System · Documented in sources [1] [2]SYSTEMDash index and searchDash MCP server · System · Documented in sources [1] [3]SYSTEMDash MCP serverPull request · Application · Documented in source [1]APPLICATIONPull requestSecurity review agent · Application · Documented in source [1]APPLICATIONSecurity review agentFoundational model · AI model · Documented in source [1]AI MODELFoundational modelCode review interface · Application · Documented in source [2]APPLICATIONCode review interfaceHuman reviewer · Person · Documented in source [1]PERSONHuman reviewerindexed contentsearch and readrelevant threat modelscode changerequirements and codepotential gapsfindings to judge
    • AI component
    • Data
    • Handoff to people
    Sources [1][2][3]
    Dash supplies the threat model through MCP, and the model compares it with the code before a person decides.

    The agent reaches Dash through MCP, which gives it context without a custom integration for every source system1. Dash’s MCP server makes the content Dash indexes available to other AI tools1. Its tools search company content across connected sources and read a document as markdown3.

    Layer What they used Role Source
    Language model Foundational large language models Compare the threat model’s requirements with the code change and flag gaps 1
    Task agent Security review agent Retrieves threat models when a code change opens for review and passes them with the change to the model 1, 2
    Search and vector index Dropbox Dash Indexes threat models and engineering documents across connected applications, with semantic search 1, 2
    Tools and actions Dash MCP server Lets the agent search and read the content Dash indexes 1, 3
    Tools and actions Model Context Protocol Standard protocol through which the agent requests context from Dash 1, 2, 3
    Knowledge content Threat models Record the risks and agreed protections from each security design review 1
    Developer tools Code review Shows the security context and findings on the pull request 1, 2

    Data inputs

    • Code change: The pull request under review1.
    • Threat models: The records of past security design reviews, kept in a wiki or documentation system1.
    • Related documents: Supporting engineering documentation that Dash indexes across connected applications1.

    Integrations

    • Dropbox Dash: The agent searches and reads the same connected content that powers Dash search1. Dash keeps existing access control policies, and the system builds on its permission-aware retrieval, encryption and audit logging2.
    • Code review: The agent starts when a code change opens for review, and its context and findings appear in the code review interface1, 2.

    How one pull request flows through the system

    1. An engineer opens a code change for review. The security review agent takes the change1.
    2. The agent asks the Dash MCP server for relevant threat models and other supporting context1.
    3. Dash finds them by semantic search, which retrieves content by meaning rather than exact keywords or explicit references1.
    4. The foundational model examines the documented requirements and the code change together, and identifies potential gaps between them1.
    5. The findings appear in code review. A reviewer should be able to see the requirement, its source, and the relevant code2.
    6. The human reviewer makes the final judgment1.

    Results

    To validate the approach, Dropbox mapped all 150 of its security design reviews from the previous year and a half to their implementing code changes with Dash’s semantic search1. The figures come from that analysis, published in June 2026.

    Metric Before After Scope and timeframe Reported by
    Security design reviews linked to their implementing code changes Not disclosed 80% 150 design reviews from the year and a half before June 2026 Dropbox, pilot1
    Review-to-code connections recoverable only through semantic search Not disclosed 69% Same analysis of 150 design reviews Dropbox, pilot1
    • Design reviews linked: The 80% is the share of the 150 design reviews that semantic search matched to their implementing code changes. Only 12% of those code changes explicitly referenced the design review1.
    • Connections found only by semantic search: The 69% is the share of review-to-code connections that manual references alone would not reveal1.
    • Findings in testing: With threat model context, review surfaced missing controls, contradictions with approved designs, and regressions against known risks. The code was functionally correct in every case1.

    As Dropbox integrates the system into its development workflows, it sets four principles1:

    • Findings must be validated against the actual code before they reach a developer1.
    • Every finding should be traceable back to a specific requirement and source document1.
    • Most findings should be advisory rather than blocking, with escalation reserved for confirmed gaps1.
    • The system must account for stale context rather than apply outdated guidance1.

    Lessons learned

    Semantic retrieval answered the problem that manual linking couldn’t. Explicit references covered 12% of the code changes, while Dash’s search recovered connections that would otherwise stay invisible1.

    Comparing the documents, not only retrieving them, is the point of the design. Placing a threat model next to a code review still leaves a person to read both, so the model does the comparison and the reviewer judges the result1.

    Retrieving the right context was the hardest part. Mishra told InfoQ that design documents and code aren’t always directly connected in a large engineering organization, so keyword search alone isn’t enough2.

    False positives limit what the system can surface. Mishra said developers already see a lot of automated feedback in code review, and even technically plausible findings can erode trust if they aren’t relevant to the change2. The team holds back weak signals and uses developer feedback on accuracy and relevance to improve retrieval and reasoning2.

    The figures are Dropbox’s own, from its engineering blog1. They measure the retrieval step, how well Dash’s search linked design reviews to code, rather than the accuracy of the agent’s findings1.

    Dropbox sees security as the first use of the pattern. Privacy teams could check data classification requirements, and platform teams could check API contracts when interfaces change1.

    Case study scorecard

    Sources by publication date

    • Organization 1
    • Vendors and partners 1
    • Press, academic, and regulators 1

    Build this solution yourself

    Analysis

    What you need

    • A body of written threat models: The agent can only compare code with requirements that someone recorded. Dropbox had threat model documents spanning years of product development1.
    • One index over your documents with semantic search: Most review-to-code connections at Dropbox surfaced only through meaning-based search, and Dash already indexed the documents across connected applications1.
    • A code review step you can extend: The findings appear where engineers already review code, so you need a review system that the agent can read from and write to1, 2.

    Reference architecture

    Software engineering assistant

    A software engineering assistant writes, reviews, tests, or migrates code in the tools that developers already use, and a developer approves its output. A language model writes a change, a test, or a review comment from the code for a task, and automated checks and a checker model build, test, and filter it. A reviewer approves each checked proposal in code review before it merges, and developers do the work that fails the checks by hand.

    A check mark shows a building block that this case study's sources document.

    Open the reference architecture

    Others who built it

    Cite this case study

    Enterprise AI Case Studies. "Dropbox checks code changes against threat models with Dash." Updated Nov 26, 2026. https://case-studies.ai/case-studies/risk-and-compliance/RC-061-threat-model-code-review-dropbox/

    @misc{csai-rc-061,
      author = {{Enterprise AI Case Studies}},
      title = {{Dropbox checks code changes against threat models with Dash}},
      year = {2026},
      note = {Updated 2026-11-26},
      url = {https://case-studies.ai/case-studies/risk-and-compliance/RC-061-threat-model-code-review-dropbox/}
    }

    Sources

    The following reporting, and every passage quoted from it, belongs to its publisher, not to this site. Sources and ownership

    1. Source 1:

      How Dropbox uses MCP and Dash to close the design-to-code security gap

      OrganizationDropbox, Jun 12, 202612 Jun 2026By Mark BreitenbachAccessed Nov 26, 202626 Nov 2026

      Supporting excerpts (34)
      • only 12% of implementing PRs link back to their original design review and threat model
      • across 79 verified pairs, we found that more than half (54%) of implementing PRs
      • The median delay was about five weeks, with a long tail stretching beyond 11 months.
      • Only 29% of implementing PRs were opened within the first two weeks of security review.
      • About 15% of design reviews were filed retroactively, meaning the code was built first and the security review came later
      • we analyzed all 150 of our security design reviews from the previous year and a half and mapped each to its implementing code changes
      • we successfully linked 80% of design reviews to their implementing code changes
      • Only 12% of those code changes explicitly reference the design review
      • 69% of connections were recoverable only through semantic search
      • context retrieval consistently surfaced security findings that were invisible without the threat model, including missing controls, contradictions with approved designs, and regressions against known risks
      • The code was functionally correct in every case.
      • the root cause was a security requirement that had been documented during design review
      • a system that combines three technologies: Model Context Protocol, foundational large language models
      • When a code change is opened for review, the agent retrieves relevant threat models and other supporting context through MCP.
      • Dash has an MCP server that makes the content it indexes available to other AI tools.
      • to search and read the same connected content that powers Dash search, including threat models and related documents
      • That gives the agent the context it needs without requiring a custom integration for every source system.
      • it can recognize that a threat model requires authentication on an endpoint and determine whether the code being introduced actually enforces that requirement
      • Rather than creating a separate security workflow, we integrated the system directly into code review.
      • A finding tied directly to the code being reviewed is far more likely to be useful than a generic warning that appears on every change.
      • Simply placing a security document next to a code review still leaves a human responsible for reading both and determining whether they align.
      • The foundational model performs that comparison automatically, identifying potential gaps between documented requirements and implementation.
      • Human reviewers remain responsible for the final judgment, but the model eliminates much of the manual cross-referencing that would otherwise be required.
      • while static analysis tools inspect code for known patterns and potential issues, they can only tell you that a security control is present
      • these approaches depend on engineers remembering extra steps, and compliance tends to decline over time
      • Findings must be validated against the actual code before they reach a developer, because false positives destroy trust faster than true positives build it.
      • Every finding should be traceable back to a specific requirement and source document
      • Most findings should be advisory rather than blocking, with escalation reserved for confirmed gaps between approved designs and implementation.
      • the system must account for stale context rather than blindly applying outdated guidance
      • At Dropbox, we maintain threat model documents spanning years of product development.
      • The threat model lives in a wiki or documentation system, while the code is implemented through pull requests (PRs)
      • Because Dash already indexes and connects content stored in Dropbox and across our connected applications
      • privacy teams can surface data classification requirements when code touches user data flows
      • Platform teams can surface API contracts and compatibility requirements when interfaces change.
    2. Source 2:

      Dropbox Integrates MCP and Dash to Close the Gap between Security Design and Code Review

      IndependentInfoQ, Jul 31, 202631 Jul 2026By Leela KumiliAccessed Nov 26, 202626 Nov 2026

      Supporting excerpts (17)
      • Dash preserves existing access control policies while making organizational knowledge queryable.
      • including permission-aware retrieval, encryption, and audit logging
      • Security context is presented directly within the code review interface
      • InfoQ interviewed Ishan Mishra, engineering lead at Dropbox
      • It does not replace the security reviewer, but it changes the review from a generic code-quality exercise into one that's grounded in the original design intent.
      • Why did you choose MCP as the orchestration layer instead of integrating retrieval logic directly into CI or code review systems?
      • We wanted to avoid building a one-off integration for a single workflow.
      • MCP gave us a standardized way to expose Dash as a context provider, while also allowing us to build a proof of concept and iterate very quickly early in the process.
      • the code review agent doesn't need to know where information lives or how it's retrieved
      • Security review is the first use case, but the same pattern can apply to privacy, compliance, API governance, or design review.
      • A reviewer should be able to see the requirement, its source, and the relevant code.
      • Feedback on whether findings are accurate, relevant, and actionable helps us identify where retrieval or reasoning needs to improve
      • The harder problem was retrieving the right context.
      • Developers already see a lot of automated feedback during code review, so we have a low tolerance for false positives.
      • Even technically plausible findings can erode trust if they are not relevant to the change.
      • Latency matters because code review is interactive.
      • AI assistance should not just make engineers faster. It should help preserve institutional knowledge at the point where decisions are made.
    3. Source 3:

      How to connect the Dropbox Dash remote MCP server

      Product documentationDropbox, Aug 31, 202631 Aug 2026Accessed Nov 26, 202626 Nov 2026

      Supporting excerpts (4)
      • Built on the open-source Model Context Protocol (MCP) standard
      • Search company content across all connected sources, with optional filters for file type, source, and source-specific labels.
      • Read document content as markdown, with chunked transfer support for large files.
      • Dropbox Dash MCP uses Dropbox OAuth for secure authentication.

    More in Risk & Compliance

    View all