Manuscript Offprint

arXiv:2608.22213

AdaptPrint: Response-Adaptive Fingerprinting of Black-Box LLM Services

Yilin Li, Yifei Zhang, Guozhu Meng

Yilin Li 1,2^{1,2}, Yifei Zhang 1,2^{1,2}, Guozhu Meng 1,2,∗^{1,2,*}

1^{1}State Key Laboratory of Cyberspace Security Defense, Institute of Information Engineering, Chinese Academy of Sciences, China

2^{2}School of Cybersecurity, University of Chinese Academy of Sciences, China

{liyilin2023, mengguozhu}@iie.ac.cn, zhangyifei26@mails.ucas.ac.cn

Abstract—Black-box LLM services have emerged as a practical deployment paradigm. Nevertheless, their opacity also hinders the systematic assessment of security risks and complicates copyright auditing for model owners. Black-box LLM fingerprinting, which identifies the underlying LLM identity through query-response interactions, offers a promising way to bridge this gap. Existing approaches typically collect responses from target LLM services using a fixed set of queries and perform poorly in the presence of realistic and complex configurations (e.g., system prompt and sampling settings). To overcome these limitations, we propose AdaptPrint, a response-adaptive fingerprinting method for revealing hidden LLM identities in black-box LLM services. AdaptPrint integrates three progressive response consistency probing strategies: Direct Probing, Continuation Probing, and Follow-up Probing. AdaptPrint determines the final LLM identity by performing similarity matching among candidate LLMs. Experimental results show that AdaptPrint significantly outperforms state-of-the-art methods among 27 candidate models, achieving Top-1, Top-3, and Top-5 accuracies of 80.6%, 90.3%, and 92.1%. AdaptPrint also demonstrates strong robustness across different defense strategies and decoding parameters.

I. INTRODUCTION

With the rapid advancement of large language models (LLMs), different LLMs have been widely adopted as the backend of various LLM services. Due to differences in model capability, cost, and task preference, LLMs are typically selected to match the requirements of specific service categories, such as knowledge-based question answering, software development, and real-time translation [1], [2]. Such services are commonly realized either through self-hosting models on cloud platforms or through wrapping responses obtained from upstream LLM providers into downstream applications [3], [4], [5], [6]. In these service scenarios, users interact with the model by requesting queries and receiving responses, without direct access to the model parameters or gradients. Among these LLM services, some providers disclose the underlying model identity, thereby allowing users to better assess model capabilities and ensuring greater transparency in service pricing [7], [8], [9]. We refer to them as white-box LLM services, where the underlying LLM identity is explicitly visible to users. In contrast, other providers do not reveal the specific model identity due to flexible upgrades, reduced exposure to model-specific attacks, and the need for customization and service flexibility [10], [11]. We refer to them as black-box LLM services, where users can only access the service interface without knowing the exact underlying model.

In this paper, we primarily focus on the potential security issues associated with black-box LLM services. On the one hand, many existing attacks towards white-box LLM services adopt an adaptive attack paradigm, in which attackers make use of the disclosed LLM identity and tailor their attack strategies to exploit model-specific vulnerabilities [12], [13]. These attacks have been demonstrated to pose substantial security risks to LLM services [14], [15]. However, concealing the underlying model identity does not necessarily prevent model-specific adaptive attacks. Attackers who infer the hidden LLM identity can similarly apply adaptive attacks to exploit model-specific vulnerabilities [16]. On the other hand, when the identity of the underlying LLM is not disclosed, a malicious service provider may violate the copyright or licensing agreements associated with the model [17], such as by directly deploying a model whose license prohibits commercial use. Therefore, identifying the underlying LLM identity is essential for assessing the real-world risks of black-box LLM services and auditing potential copyright or licensing violations. This task can be formulated as the problem of identifying LLM fingerprints in LLM services. Several prior studies have attempted to extract LLM fingerprints from black-box LLM services [16], [18], [19]. However, these methods suffer from inherent limitations.

First, existing approaches typically rely on a fixed set of queries to probe target LLM services. This static querying strategy lacks the ability to adapt to service-specific guardrails, such as safety filters or intent recognition mechanisms, which may alter responses and consequently degrade fingerprinting effectiveness [20], [21]. Second, these methods perform poorly in realistic and complex configurations (e.g., system prompt, sampling settings, and prompting strategies). When the fixed queries are applied under diverse and sophisticated service configurations, the resulting outputs often become unstable, causing the same underlying model to be erroneously identified as having different fingerprints.

To overcome the above limitations, we propose AdaptPrint, a response-adaptive fingerprinting method for identifying hid-

∗^{*}Corresponding author.

den LLM identities in black-box LLM services. To address the first limitation, AdaptPrint adaptively generates benign and domain-relevant queries for the target LLM service. To address the second limitation, AdaptPrint introduces a response-consistency-based paradigm, in which fixed queries are no longer used as the starting point for LLM fingerprint analysis. Instead, fingerprint analysis is initiated from the responses produced by the target model itself and is subsequently conducted based on those responses.

Specifically, AdaptPrint first adaptively generates queries towards the domain of the target LLM service and collects the resulting responses. It then builds a candidate model pool and performs similarity-based comparison. For fingerprint identification, AdaptPrint integrates three response consistency probing strategies: Direct Probing, Continuation Probing, and Follow-up Probing, and aggregates the information collected from these strategies to perform fingerprint matching. Experimental results demonstrate that, across 18 distinct system prompts, and 27 candidate models, AdaptPrint achieves Top-1, Top-3, and Top-5 accuracies of 80.6%, 90.3%, and 92.1%, respectively, improving over the baseline by 32.5, 21.3, and 15.2 percentage points. In addition, AdaptPrint remains effective under common defense mechanisms, such as safety check and intent detection, and its reliability is further demonstrated across different levels of randomness in the decoding parameters. AdaptPrint performs well in open-set verification, which allows the target to be rejected as belonging to none of the candidate models, demonstrating its applicability beyond closed-set classification.

Contributions. We make the following contributions.

• We present a new perspective on LLM fingerprinting through response consistency probing. Instead of relying on a fixed set of predefined queries, AdaptPrint adaptively generates probes and uses the target model’s responses as anchors for fingerprinting.

• We propose AdaptPrint, a response-adaptive fingerprinting method for revealing LLM identities in black-box services. AdaptPrint integrates three progressive response-consistency probing strategies: Direct Probing, Continuation Probing, and Follow-up Probing. The three probing strategies enable progressive, multi-dimensional response matching for robust LLM fingerprints.

• We perform extensive experimental evaluations under diverse system prompts, sampling parameters, prompting strategies and different LLMs. The results show that AdaptPrint consistently outperforms state-of-the-art (SOTA) black-box fingerprinting methods and remains effective across a variety of scenarios, demonstrating its reliability and general applicability.

References (67)