The LMVD-ID is an internal research identifier, not an official CVE identifier.
Logit Leakage Model Clone
Large Language Model (LLM) inference APIs that expose top-k logits or log-probabilities are vulnerable to model extraction and cloning. An attacker can execute a two-stage attack to replicate the proprietary model…
Paper-evaluated models(2)
- GPT-3.5
- Mistral 7B
Description
Large Language Model (LLM) inference APIs that expose top-k logits or log-probabilities are vulnerable to model extraction and cloning. An attacker can execute a two-stage attack to replicate the proprietary model without access to weights, gradients, or training data. First, by submitting fewer than 10,000 random queries and aggregating the returned unrounded logits, the attacker recovers the model's output projection matrix using Singular Value Decomposition (SVD). Second, the attacker freezes this recovered layer and uses knowledge distillation with a public dataset to train a compact "student" model. This results in a deployable clone that replicates the target model's internal hidden-state geometry and output behavior with high fidelity (e.g., 97.6% cosine similarity).
Examples
To reproduce the extraction of the projection matrix (Stage 1):
- Query the target API with $n$ random prompts (where $n > d$, the hidden dimension) and request
top_klogits in the response. - Construct a logit matrix $Q \in \mathbb{R}^{V \times n}$ from the responses.
- Perform Singular Value Decomposition (SVD) on $Q$: $Q = U \Sigma V^{\top}$.
- Estimate the projection matrix $\hat{W}$ by retaining the top-$d$ singular vectors: $\hat{W} = U_{:,1:d} \Sigma_{1:d,1:d}$.
To reproduce the cloning (Stage 2):
- Initialize a student architecture (e.g., a 4-layer or 6-layer transformer).
- Fix the embedding and projection layers using the $\hat{W}$ recovered in Stage 1.
- Train the student model on a public dataset (e.g., WikiText) using the target API as the teacher.
- Minimize the distillation loss function: $\mathcal{L}(p) = \tau^2 \mathrm{KL}(s_T \parallel s_S) + \lambda \mathrm{CE}(z_S, y)$, where $s_T$ are the soft targets from the API.
Impact
- Intellectual Property Theft: Testers can create functional substitutes for proprietary models at a fraction of the training cost (e.g., < 24 GPU hours).
- Security Bypass: Attackers can use the local clone to conduct offline adversarial attacks (finding jailbreaks or adversarial examples) which are then transferrable to the production system.
- Privacy Leakage: The clone captures the latent reasoning of the teacher, potentially exposing memorized private data or distinct behavioral fingerprints.
Affected Systems
- Any LLM Inference API (Cloud-based or On-premise) that returns
logprobs,top_logprobs, ortop_kdistribution data in the API response payload. - Specific verified targets in research include
distilGPT-2, with theoretical applicability toGPT-3.5-turboandPaLM-2based on pricing and query analysis.
Mitigation Steps
- Restrict API Output: Disable the return of full or
top-klogits and log-probabilities in public-facing APIs. Only return the generated tokens. - Output Quantization/Rounding: If log-probabilities are required, apply aggressive rounding or quantization to reduce the precision available for SVD reconstruction.
- Adaptive Noise Injection: Inject random noise into the returned logits to disrupt the singular value spectrum required for projection matrix recovery.
- Watermarking: Implement robust watermarking schemes to detect outputs generated by unauthorized clones.
- Behavioral Monitoring: Monitor for atypical query patterns, such as high-volume requests with high-entropy (random) prompts used for projection recovery.
Research context and confidence
- Evidence and verification
- Paper-reported; independent reproduction is not documented.
- Primary research source linked.
- Severity
- Not rated by this catalog.
- Source and publication type
- arXiv · Research preprint.
- Peer-review status is not provided by this source.
- Author and publication status
- Author metadata is not stored; see the primary paper.
- Threat model and attacker access
- Black-box model, service, or application access.
- Related deployment categories
- Model APIs
- Taxonomy labels only; paper-specific deployment prerequisites are not inferred.
- Affected systems
- Any LLM Inference API (Cloud-based or On-premise) that returns logprobs, top_logprobs, or top_k distribution data in the API response payload. Specific verified targets in research include distilGPT-2, with theoretical…
Research Paper
Clone What You Can't Steal: Black-Box LLM Replication via Logit Leakage and Distillation
Primary source: arXiv. Findings are reported by the cited research and have not been independently verified.
View PaperEvidence
This entry is based on a primary research source. Its findings are paper-reported; independent reproduction and verification are not claimed.
https://arxiv.org/abs/2509.00973Related research
- Production LLM Copyright Extraction
Published January 1, 2026 · model-layer, prompt-layer, extraction
- Guardrail Policy Extraction
Published November 1, 2025 · model-layer, extraction, prompt-leaking
- LLM Causal Neuron Attack
Published December 1, 2023 · model-layer, jailbreak, extraction