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

Manuscript Offprint

arXiv:2609.00052

AgentProv: Auditing Agentic LLM API Providers via Tool-use Policy Probes

Xun Wang, Bihe Zhao, Michael Backes, Franziska Boenisch, Adam Dziedzic

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

Abstract

Commercial LLM APIs advertise a specific foundation model, but the served backbone may be silently substituted, quantized, or wrapped, for example to save deployment costs. All existing audits decide backbone identity from the text-output channel, which is structurally fragile for agentic APIs because modern serving stacks (OpenAI, Anthropic, Gemini, Cloudflare Workers AI, LangGraph) discard text and expose only structured actions when the model calls a tool, and provider-injected system prompts can distort text distributions enough that text-channel tests falsely accuse honest providers of substituting the claimed model. We observe that recent agentic post-training internalizes tool-use directly into the weights, opening a new audit channel that the serving stack still exposes and that is largely invariant to deployment context. We introduce Agentic Provenance (AgentProv), the first action-based identity audit for agentic LLM APIs: AgentProv fingerprints a deployed model through its categorical tool-call distribution and decides identity via an MMD permutation test. AgentProv catches every substituted model (100% on 630 evaluated checkpoint pairs), while holding the false-positive rate under system-prompt injection at 7% (vs. 67% for MET and 53% for RUT). On third-party API endpoints, AgentProv's disagreements with MET are consistent with an independent token-count side-channel that detects provider-injected system prompts.

1 Introduction

Commercial LLMs are increasingly served through APIs that advertise a specific foundation model but operate as black boxes. The backbone behind an endpoint may be the advertised model, but can also be a quantized variant, a cheaper distilled substitute, or a wrapper routing to an open-weight alternative (Figure 1). Recent audits quantify the scale: Gao et al. (2025) flagged 11 of 31 commercial Llama endpoints as serving distributions different

Figure

Figure 1: An auditor queries a suspect API endpoint with a probe state ss; aa denotes the resulting tool-call action and π(a∣s)\pi(a \mid s) its conditional action policy. AgentProv compares this policy against a trusted reference and detects deviations from the claimed model, exposing a silent backbone substitution.

from their reference, and Zhang et al. (2026b) surveyed 17 third-party wrappers and reported 45.8% endpoint-level identity failure, including wholesale backbone swaps such as GPT-5 to GLM-4-9B. Such discrepancies between the claimed and actually deployed models call for an auditing tool for probing what is behind the public API.

Most existing auditing methods, including MET (Gao et al., 2025) and RUT (Zhu et al., 2026), treat the model's natural-language output as its fingerprint, applying two-sample tests over text completions. However, we observe two converging trends that are weakening natural-language completions as a reliable channel for agentic LLM API auditing. First, production agentic serving stacks increasingly expose tool invocations as structured actions; in some configurations, they emit only the action, without the surrounding natural-language continuation (OpenAI, 2026; Anthropic, 2026), which leaves text channel probes a limited space to operate on. Second, providers routinely place their own system prompts and template chrome on top of the auditor's request (Zhang et al., 2026b), which shifts surface tokens without changing the underlying weights. As a consequence, a text-channel probe rejects identity and falsely accuses an honest provider of substituting the claimed model, only due to the different system prompts that the API providers adopt.

On top of the pure text output, tool-use behavior is now trained directly into model weights of agentic LLMs via dedicated post-training pipelines (Schick et al., 2023; Patil et al., 2024; Yang et al., 2025; Team et al., 2026). The resulting tool-call policy is a behavioral signature of the model that the serving stack still fully exposes, even when text is not fully exposed. In addition, the tool choice behavior is robust to the changes on the prompt surface: small prompt-level changes rarely flip which tool the model invokes in a given situation, so action-level decisions are robust to exactly the deployment-context modifications that move text distributions.

Motivated by the above observation, we propose Agentic Provenance (AgentProv), the first action-based identity audit for agentic LLM APIs. Given a claimed model and a suspect endpoint, AgentProv places both in a small number of tool-use situations and prompts the model to select from a given tool pool for solving the task. The empirical distribution over these tool-call choices is the model's fingerprint, and we build a Maximum Mean Discrepancy (MMD) test on the collected fingerprint to decide whether the deployed model behind the API exhibits the expected policy. Our proposed AgentProv can operate even when text is stripped, and it is largely invariant to the system prompts and templates providers inject around the model.

Our contributions are summarized as follows:

  1. We identify structural failures of text-channel API audits, observing that provider-side system prompts cause text-channel tests to falsely accuse honest providers of serving a substituted model.

  2. We propose Agentic Provenance (AgentProv), the first action-based identity audit for agentic LLM APIs, which fingerprints a deployed model through its categorical tool-call distribution on probe states and decides identity via an MMD test.

  3. Our experimental results demonstrate that AgentProv accurately catches model substitution with 100% rejection on 630 evaluated checkpoint pairs. More importantly, AgentProv keeps the false-positive rate under system-prompt injection at 7% versus 67% for MET and 53% for RUT.

References (12)