Skip to content
Ylabator

Private AI vs Public AI: Choose by Threat Model

Pick the deployment by naming who must never see the data. A provider API, a dedicated cloud, your own inference and an offline system each remove a different actor, at a different cost.

Topics
Privacy Foundations
Level
Founder / builder
Read
5 min
Published
2026-11-12
Reviewed
2026-11-12
Post-launch queue

The problem

On June 5, 2025, OpenAI published its response to a court order in The New York Times copyright case. The order required it to keep consumer ChatGPT and API data that would otherwise have been deleted. It covered ChatGPT Free, Plus, Pro and Team, and API customers without a Zero Data Retention agreement. ZDR API traffic was outside it, because that data was never stored [1].

No product demo would have shown that difference. Two teams calling the same model through the same SDK ended up under different legal exposure because of one contract term. The threat was not a hacker. It was a lawful order against the provider.

That is the gap in most "private vs public AI" decisions. Founders compare labels: public API, private cloud, on-prem. The labels describe where software runs. They do not say which people and systems can read the data, and that is the question a threat model answers.

The cost of getting it wrong runs both ways. A general FAQ bot does not need a dedicated environment and an on-call rotation. A confidential M&A research assistant probably cannot run on a consumer plan, whatever its demo looks like. Identical rules for both either overspend on the first or underprotect the second.

How it works

A threat model has five parts: the actors who might see or change data, the assets at stake, the access paths each actor has, the harm if it happens, and the trust the business will accept. The diagram for this article follows that order. Classify the data and the actions, model the threats, decide what failure is tolerable, and only then map to a deployment option.

The actors that matter for AI workloads are specific:

  • Provider staff and systems. Abuse monitoring logs, human review of flagged content, support access.
  • Legal process against the provider. Preservation orders and discovery reach whatever the provider stores.
  • The cloud operator. Whoever runs the hosts, hypervisors and storage under the model.
  • Other tenants. Anyone sharing infrastructure, quotas or caches.
  • Your own insiders and integrations. Staff with broad access, over-permissioned service accounts, connected SaaS tools.
  • Hostile content. Instructions hidden in an email, a web page or a data room file.

Each deployment option removes a subset of these actors. A provider API with zero retention narrows what the provider keeps but keeps the provider as a processor. A dedicated cloud deployment, such as models hosted by Azure or Amazon Bedrock, removes the model maker: Microsoft states prompts are not available to OpenAI, and AWS runs models in deployment accounts the provider cannot access [5][6]. Customer-controlled inference on your own GPUs removes the external processor but makes you the operator. Offline operation removes the network path and replaces it with a media-handling problem.

No option removes the last two actors. Insiders and hostile content reach every deployment. The design question is where untrusted input crosses into an authoritative decision. Treat model output as proposed data, and enforce permissions in ordinary application code and infrastructure, wherever the model runs.

Choose the deployment from the threat model

Fig. 09
  1. ClassifyData and actions
  2. Threat modelActors, assets, access paths, harm
  3. Acceptable trustWhat failure is tolerable
  • Provider API
  • Dedicated cloud
  • Customer-controlled inference
  • Offline operation

Assess for each option: skill, incident response, patching, cost.

An FAQ bot and a confidential M&A assistant need different answers. A dedicated environment can reduce shared exposure, but it is not a blanket guarantee.

By the numbers

of organizations reported breaches of AI models or applications in IBM's 2025 study [2]
13%
of those breached organizations lacked proper AI access controls [2]
97%
default retention of OpenAI API abuse monitoring logs [3]
up to 30 days
single GPU that fits OpenAI's open-weight gpt-oss-120b [4]
80 GB
air-gap attack frameworks studied by ESET that moved data on USB drives [7]
17 of 17
OptionActor removedActor that remainsDocumented limit
Provider API with ZDRMost provider storageProvider as processorStateful features such as files, batches and vector stores are not ZDR eligible at OpenAI [3]
Dedicated cloud (Azure, Bedrock)Model makerCloud operator, your configModel providers have no access to Bedrock deployment accounts [6]
Customer-controlled inferenceExternal processorYour operators and patch cyclegpt-oss-120b needs one 80 GB GPU, gpt-oss-20b runs within 16 GB [4]
Offline operationNetwork attackerRemovable media handlingAll 17 frameworks ESET studied crossed the gap on USB [7]
What each deployment option removes, as documented in November 2026 [3][4][5][6][7]

Read the stats together. The IBM figures say the most common failure is not the inference provider. It is what the AI is allowed to reach, which no deployment label fixes [2]. The table says each step toward isolation buys the removal of one actor and adds work: owning GPUs, patching an offline network, or policing USB media. Spend that money only when the removed actor appears in your threat model.

Implementation

Write the threat model as data, next to the code, so a reviewer can see why a workload got its deployment. The sketch below encodes which actors each option removes and picks the least complex option that removes every actor a workload excludes. The mapping is our working assumption and should be reviewed against the provider terms you sign.

deployment_choice.pypython
from dataclasses import dataclass, field

# Ordered from least to most operational effort.
OPTIONS = ["provider_api_zdr", "dedicated_cloud", "customer_inference", "offline"]

# Actors each option removes from the data path (working assumptions, review per contract).
REMOVES = {
    "provider_api_zdr": {"provider_retention"},
    "dedicated_cloud": {"provider_retention", "model_maker", "provider_legal_process"},
    "customer_inference": {"provider_retention", "model_maker", "provider_legal_process",
                           "cloud_operator", "other_tenants"},
    "offline": {"provider_retention", "model_maker", "provider_legal_process",
                "cloud_operator", "other_tenants", "network_attacker"},
}

@dataclass
class Workload:
    name: str
    data_class: str                      # e.g. "public", "confidential", "restricted"
    excluded_actors: set[str] = field(default_factory=set)
    writes_externally: bool = False      # can it send email, post, pay?

def choose(w: Workload) -> str:
    for option in OPTIONS:
        if w.excluded_actors <= REMOVES[option]:
            return option
    raise ValueError(f"{w.name}: no option removes {w.excluded_actors}")

def required_controls(w: Workload) -> list[str]:
    # Insiders and hostile content survive every option, so these apply everywhere.
    controls = ["per-user retrieval permissions", "prompt and output logging policy"]
    if w.writes_externally:
        controls.append("human approval before any external action")
    return controls

Two rules keep the model honest. First, every entry in excluded_actors needs a named harm: "provider legal process" belongs on the list only if a discovery request against the provider would hurt the business. Second, required_controls is not optional for any option. The cheapest deployment with the right controls beats the most isolated deployment without them.

Record the result in the architecture review: workload, data class, excluded actors, chosen option, the provider terms relied on and the date they were read. Terms change, and the review should say which version it trusted.

Test it

The acceptance test checks two things: that the chooser does not over-provision the FAQ bot, and that the confidential workload never lands on an option that leaves an excluded actor in the path. The illustrative workloads below mirror the diagram.

test_deployment_choice.pypython
import pytest
from deployment_choice import Workload, choose, required_controls, REMOVES

faq_bot = Workload("faq_bot", "public")
mna_assistant = Workload(
    "mna_research", "restricted",
    excluded_actors={"model_maker", "provider_legal_process"},
    writes_externally=True,
)

def test_faq_bot_gets_simplest_option():
    assert choose(faq_bot) == "provider_api_zdr"

def test_mna_assistant_removes_every_excluded_actor():
    option = choose(mna_assistant)
    assert mna_assistant.excluded_actors <= REMOVES[option]
    assert option == "dedicated_cloud"

def test_external_writes_always_need_approval():
    assert "human approval before any external action" in required_controls(mna_assistant)

def test_unmappable_requirement_fails_loudly():
    impossible = Workload("x", "restricted", excluded_actors={"own_insiders"})
    with pytest.raises(ValueError):
        choose(impossible)

Expected result: all four tests pass. The last one matters most. "Own insiders" is not removable by any deployment, so the chooser refuses rather than returning a comforting answer.

  • Run the tests in CI so a change to the mapping is reviewed like code.
  • Simulate a provider outage and confirm the fallback does not route restricted data to a less isolated option.
  • Run a malicious insider exercise: a staff account tries to retrieve a document outside its role. Expect a denial from application code, not from the model.
  • Store the test output, the configuration version and the date of the provider terms used.

Decision

Start from the actors, not the label.

  • Public or low-sensitivity data: a provider API under a business plan or ZDR. Cheapest, and the provider's terms are the main control. Confirm which features fall outside ZDR [3].
  • Confidential client data where the model maker must be excluded: a dedicated cloud deployment inside your existing Azure or AWS contract [5][6]. Budget for identity, logging and network configuration, which become your work.
  • The cloud operator itself is in scope: your own inference, or confidential computing. Budget for GPUs, an on-call rotation and a patch cycle.
  • Offline is justified only by a named network threat, and only with a written media-handling procedure [7].

Use NIST's AI Risk Management Framework to record the decision and its owner, and OWASP's LLM Top 10 to check the controls that apply to every option [8][9].

Sources

  1. [1]How we're responding to The New York Times' data demands in order to protect user privacy (opens in a new tab)OpenAI, June 2025
  2. [2]IBM Report: 13% of organizations reported breaches of AI models or applications, 97% of which reported lacking proper AI access controls (opens in a new tab)IBM Newsroom, July 2025
  3. [3]Data controls in the OpenAI platform (opens in a new tab)OpenAI, November 2026
  4. [4]gpt-oss-120b model card (opens in a new tab)OpenAI on Hugging Face, August 2025
  5. [5]Data, privacy, and security for Foundry Models sold by Azure (opens in a new tab)Microsoft Learn, May 2026
  6. [6]Amazon Bedrock data protection (opens in a new tab)AWS, November 2026
  7. [7]Jumping the air gap: 15 years of nation-state effort (opens in a new tab)ESET WeLiveSecurity, December 2021
  8. [8]AI Risk Management Framework (opens in a new tab)NIST, January 2023
  9. [9]OWASP Top 10 for LLM Applications 2025 (opens in a new tab)OWASP GenAI Security Project, November 2024

Technical guidance, not security certification or legal advice.

All Private AI articles