When Anthropic identified that Alibaba's Qwen development team had used approximately 28.8 million API calls to systematically extract Claude's capabilities into a competing model, it confirmed what many in the field had treated as a theoretical risk. Model distillation at scale, conducted through normal API access, is a viable and difficult-to-detect method of appropriating the intellectual property embedded in a frontier model. For engineering leaders responsible for proprietary model governance, the incident is instructive not because of its scale but because of what it reveals about the structural inadequacy of existing access controls.
How Distillation Attacks Are Executed
Knowledge distillation, in its legitimate form, involves training a smaller "student" model on the output distributions of a larger "teacher" model, rather than on raw labelled data. The student learns to approximate the teacher's behaviour across a wide range of inputs, capturing reasoning patterns, calibration, and response structure that would be expensive to reproduce from scratch. When applied adversarially, the same mechanism allows a third party to train a competitive model using a frontier API as the teacher, with the API operator bearing the inference cost.
The attack surface is the API itself. Standard API access provides exactly what a distillation pipeline requires: structured input-output pairs at scale, with the frontier model's full generative capability applied to each query. An attacker does not need access to model weights, training data, or internal architecture. They need only a valid API key, a query generation strategy broad enough to cover the capability space they want to replicate, and sufficient budget to run the calls.
The 28.8 million call figure attributed to the Anthropic-Alibaba incident indicates a systematic, programmatic query campaign rather than incidental usage. At typical API pricing for frontier models, a campaign of that scale represents a substantial financial outlay, which means the economic calculus favours the attacker: training a competitive model on extracted outputs is cheaper than training one from scratch, and the resulting model inherits the teacher's alignment and reasoning properties without the associated research cost.
What Detection Gaps the Incident Exposes
Standard API rate limiting is designed to manage infrastructure load, not to detect distillation campaigns. A distillation pipeline can be structured to remain within per-minute and per-day rate limits by distributing calls across multiple API keys, accounts, or time windows. The 28.8 million calls in the Anthropic case were not detected in real time; they were identified retrospectively, which means the extraction was substantially complete before any enforcement action was possible.
The detection problem is partly definitional. API providers monitor for abuse patterns that are operationally disruptive: credential stuffing, denial-of-service attempts, or prompt injection at scale. A distillation campaign generates none of these signals. The queries are individually well-formed, the account behaviour appears commercially plausible, and the response volumes are within contractual bounds. From a traffic analysis perspective, a distillation pipeline can be indistinguishable from a high-volume legitimate application.
More informative signals exist but require deliberate instrumentation. Query semantic diversity, measured as the breadth of topic coverage across a session or account, is atypically high in distillation campaigns because the attacker needs to cover the capability space systematically. Response entropy patterns, the distribution of token-level uncertainty across outputs, can differ between exploratory legitimate usage and capability-mapping extraction. Neither of these signals is part of standard API telemetry, and building the monitoring infrastructure to capture them requires treating the API as a security perimeter rather than a billing interface.
Contractual Controls and Their Limits
Most frontier model API terms of service prohibit using outputs to train competing models. Anthropic's usage policy contains this restriction explicitly. The legal enforceability of such clauses is real but operationally limited: a terms-of-service violation is actionable after the fact, but it does not prevent the extraction from occurring, and litigation across jurisdictions is slow relative to the pace of model development.
Contractual controls are most effective when combined with technical enforcement. Tiered access models, where high-volume API access requires organisational verification, stated use-case disclosure, and contractual commitments with audit rights, create a paper trail that strengthens post-incident legal remedies. They also raise the cost and visibility of a distillation campaign by requiring the attacker to misrepresent their identity and purpose at the account registration stage, which adds legal exposure beyond the terms-of-service violation itself.
Enterprise deployers building products on top of frontier APIs face a different contractual surface. If a third party uses their application as a proxy to conduct distillation, the deployer may bear liability under their own API agreement for facilitating prohibited use. This is not a remote scenario: an application that accepts arbitrary user inputs and returns model outputs can be systematically queried by an automated pipeline without the deployer's knowledge. Application-layer monitoring for non-human usage patterns is therefore a governance obligation, not merely a product quality concern.
Infrastructure Controls Available to Model Operators
API providers have several technical mechanisms that can reduce the distillation attack surface, each with different cost and coverage trade-offs.
Output watermarking embeds statistical signals into model-generated text that survive copying and can be detected in downstream model outputs. If a distilled model's outputs carry the watermark distribution of the teacher model, that constitutes technical evidence of the extraction pathway. Current watermarking methods are imperfect: they can be partially degraded by post-processing or fine-tuning, and they add inference overhead. However, they shift the burden of proof in a legal dispute and create a detection mechanism that operates without requiring real-time traffic analysis.
Query fingerprinting, where the provider logs semantic embeddings of queries at the account level, enables retrospective analysis of coverage patterns. A legitimate high-volume user tends to cluster queries around a specific domain or task type. A distillation campaign tends to distribute queries across a much wider semantic space. This signal is not conclusive on its own, but combined with account metadata and usage velocity, it can trigger manual review before extraction is complete.
Differential rate limiting, applied by semantic category rather than raw volume, can slow distillation campaigns without affecting legitimate high-volume users. If an account's query distribution begins to resemble a systematic capability survey, throttling can be applied to the marginal queries while maintaining throughput for domain-consistent requests. This requires real-time semantic classification of incoming queries, which is computationally non-trivial at frontier API scale but architecturally feasible.
Regulatory Exposure and the Compliance Obligation
The regulatory environment around model IP extraction is developing faster than most compliance teams have anticipated. The EU AI Act classifies frontier general-purpose AI models above defined compute thresholds as requiring technical documentation, capability evaluations, and incident reporting. If a provider's model capabilities are systematically extracted and reproduced in a competing system, the question of whether that constitutes a reportable incident under Article 73 of the Act is not yet settled, but regulators are likely to interpret the obligation broadly.
In the United States, the trade secret framework under the Defend Trade Secrets Act is the most immediately applicable legal instrument. Model weights, training data compositions, and fine-tuning methodologies can qualify as trade secrets if the holder has taken reasonable measures to maintain their secrecy. The adequacy of those measures matters: a provider that has not implemented output watermarking, query monitoring, or access tiering may find that a court considers their protective measures insufficient to sustain a trade secret claim. The technical controls are not separable from the legal strategy.
For enterprise deployers, the compliance obligation extends to their own API surface. An organisation that deploys a proprietary or licensed model via API and fails to implement application-layer controls against systematic extraction may face regulatory scrutiny if that extraction is later discovered. The precedent set by the Anthropic-Alibaba incident is that distillation at scale is a known threat vector. Regulators assessing whether an organisation took reasonable precautions will have that precedent available.
FAQs
The primary distinguishing signal is query semantic diversity. Legitimate high-volume users tend to concentrate queries within a specific domain or task type consistent with their stated use case. A distillation campaign distributes queries systematically across a wide range of topics, capability types, and reasoning formats in order to map the teacher model's full output space. Secondary signals include atypical account registration patterns, mismatches between stated use case and observed query content, and usage that accelerates sharply after initial account verification.
Current watermarking techniques can survive into distilled models under controlled conditions, but their persistence degrades with post-processing steps such as fine-tuning on additional data or output paraphrasing. Watermarking is therefore more reliable as a legal evidence mechanism than as a real-time detection system. It is most effective when combined with query-level logging, which preserves a record of the extraction campaign independently of whether the watermark survives in the downstream model.
Most frontier API agreements hold the account holder responsible for all usage conducted through their credentials or application layer, regardless of whether that usage was initiated by a third party. If a deployer's application is used to conduct systematic extraction, the deployer may be in breach of their API agreement even without knowledge of the campaign. Implementing non-human traffic detection, rate limiting at the application layer, and logging of query patterns are the primary technical measures that establish a reasonable-precautions defence in both contractual and regulatory contexts.
The baseline question is whether current monitoring captures semantic query distribution in addition to raw volume and rate metrics. If telemetry is limited to call counts, latency, and error rates, it will not detect a well-structured distillation campaign. A more adequate posture includes account-level semantic clustering of queries over rolling time windows, anomaly detection on query diversity scores, and a review process triggered when an account's usage pattern diverges significantly from its stated use case. This instrumentation requires deliberate engineering investment rather than reliance on default API gateway tooling.
The Act's incident reporting obligations under Article 73 apply to providers of general-purpose AI models with systemic risk designation, currently tied to training compute thresholds above 10^25 FLOPs. Whether a distillation-based extraction constitutes a reportable incident is not yet addressed in published regulatory guidance, but the Act's broad framing of "serious incidents" affecting model integrity makes it a plausible interpretation. Organisations operating at or near the systemic risk threshold should obtain specific legal advice on this question rather than assuming the existing incident reporting framework does not apply.
Enforceability varies by jurisdiction and depends significantly on how the agreement is structured and where the infringing party is domiciled. In the United States, terms-of-service prohibitions are generally enforceable as contract terms, and violations may also support trade secret claims under the Defend Trade Secrets Act if the provider can demonstrate adequate protective measures. Cross-border enforcement, particularly against entities in jurisdictions with different IP frameworks, is substantially more difficult and slower. This is why technical controls that prevent or document extraction in real time are strategically more important than contractual prohibitions alone.

