cs.AINov 24, 2026

CAPTA: Identifying LLMs Behind AI Agents

Authors: Kailun Yan, Yue Huang, Sisi Duan

Organizations: Tsinghua University

Abstract

Large language model (LLM)-based agents access remote services through tools to complete user tasks, often via API calls. In this setting, a remote service may want to identify the backend LLM of an agent to launch model-specific attacks, including prompt injection or selective delivery of manipulated content. However, the service cannot directly query the backend model and must instead collect observable responses through its interactions with the agent, making identification challenging. In this paper, we present Completely Automated Preference Test to tell LLMs Apart (CAPTA), a model identification approach inspired by CAPTCHA (Completely Automated Public Turing test to tell Computers and Humans Apart), which distinguishes humans from automated programs. CAPTA presents multiple-choice questions as verification challenges, using differences in models' selection preferences to identify the backend LLM. It selects questions based on cross-model option-generation diversity and uses LLM-guided search to optimize their option sets. Our evaluation shows that CAPTA achieves 99.0% mean identification accuracy with only 10 questions across 25 LLMs from 10 model families. We further evaluate CAPTA with four widely used agents and seven representative LLMs, achieving 99.7% mean identification accuracy across all 28 agent-LLM combinations with 30 submitted answers.

Figures & tables

Explore similar work

CardsList
  1. Known By Their Actions: Fingerprinting LLM Browser Agents via UI Traces

    May 14, 2026William Lugoloobi, Samuele Marro, Jabez Magomere +2Language Model FingerprintingLLM Agent Security

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

    Aug 30, 2026Xun Wang, Bihe Zhao, Michael Backes +2LLM AuditingAI Agent Provenance