Back to search

Case Western Reserve University School of Graduate Studies

LLM-Based Detection Of Browser Fingerprinting in JavaScript

Abstract

dc:description

Browser fingerprinting enables persistent user tracking and poses a growing threat to online privacy. While large language models (LLMs) show promise for automating code analysis, their capability to detect browser fingerprinting in JavaScript is not well understood. This thesis systematically evaluates twelve leading LLMs—including both open-source (e.g., CodeLlama, Mixtral) and commercial (e.g., OpenAI GPT, Anthropic Claude) models—for binary classification of JavaScript scripts as fingerprinting or non-fingerprinting.Using a balanced, randomized subset of 1,000 scripts from the FP-Fed1 dataset, we assess all models with standardized prompts and metrics, and specifically examine detection across four major categories of browser fingerprinting: canvas, WebRTC, canvas font, and audio. Results show that commercial models outperform open-source alternatives (OpenAI: F1 = 0.7490; Claude: F1 = 0.7498), though models like CodeLlama and Mixtral-8x7B remain competitive in some settings.Context window limitations and prompt truncation present key challenges, especially for open-source models in few-shot scenarios. This work provides the first comprehensive benchmarking of LLMs for browser fingerprinting detection, highlighting both their potential and current limitations. Our findings emphasize the importance of prompt engineering, resource constraints, and model selection for practical deployment. Future directions include fine-tuning open-source models and optimizing prompt design. Overall, LLMs represent a promising and evolving tool for enhancing web privacy and security.

Degree

thesis:*
Name thesis:degree_name
Master of Sciences
Level thesis:degree_level
masters
Discipline thesis:degree_discipline
EECS - Computer and Information Sciences
Grantor dc:publisher
Case Western Reserve University School of Graduate Studies
Year dc:date
2025

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Gordon, Lyris
Contributors dc:contributor
  • Wang, An

Subjects

dc:subject × 1

Rights

dc:rights
Statement dc:rights
  • unrestricted
  • This thesis or dissertation is protected by copyright: all rights reserved. It may not be copied or redistributed beyond the terms of applicable copyright laws.
Language dc:language
English

Identifiers

dc:identifier.*

Chain of custody

source
Harvested from
OhioLINK
Base URL
etd.ohiolink.edu/acprod/odb_etd/ws/oai/oai
Last updated
2026-11-26
Source record
OAI-PMH GetRecord
citation

Gordon, Lyris. LLM-Based Detection Of Browser Fingerprinting in JavaScript. masters thesis, Case Western Reserve University School of Graduate Studies, 2025. http://rave.ohiolink.edu/etdc/view?acc_num=case1752243286807377