LLMmap: Fingerprinting For Large Language Models

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Pasquini, Dario, Kornaropoulos, Evgenios M., Ateniese, Giuseppe
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866912227639951360
author Pasquini, Dario
Kornaropoulos, Evgenios M.
Ateniese, Giuseppe
author_facet Pasquini, Dario
Kornaropoulos, Evgenios M.
Ateniese, Giuseppe
contents We introduce LLMmap, a first-generation fingerprinting technique targeted at LLM-integrated applications. LLMmap employs an active fingerprinting approach, sending carefully crafted queries to the application and analyzing the responses to identify the specific LLM version in use. Our query selection is informed by domain expertise on how LLMs generate uniquely identifiable responses to thematically varied prompts. With as few as 8 interactions, LLMmap can accurately identify 42 different LLM versions with over 95% accuracy. More importantly, LLMmap is designed to be robust across different application layers, allowing it to identify LLM versions--whether open-source or proprietary--from various vendors, operating under various unknown system prompts, stochastic sampling hyperparameters, and even complex generation frameworks such as RAG or Chain-of-Thought. We discuss potential mitigations and demonstrate that, against resourceful adversaries, effective countermeasures may be challenging or even unrealizable.
format Preprint
id arxiv_https___arxiv_org_abs_2407_15847
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle LLMmap: Fingerprinting For Large Language Models
Pasquini, Dario
Kornaropoulos, Evgenios M.
Ateniese, Giuseppe
Cryptography and Security
Artificial Intelligence
We introduce LLMmap, a first-generation fingerprinting technique targeted at LLM-integrated applications. LLMmap employs an active fingerprinting approach, sending carefully crafted queries to the application and analyzing the responses to identify the specific LLM version in use. Our query selection is informed by domain expertise on how LLMs generate uniquely identifiable responses to thematically varied prompts. With as few as 8 interactions, LLMmap can accurately identify 42 different LLM versions with over 95% accuracy. More importantly, LLMmap is designed to be robust across different application layers, allowing it to identify LLM versions--whether open-source or proprietary--from various vendors, operating under various unknown system prompts, stochastic sampling hyperparameters, and even complex generation frameworks such as RAG or Chain-of-Thought. We discuss potential mitigations and demonstrate that, against resourceful adversaries, effective countermeasures may be challenging or even unrealizable.
title LLMmap: Fingerprinting For Large Language Models
topic Cryptography and Security
Artificial Intelligence
url https://arxiv.org/abs/2407.15847