English

Attacks and Defenses Against LLM Fingerprinting

Cryptography and Security 2025-08-13 v1 Artificial Intelligence Machine Learning

Abstract

As large language models are increasingly deployed in sensitive environments, fingerprinting attacks pose significant privacy and security risks. We present a study of LLM fingerprinting from both offensive and defensive perspectives. Our attack methodology uses reinforcement learning to automatically optimize query selection, achieving better fingerprinting accuracy with only 3 queries compared to randomly selecting 3 queries from the same pool. Our defensive approach employs semantic-preserving output filtering through a secondary LLM to obfuscate model identity while maintaining semantic integrity. The defensive method reduces fingerprinting accuracy across tested models while preserving output quality. These contributions show the potential to improve fingerprinting tools capabilities while providing practical mitigation strategies against fingerprinting attacks.

Keywords

Cite

@article{arxiv.2508.09021,
  title  = {Attacks and Defenses Against LLM Fingerprinting},
  author = {Kevin Kurian and Ethan Holland and Sean Oesch},
  journal= {arXiv preprint arXiv:2508.09021},
  year   = {2025}
}
R2 v1 2026-07-01T04:46:19.089Z