PrivacyCAT: Privacy-Aware Code Analysis at Scale
Authors:
- Ke MaoKMKe Mao
- Cons ÅhsCÅCons Åhs
- Sopot CelaSCSopot Cela
- Dino DistefanoDDDino Distefano
- Nick GardnerNGNick Gardner
- Radu GrigoreRGRadu Grigore
- Per GustafssonPGPer Gustafsson
- Ákos HajduÁHÁkos Hajdu
- Timotej KapusTKTimotej Kapus
- Matteo MarescottiMMMatteo Marescotti
- Gabriela Cunha SampaioGSGabriela Cunha Sampaio
- Thibault SuzanneTSThibault Suzanne
Open Access
- 14 April 2024
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 106-117
Abstract
Static and dynamic code analyses have been widely adopted in industry to enhance software reliability, security, and performance by automatically detecting bugs in the code. In this paper, we introduce PrivacyCAT1, a code analysis system developed and deployed at WhatsApp to protect user privacy. PrivacyCAT automatically detects privacy defects in code at early stages (before reaching production and affecting users), and therefore, it prevents such vulnerabilities from evolving into privacy incidents. PrivacyCAT comprises of a collection of static and dynamic taint analysers. We report on the technical development of PrivacyCAT and the results of two years of its large-scale industrial deployment at WhatsApp. We present our experience in designing its system architecture, and continuous integration process. We discuss the unique challenges encountered in developing and deploying such kind of analyses within an industrial context. Since its deployment in 2021, PrivacyCAT has safeguarded data privacy in 74% of privacy site events (SEVs). It has prevented 493 potential privacy SEVs from being introduced into the codebases, enabling developers to maintain a high privacy standard for the code that supports over two billion WhatsApp users.Keywords
This publication has 27 references indexed in Scilit:
- PTPDroid: Detecting Violated User Privacy Disclosures to Third-Parties of Android Apps2023
- Long-term Static Analysis Rule Quality Monitoring Using True Negatives2023
- FAUSTA: Scaling Dynamic Analysis with Traffic Generation at WhatsApp2022
- Mobile app privacy in software engineering research: A systematic mapping studyInformation and Software Technology, 2021
- Deploying Search Based Software Engineering with Sapienz at Facebook2018
- Security and Privacy Analysis of Mobile Health Applications: The Alarming State of PracticeIEEE Access, 2018
- Static analysis of android apps: A systematic literature reviewInformation and Software Technology, 2017
- Runtime Verification Based on Register Automata2013
- Infer: An Automatic Program Verifier for Memory Safety of C Programs2011
- Detecting and Debugging Insecure Information Flows2005