TL;DR
Model-stealing campaigns hide their massive traffic by spreading requests across thousands of "sybil" accounts, often evading standard content-based filters. This paper demonstrates that the client-side "dispatcher" code—which decides which account to use for each request—leaves a unique fingerprint in request timestamps. By analyzing these timing patterns, defenders can identify entire coordinated campaigns from just a few known accounts with near-perfect accuracy (AUC 0.92–1.00) in under 20 minutes.
What Problem Does This Paper Address?
Distilling a proprietary "frontier" model (like GPT-4) into a smaller, cheaper student model requires millions of API queries. To bypass rate limits and avoid detection, attackers use distributed campaigns, spreading their prompts across thousands of accounts.
While providers use content classifiers to catch these accounts, they only flag the minority of accounts whose prompts are obviously "extractive." Many accounts remain "covert," either by using clever prompt engineering or by acting as relays for legitimate users. This paper addresses the gap in detecting the coordination between these accounts, regardless of what they are actually asking the model.
Methods
The authors focus on two timestamps available to any API provider: when a request arrives and when its streamed answer finishes. They identify several key techniques:
- Occupancy Analysis: By measuring how many requests are "in flight" for a group of keys, defenders can see if they are "taking turns." Coordinated workers sharing a pool of keys will show much lower variance in total occupancy than a group of independent users.
- Forensic Expansion: Starting with a "seed" of a few accounts already flagged by other systems (like payment fraud or content filters), the system ranks all other active accounts based on how well their timing fits the campaign's pattern.
- Spectral Discovery: Using tools from random-matrix theory (specifically the BBP transition), the authors developed an algorithm to find "rings" of coordinated accounts blindly among thousands of unrelated users without needing a starting seed.
- Active Watermarking: The provider can introduce tiny, secret random delays (milliseconds) to the end of a stream. If a worker is running a closed loop (waiting for one answer before sending the next request on a different key), that delay will "echo" in the start time of the next request, proving the link.
Datasets
The study validates its methods across several diverse environments:
- Synthetic Simulations: Used to derive theoretical bounds and initial thresholds.
- WildChat-1M: 1.96 million real ChatGPT interaction logs used to calibrate false-alarm rates for "human-like" traffic.
- Chutes Trace: A massive, real-world production trace from a public LLM inference platform containing 6.12 billion requests over one year.
- Live vLLM Deployments: The authors ran their own inference servers to test the impact of server stress, quotas, and provider-side load balancing.
Key Insights and Ideas
- The "Spotlight" Effect: In a common "round-robin" dispatcher, workers pick keys in a fixed order. This creates a "travelling wave" of activity. If you visualize the keys in a ring, the active keys look like a moving spotlight sweeping around, a pattern that is statistically impossible for independent users to replicate.
- Closed-Loop Constraints: Most model-extraction scripts are "closed loops"—they need the output of one request to store it or use it for the next. This creates a hard temporal link between the end of one request and the start of the next, which the dispatcher cannot easily hide.
- The Cost of Evasion: An attacker can evade timing analysis by "pinning" one worker to one key forever. However, the authors prove that if the provider enforces per-key quotas, this pinning strategy forces the attacker to sacrifice roughly 40% of their total throughput to stay hidden.
- Turn-Taking vs. Bunching: While coordinated workers "take turns" (lowering variance), busy servers can cause "bunching" (increasing variance) because all requests slow down at once. The authors developed "hollowing" techniques to filter out this server-side noise.
Key Results
The paper's "frozen" detectors (code locked before seeing the test data) performed exceptionally well:
- Forensic Expansion: From a 20% seed, the system ranked the remaining campaign accounts with an AUC of 0.92 to 1.00 within just 20 minutes of activity.
- Real-World Detection: On the Chutes production trace, the system discovered two previously unknown real-world relays consisting of 46 and 56 accounts. These groups showed near-perfect uniformity in request counts, a classic sign of a round-robin counter.
- Robustness: The timing signatures survived server saturation, jitter (random delays added by the attacker), and provider-side load balancing across multiple model replicas.
Limitations and Future Work
- The "Invisible" Attacker: The authors acknowledge that "pinned" keys (one worker per key) and "steady open loops" (sending requests on a fixed schedule regardless of answers) are mathematically invisible to timing analysis.
- Legitimate Shared Dispatch: Some legitimate companies use similar load-balancing dispatchers for their own internal tools. Timing analysis proves accounts share machinery, but it doesn't prove their intent is malicious. The authors recommend using timing for triage and forensic expansion rather than automatic banning.
- Future Work: The authors suggest that combining these timing signatures with other metadata (like IP addresses or browser fingerprints) would make the system even more robust, though they purposefully avoided using such data to show the power of timing alone.
Summary updated