← Lab

Behavioral fingerprinting detects cloned system prompts with up to 0.876 AUC intra-model

Black-Box Behavioral Fingerprinting can identify whether a suspect deployment uses the same system prompt as the owner

arXiv 25 Aug 2026 Measurement Simulation evidence

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

Why it matters

BBF gives prompt owners a practical, black-box verification tool to detect stolen prompts without needing platform cooperation.

Summary

BBF can detect cloned system prompts from black-box LLM outputs with AUC 0.876 when the same model family is used and a mean cross-model AUC of 0.725. Prompt choice accounts for 24.4% of output variance, and the method remains effective against non-adaptive paraphrasing (AUC ≥0.889). However, detection collapses on short, structured tasks when an adversary adds a formal-tone prefix (MNLI 0.978 →0.547) and fails in several short-output or style-mismatch scenarios. The study evaluates 288,000 responses across four model families and eight benchmarks, but does not cover multimodal or multi-turn agents.

What they found 4

  1. Same-model detection achieves high accuracy

    “same-model detection reaches AUC 0.876.”

  2. Cross-model detection has a mean AUC of 0.725

    “overall mean 0.725.”

  3. Prompt choice explains a large portion of output variance

    “prompt choice explains 24.4% of output variance”

  4. BBF resists non-adaptive prompt paraphrasing

    “BBF resists non-adaptive prompt paraphrasing (AUC ≥0.889)”

Caveats 7

  • Detection collapses on short, structured outputs when a formal-tone prefix is added (MNLI 0.978 →0.547).
  • Eleven of 128 scenarios fail (AUC ≤0.50), especially short-output tasks (SST-2) and style-mismatch pairs (e.g., Qwen→GPT).
  • CUAD benchmark failures are due to a data-loading artifact, reducing reliability on that domain.
  • The strongest open issue is robustness to adaptive attacks. Section 8.2 shows that a single-sentence formal-tone prefix collapses MNLI detection from 0.978 to 0.547, and our evaluation covers only four prefix-injection strategies on two benchmarks; sandwich constructions, suffix steering, outputformat steering, and multi-turn dilution remain unexplored.
  • Style-invariant detection on short, structured outputs is therefore the natural next direction, and BBF should not be deployed against adversaries assumed to be aware of the detector.
  • A second limitation is scope: BBF is evaluated on 8 textbased NLP benchmarks and four mid-tier commercial APIs, so generalization to multimodal tasks, real-time agents, open-source or frontier-scale models, and sandwich/RAG deployments is not established.
  • Our evaluation is also single-turn and does not cover the agent / tool-use settings motivated in Section 1.

What’s new here 4

  • Introduces Black-Box Behavioral Fingerprinting (BBF) to verify prompt ownership using only API access.
  • Demonstrates large-scale empirical evaluation across 4 model families and 8 benchmarks (288k responses).
  • Proposes Diagnostic Query Optimization (DQO) that improves cross-model AUC by +0.120 with zero-cost query selection.
  • Shows robustness to non-adaptive prompt paraphrasing while exposing vulnerability to style-shifting prefix attacks.