TL;DR
This paper introduces Cosmic, an automated framework that uses a novel combination of LLMs, a domain-specific language (DSL), and Datalog to detect GDPR consent violations in web forms. It reveals widespread non-compliance, with 94.1% of analyzed forms exhibiting violations, highlighting a critical gap between legal requirements and real-world implementation.
What Problem Does This Paper Address?
Obtaining informed, freely given, and unambiguous user consent for data processing is a cornerstone of privacy regulations like GDPR and CCPA. However, websites often fail to implement these requirements correctly in their consent mechanisms, particularly in web forms which collect more sensitive personal data than cookie banners. Existing research has largely focused on cookie banners, leaving a significant gap in understanding and auditing consent compliance in web forms. These forms are diverse in structure, difficult to locate, and their compliance is hard to evaluate automatically, creating a challenge for both users and regulators.
Methods
Cosmic tackles this challenge with a multi-stage approach:
- Privacy Policy Analysis (PPA): Uses a Retrieval-Augmented Generation (RAG) approach with LLMs to extract relevant consent requirements from privacy policies, identifying when user consent is legally required.
- Web Form Extraction (WFE): Employs an LLM-based web agent (building on WebArena) to navigate websites and locate consent forms. It then uses a multimodal approach combining HTML parsing and visual analysis to extract form elements and their contextual information.
- Domain-Specific Language (DSL): A custom DSL is used to create a formal, unified representation of diverse web form structures, abstracting away implementation variations.
- Automated Reasoning: GDPR consent requirements are translated into machine-interpretable Datalog rules. Cosmic then converts the DSL representation of web forms into Datalog facts and uses a Datalog engine to formally reason about and detect violations against these rules.
Datasets
- Website Data: The study analyzed 5,823 websites from over 70 categories, selected from the top 12,355 websites in the Tranco dataset. Websites not in English or lacking a privacy policy were excluded. Access was simulated from the United Kingdom.
- Web Forms: 3,598 web forms were analyzed from the selected websites.
- Manual Annotation: 150 web forms were randomly sampled for manual annotation to evaluate Cosmic's performance.
Key Insights and Ideas
- Widespread Non-Compliance: The most striking insight is the sheer prevalence of consent violations. The fact that nearly all analyzed consent forms (94.1%) have at least one violation underscores a systemic issue in how websites handle user consent.
- Withdrawal Unavailability is King (of Violations): A consistent finding across categories is that the lack of clear withdrawal information is the most common compliance failure. This suggests that while websites might collect consent, they often make it difficult for users to revoke it.
- LLMs Bridge the Gap: The paper highlights the effectiveness of LLMs in bridging the gap between natural language privacy policies and formal, machine-executable rules. This is crucial for automating compliance checks.
- DSL for Standardization: The development of a DSL is key to handling the heterogeneity of web forms. It allows for a consistent representation that can be reasoned upon, regardless of the underlying HTML/CSS implementation.
- UI-Level Focus is Critical: While backend compliance is important, the paper emphasizes that UI-level violations directly impact a user's ability to provide valid consent. Cosmic's focus on the interface is therefore highly relevant.
Key Results
- Overall Violation Rate: Cosmic detected 3,384 violations across 94.1% of the 3,598 analyzed consent forms.
- Performance Metrics: Cosmic achieved a True Positive Rate (TPR) of 98.6% for consent detection and 99.1% for violation detection in its end-to-end evaluation.
- Top Violation Types:
- Missing withdrawal information: 89.6% of violating forms.
- Lack of specific purpose disclosure: 7.9%.
- Bundling multiple consent purposes: 12.1%.
- Data controller not specified: 12.2%.
- Category-Specific Rates: Adult/Pornography websites had the highest violation rate (36.1%), while Information Security websites showed the best compliance.
Limitations and Future Work
- UI-Level Only: Cosmic's analysis is limited to the user interface. It cannot verify if consent choices are honored in backend processing, trace data flows, or assess consent record storage.
- LLM Unpredictability: Errors in privacy policy analysis and form extraction can arise from LLM limitations, leading to false positives and negatives.
- Underlying Causes: The study identifies the what (violations) but not the why. Future work could involve developer interviews to understand the reasons behind non-compliance.
- Adaptability: The authors suggest extending Cosmic to other regulations (like CCPA) by updating the DSL and Datalog rules.
- Runtime Mechanisms: Incorporating new consent mechanisms that appear dynamically based on user behavior is a potential area for future development.
Summary updated