TRAP: Targeted Random Adversarial Prompt Honeypot for Black-Box Identification

Martin Gubri, Dennis Ulmer, Hwaran Lee, Sangdoo Yun, Seong Joon Oh
2/20/2024
cs.LGcs.AIcs.CL

No official code found. Best implementation: parameterlab/trap (15 stars, MIT, last commit 2024-11-20).

Abstract

Large Language Model (LLM) services and models often come with legal rules on who can use them and how they must use them. Assessing the compliance of the released LLMs is crucial, as these rules protect the interests of the LLM contributor and prevent misuse. In this context, we describe the novel fingerprinting problem of Black-box Identity Verification (BBIV). The goal is to determine whether a third-party application uses a certain LLM through its chat function. We propose a method called Targeted Random Adversarial Prompt (TRAP) that identifies the specific LLM in use. We repurpose adversarial suffixes, originally proposed for jailbreaking, to get a pre-defined answer from the target LLM, while other models give random answers. TRAP detects the target LLMs with over 95% true positive rate at under 0.2% false positive rate even after a single interaction. TRAP remains effective even if the LLM has minor changes that do not significantly alter the original function.

View on arXivView PDF

Code Implementations(1)

parameterlab/trapCommunity100%
MIT

Source code of "TRAP: Targeted Random Adversarial Prompt Honeypot for Black-Box Identification", ACL2024 (findings)

151Shell, PythonFeb 19, 20241 years agoMIT
acl2024adversarial-attacksfingerprintfingerprintinglarge-language-models+2 more

Similar Papers

Cite this paper

@article{gubri2024trap,
  title  = {TRAP: Targeted Random Adversarial Prompt Honeypot for Black-Box Identification},
  author = {Martin Gubri and Dennis Ulmer and Hwaran Lee and Sangdoo Yun and Seong Joon Oh},
  year   = {2024},
  eprint = {2402.12991},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.12991v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2402.12991.svg)](https://codeofpaper.com/paper/2402.12991)

Discussion