LLM-Based Compliance Analysis of Declared Policies and Actual Cookie Usage on Websites

This paper proposes a solution to analyze the compliance between the declared website policies and their observed cookie data and behaviors. The process focuses on five key cookie attributes: name, purpose, retention period, third-party involvement, and permitted behaviors. First, samples are constructed from 12,167 cookie policy URLs via extraction of text and tables, translation to English, and attribute annotation. Second, a LLaMA-3.1-8B-Instruct model is fine-tuned with LoRA and guided by a prompt to extract cookie attributes in a structured format. In parallel, the model classifies each attribute as specific, general, or undefined based on the level of specificity in cookie declarations. Third, three matching strategies, each dedicated to one level of specificity, are defined to compare the extracted information against the observed cookie data and behaviors. The model achieves 87.34% specificity classification accuracy and 91.46% average F1-score across extracted attributes on a test set of 3,042 samples. The solution is deployed as a browser extension to enable automated cookie auditing. Evaluation on 200 popular e-commerce websites shows that 47% use undeclared cookies, 80% deploy cookies before obtaining user consent, and 91% include third-party cookies not mentioned in their policies.

Authors

Institutions

Publication Details

Published
2025-08-14
DOI
https://doi.org/10.1109/mapr67746.2025.11133869
Primary Topic
Digital Rights Management and Security
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

LLM-Based Compliance Analysis of Declared Policies and Actual Cookie Usage on Websites

Thi-Huong-Giang Vu, Hong-Son Ha
Digital Rights Management and Security
article

LLM-Based Compliance Analysis of Declared Policies and Actual Cookie Usage on Websites

Thi-Huong-Giang Vu, Hong-Son Ha
article en

Abstract

This paper proposes a solution to analyze the compliance between the declared website policies and their observed cookie data and behaviors. The process focuses on five key cookie attributes: name, purpose, retention period, third-party involvement, and permitted behaviors. First, samples are constructed from 12,167 cookie policy URLs via extraction of text and tables, translation to English, and attribute annotation. Second, a LLaMA-3.1-8B-Instruct model is fine-tuned with LoRA and guided by a prompt to extract cookie attributes in a structured format. In parallel, the model classifies each attribute as specific, general, or undefined based on the level of specificity in cookie declarations. Third, three matching strategies, each dedicated to one level of specificity, are defined to compare the extracted information against the observed cookie data and behaviors. The model achieves 87.34% specificity classification accuracy and 91.46% average F1-score across extracted attributes on a test set of 3,042 samples. The solution is deployed as a browser extension to enable automated cookie auditing. Evaluation on 200 popular e-commerce websites shows that 47% use undeclared cookies, 80% deploy cookies before obtaining user consent, and 91% include third-party cookies not mentioned in their policies.

Hanoi University of Science and Technology (VN)
Zero hunger
Openalex Percentile: Top 66%
Digital Rights Management and Security
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

LLM-Based Compliance Analysis of Declared Policies and Actual Cookie Usage on Websites — Thi-Huong-Giang Vu, Hong-Son Ha · (2025) | TGRS Research Map | TGRS