LLMs Have Rhythm: Fingerprinting Large Language Models Using Inter-Token Times and Network Traffic Analysis

<p dir="ltr">As Large Language Models (LLMs) become increasingly integrated into many technological ecosystems across various domains and industries, identifying which model is deployed or being interacted with is critical for the security and trustworthiness of the systems. Current...

وصف كامل

محفوظ في:
التفاصيل البيبلوغرافية
المؤلف الرئيسي: Saeif Alhazbi (17058108) (author)
مؤلفون آخرون: Ahmed Hussain (5233775) (author), Gabriele Oligeri (14151426) (author), Panos Papadimitratos (22565177) (author)
منشور في: 2025
الموضوعات:
الوسوم: إضافة وسم
لا توجد وسوم, كن أول من يضع وسما على هذه التسجيلة!
_version_ 1864513533188767744
author Saeif Alhazbi (17058108)
author2 Ahmed Hussain (5233775)
Gabriele Oligeri (14151426)
Panos Papadimitratos (22565177)
author2_role author
author
author
author_facet Saeif Alhazbi (17058108)
Ahmed Hussain (5233775)
Gabriele Oligeri (14151426)
Panos Papadimitratos (22565177)
author_role author
dc.creator.none.fl_str_mv Saeif Alhazbi (17058108)
Ahmed Hussain (5233775)
Gabriele Oligeri (14151426)
Panos Papadimitratos (22565177)
dc.date.none.fl_str_mv 2025-06-24T12:00:00Z
dc.identifier.none.fl_str_mv 10.1109/ojcoms.2025.3577016
dc.relation.none.fl_str_mv https://figshare.com/articles/journal_contribution/LLMs_Have_Rhythm_Fingerprinting_Large_Language_Models_Using_Inter-Token_Times_and_Network_Traffic_Analysis/30541070
dc.rights.none.fl_str_mv CC BY 4.0
info:eu-repo/semantics/openAccess
dc.subject.none.fl_str_mv Information and computing sciences
Artificial intelligence
Cybersecurity and privacy
Machine learning
Large language models
small language models
fingerprinting
network traffic analysis
deep learning
network security
Computational modeling
Analytical models
Watermarking
Telecommunication traffic
Virtual private networks
Timing
Feature extraction
Local area networks
dc.title.none.fl_str_mv LLMs Have Rhythm: Fingerprinting Large Language Models Using Inter-Token Times and Network Traffic Analysis
dc.type.none.fl_str_mv Text
Journal contribution
info:eu-repo/semantics/publishedVersion
text
contribution to journal
description <p dir="ltr">As Large Language Models (LLMs) become increasingly integrated into many technological ecosystems across various domains and industries, identifying which model is deployed or being interacted with is critical for the security and trustworthiness of the systems. Current verification methods typically rely on analyzing the generated output to determine the source model. However, these techniques are susceptible to adversarial attacks, operate in a post-hoc manner, and may require access to the model weights to inject a verifiable fingerprint. In this paper, we propose a novel passive fingerprinting framework that operates in real-time and remains effective even under encrypted network traffic conditions. Our method leverages the intrinsic autoregressive generation nature of language models, which generate text one token at a time based on all previously generated tokens, creating a unique temporal pattern-like a rhythm or heartbeat-that persists even when the output is streamed over a network. We find that measuring the Inter-Token Times (ITTs)–time intervals between consecutive tokens-can identify different language models with high accuracy. We develop a Deep Learning (DL) pipeline to capture these timing patterns using network traffic analysis and evaluate it on 16 Small Language Models (SLMs) and 10 proprietary LLMs across different deployment scenarios, including local host machine (GPU/CPU), Local Area Network (LAN), Remote Network, and when using Virtual Private Network (VPN). Our experimental results demonstrate high classification performance with weighted F1-scores of 85% when tested on a different day, 74% across different networks, and 71% when traffic is tunneled through a VPN connection. This work opens a new avenue for model identification in real-world scenarios and contributes to more secure and trustworthy language model deployment.</p><h2>Other Information</h2><p dir="ltr">Published in: IEEE Open Journal of the Communications Society<br>License: <a href="https://creativecommons.org/licenses/by/4.0/deed.en" target="_blank">https://creativecommons.org/licenses/by/4.0/</a><br>See article on publisher's website: <a href="https://dx.doi.org/10.1109/ojcoms.2025.3577016" target="_blank">https://dx.doi.org/10.1109/ojcoms.2025.3577016</a></p>
eu_rights_str_mv openAccess
id Manara2_112a13f2a21a54930ab50944d78e7587
identifier_str_mv 10.1109/ojcoms.2025.3577016
network_acronym_str Manara2
network_name_str Manara2
oai_identifier_str oai:figshare.com:article/30541070
publishDate 2025
repository.mail.fl_str_mv
repository.name.fl_str_mv
repository_id_str
rights_invalid_str_mv CC BY 4.0
spelling LLMs Have Rhythm: Fingerprinting Large Language Models Using Inter-Token Times and Network Traffic AnalysisSaeif Alhazbi (17058108)Ahmed Hussain (5233775)Gabriele Oligeri (14151426)Panos Papadimitratos (22565177)Information and computing sciencesArtificial intelligenceCybersecurity and privacyMachine learningLarge language modelssmall language modelsfingerprintingnetwork traffic analysisdeep learningnetwork securityComputational modelingAnalytical modelsWatermarkingTelecommunication trafficVirtual private networksTimingFeature extractionLocal area networks<p dir="ltr">As Large Language Models (LLMs) become increasingly integrated into many technological ecosystems across various domains and industries, identifying which model is deployed or being interacted with is critical for the security and trustworthiness of the systems. Current verification methods typically rely on analyzing the generated output to determine the source model. However, these techniques are susceptible to adversarial attacks, operate in a post-hoc manner, and may require access to the model weights to inject a verifiable fingerprint. In this paper, we propose a novel passive fingerprinting framework that operates in real-time and remains effective even under encrypted network traffic conditions. Our method leverages the intrinsic autoregressive generation nature of language models, which generate text one token at a time based on all previously generated tokens, creating a unique temporal pattern-like a rhythm or heartbeat-that persists even when the output is streamed over a network. We find that measuring the Inter-Token Times (ITTs)–time intervals between consecutive tokens-can identify different language models with high accuracy. We develop a Deep Learning (DL) pipeline to capture these timing patterns using network traffic analysis and evaluate it on 16 Small Language Models (SLMs) and 10 proprietary LLMs across different deployment scenarios, including local host machine (GPU/CPU), Local Area Network (LAN), Remote Network, and when using Virtual Private Network (VPN). Our experimental results demonstrate high classification performance with weighted F1-scores of 85% when tested on a different day, 74% across different networks, and 71% when traffic is tunneled through a VPN connection. This work opens a new avenue for model identification in real-world scenarios and contributes to more secure and trustworthy language model deployment.</p><h2>Other Information</h2><p dir="ltr">Published in: IEEE Open Journal of the Communications Society<br>License: <a href="https://creativecommons.org/licenses/by/4.0/deed.en" target="_blank">https://creativecommons.org/licenses/by/4.0/</a><br>See article on publisher's website: <a href="https://dx.doi.org/10.1109/ojcoms.2025.3577016" target="_blank">https://dx.doi.org/10.1109/ojcoms.2025.3577016</a></p>2025-06-24T12:00:00ZTextJournal contributioninfo:eu-repo/semantics/publishedVersiontextcontribution to journal10.1109/ojcoms.2025.3577016https://figshare.com/articles/journal_contribution/LLMs_Have_Rhythm_Fingerprinting_Large_Language_Models_Using_Inter-Token_Times_and_Network_Traffic_Analysis/30541070CC BY 4.0info:eu-repo/semantics/openAccessoai:figshare.com:article/305410702025-06-24T12:00:00Z
spellingShingle LLMs Have Rhythm: Fingerprinting Large Language Models Using Inter-Token Times and Network Traffic Analysis
Saeif Alhazbi (17058108)
Information and computing sciences
Artificial intelligence
Cybersecurity and privacy
Machine learning
Large language models
small language models
fingerprinting
network traffic analysis
deep learning
network security
Computational modeling
Analytical models
Watermarking
Telecommunication traffic
Virtual private networks
Timing
Feature extraction
Local area networks
status_str publishedVersion
title LLMs Have Rhythm: Fingerprinting Large Language Models Using Inter-Token Times and Network Traffic Analysis
title_full LLMs Have Rhythm: Fingerprinting Large Language Models Using Inter-Token Times and Network Traffic Analysis
title_fullStr LLMs Have Rhythm: Fingerprinting Large Language Models Using Inter-Token Times and Network Traffic Analysis
title_full_unstemmed LLMs Have Rhythm: Fingerprinting Large Language Models Using Inter-Token Times and Network Traffic Analysis
title_short LLMs Have Rhythm: Fingerprinting Large Language Models Using Inter-Token Times and Network Traffic Analysis
title_sort LLMs Have Rhythm: Fingerprinting Large Language Models Using Inter-Token Times and Network Traffic Analysis
topic Information and computing sciences
Artificial intelligence
Cybersecurity and privacy
Machine learning
Large language models
small language models
fingerprinting
network traffic analysis
deep learning
network security
Computational modeling
Analytical models
Watermarking
Telecommunication traffic
Virtual private networks
Timing
Feature extraction
Local area networks