CookieLens โ€” Making Cookie Consent Actually Make Sense ๐Ÿ’ก Inspiration CookieLens was inspired by a simple but pressing question:

"Do users really know what data leaves a website when they click Accept Cookies?" Most consent banners today are just legal checkboxes โ€” not real transparency tools. We wanted to change that. CookieLens reimagines cookie compliance by combining AI and code/runtime analysis to actually explain what's happening: ๐Ÿ‘‰ what data goes where โ€” and why. โš™๏ธ What It Does CookieLens is an AI-powered compliance agent that automatically scans any website, detects every cookie and outbound data flow, and explains โ€” in clear, human language โ€” exactly what's being shared. It generates: ๐Ÿงฉ A ready-to-embed consent banner ๐ŸŒ A visual data-sharing report ๐Ÿ“œ A compliant, multilingual cookie policy ๐Ÿ“Š A comprehensive compliance analysis against GDPR, CCPA, and SOC2 frameworks All within minutes โ€” and all automatically. ๐Ÿง  How We Built It We brought four powerful technologies together: ๐Ÿ•ต๏ธโ€โ™‚๏ธ Semgrep โ†’ static code analysis to find cookie writes, trackers, and outbound data points. ๐ŸŒ Puppeteer โ†’ runtime scanning to observe cookies and third-party network calls in action. ๐Ÿ’ฌ Claude (via AWS Bedrock) โ†’ natural-language explanations that turn raw technical evidence into friendly, multilingual summaries. ๐Ÿ” Vanta (via MCP Server) โ†’ compliance framework integration that automatically evaluates cookie practices against GDPR, CCPA, and SOC2 requirements, generating actionable compliance scores and remediation recommendations. Everything runs securely inside AWS, with encryption, access control, and zero data leaving the environment. ๐Ÿงฉ Challenges We Ran Into Keeping cookie and PII data secure while still analyzing it effectively. Building accurate classification rules across thousands of different cookie and tracker names. Getting Claude to write legally sound and user-friendly summaries (not easy!). Making the AI explanations feel natural inside a responsive, lightweight React banner. Mapping runtime scan data to specific compliance framework controls across multiple regulations. ๐Ÿ† Accomplishments We're Proud Of Built a full end-to-end AI compliance pipeline in under 24 hours. Achieved 90%+ detection coverage across popular CMS and e-commerce sites. Delivered clear, multilingual explanations users actually understand. Created a modern, embeddable consent UI that's compliant, elegant, and transparent. Integrated automated compliance scoring that maps findings directly to GDPR, CCPA, and SOC2 controls. ๐Ÿ“š What We Learned How to bridge static and dynamic analysis for real-world privacy auditing. How to build trustworthy AI that explains rather than obscures. That clarity beats legal jargon โ€” transparency builds user trust. How to leverage compliance frameworks as code through Vanta's API to make regulations actionable. And most importantly: privacy by design isn't just possible โ€” it's powerful. ๐Ÿš€ What's Next for CookieLens We're just getting started. Next, we plan to: โšก Add real-time script blocking based on consent preferences. ๐Ÿงฎ Expand cookie classification with ML-powered heuristics. ๐Ÿ“Š Launch a developer dashboard to monitor compliance drift over time. ๐Ÿงฐ Open-source a lightweight CookieLens CLI + API for CI integration. ๐Ÿ” Expand framework coverage to include ISO 27001, HIPAA, and regional privacy laws. ๐Ÿงก Privacy shouldn't be painful โ€” CookieLens makes it understandable.

Built With

Share this project:

Updates