arXiv(opens in a new tab)cs.CRAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.24461

Do System Prompts Leave Behavioral Fingerprints? A Large-Scale Empirical Study of Clone Detection via Output Similarity

Linghan Chen, Yudong Gao, Jiyao Wang, Kaiyan Ji, Honglong Chen

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

System prompts can be extracted from commercial LLMs with over 80% success and redeployed at zero cost, yet a prompt owner has no way to verify whether a suspected deployment is a clone. We propose Black-Box Behavioral Fingerprinting (BBF): the prompt owner registers a behavioral signature from model outputs and later tests whether a suspect deployment matches that signature more closely than an unrelated baseline. BBF requires only black-box API access. Through a large-scale study (4 model families, 8 benchmarks, 288,000 responses), we find that prompt choice explains 24.4% of output variance and same-model detection reaches AUC 0.876. Cross-model performance is bounded by detector identity, with off-diagonal AUC ranging from 0.845 (Claude as detector) down to 0.665 (Qwen) and overall mean 0.725. BBF resists non-adaptive prompt paraphrasing (AUC ≥ 0.889) and is robust to imperfect extraction, but a single-sentence formal-tone prefix can collapse detection on short structured outputs (MNLI 0.978 → 0.547), isolating style-invariant detection as the key open problem. Diagnostic Query Optimization, a zero-cost query selection rule, adds +0.120 to cross-model AUC.

1 Introduction

LLM application platforms such as OpenAI's GPT Store, Coze, and Dify have given rise to a new class of intellectual property: the system prompt. A carefully crafted prompt can transform a general-purpose model into a specialized product by encoding domain expertise, reasoning strategies, and output conventions, and LLM-based agents extend this further by encoding tool-use workflows, multi-step reasoning chains, and safety guardrails (Wang et al., 2024a). Our study covers the single-turn case directly; the multi-turn agent setting is a natural extension we discuss in Limitations. Such prompt-based applications are now widely deployed commercially, and the prompt is often a key differentiator between competing products. However, unlike model weights, which require significant compute to replicate, a system prompt can be extracted verbatim through adversarial queries, with success rates exceeding 80% on commercial systems (Hui et al., 2024; Sha and Zhang, 2024). Once extracted, a prompt can be redeployed on any model, on any platform, at zero cost. Yao et al. (2025) showed that this entire pipeline, from extraction to cloning to deployment, can be fully automated against real-world prompt services.

Existing defenses focus on preventing extraction (Schulhoff et al., 2023; Chen et al., 2025; Das and Amini, 2025), yet the extraction success rates above show that prevention alone is not yet reliable. A single successful extraction also permanently compromises the prompt, since the extracted text can be copied and redistributed without limit. We therefore argue for a complementary approach: detecting whether a suspected deployment is running a stolen prompt. Just as copyright enforcement provides recourse even when access control fails, post-extraction detection offers recourse even after the prompt has already been stolen.

Whether such detection is feasible hinges on a prior question: does a system prompt leave a usable trace in model outputs at all? We find that it does, and strongly: prompt choice explains 24.4% of output-embedding variance across eight benchmarks ( η2=0.244\eta^{2} = 0.244, a large effect (Cohen, 1988); Section 5), and clone outputs sit closer to the original than unrelated-prompt outputs do in 118 of 128 experimental scenarios (Figure 1). This imprint is what makes post-extraction detection feasible in principle; the open questions concern its robustness. Does it survive cross-model transfer to a different LLM with different tokenization and decoding? Does it survive an adversary who paraphrases the

∗^{*}Equal contribution.

†^{\dagger}Corresponding author.

118/128 scenarios: clone output closer to original

Figure

Figure 1: Each point is one of 128 scenarios (8 benchmarks × 4 registration × 4 detection models). Red × marks failures (AUC ≤ 0.5).

stolen prompt? Which domains and model pairs are boundary conditions, and how many diagnostic queries does a defender need?

We propose Black-Box Behavioral Fingerprinting (BBF), inspired by content fingerprinting in multimedia: the prompt owner registers a behavioral signature from outputs of the original deployment, and later tests whether a suspect produces outputs closer to that signature than to an unrelated baseline. BBF needs only black-box API access.

Through a large-scale empirical study (128 scenarios, 4 model families, 8 benchmarks, 288,000 responses), we make three contributions. First, we map when output-similarity detection succeeds and when it fails across the full 4×4×84 \times 4 \times 8 space: same-model AUC = 0.876, cross-model AUC ranges 0.845 (Claude as detector) to 0.665 (Qwen as detector), and 11 of 128 scenarios fail along three identifiable patterns (short outputs, data artifacts, model-pair style mismatch; Section 6). Second, we propose Diagnostic Query Optimization (DQO), a prompt-free and transferable query selection rule with mean held-out gains of +0.120 cross-model and +0.045 same-model (Section 3.4). Third, across Sections 7–8, we show that BBF survives heavy prompt paraphrasing (AUC ≥\geq 0.889), characterize one adaptive attack that does break it on short-output tasks, and establish that 25 diagnostic queries already suffice for reliable detection.

BBF is a verification tool, not a discovery tool: it confirms or refutes suspicion about a specific deployment and is intended as a complement to existing IP enforcement, not a surveillance method.

References (13)