The Good, the Bad, and the (Un)Usable: A Rapid Literature Review on Privacy as Code

Nicolás E. Díaz Ferreyra 1 , Sirine Khelifi 1 , Nalin Arachchilage 2 and Riccardo Scandariato 1 · 2024

Read The Good, the Bad, and the (Un)Usable: A Rapid Literature Review on Privacy as Code by Nicolás E. Díaz Ferreyra 1 , Sirine Khelifi 1 , Nalin Arachchilage 2 and Riccardo Scandariato 1 (2024) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2412-16667.txt.

Introduction

Nicolás Díaz Ferreyra, Sirine Khelifi, Nalin Arachchilage, and Riccardo Scandariato map a research area in this two thousand twenty-four review. Privacy and security are at the core of trusted information systems. Yet developers often lack training, or treat the two as late thoughts. Security engineering has as-code techniques: automatic vulnerability detection and secure code generation. The privacy mates are far less studied: detection of privacy properties in source code, and generation of privacy-friendly code. The team calls this area Privacy as Code.

Their review sets out what is there: methods and tools, and how they are judged. The verdict is that the field is young, most of all for method quality and usability. The team lays out paths for work to come: studies with developers, curated data sets, and the role AI might play. The paper is a map for researchers who enter privacy engineering.

Catalog record

CREATORNicolás E. Díaz Ferreyra 1 , Sirine Khelifi 1 , Nalin Arachchilage 2 and Riccardo Scandariato 1
YEAR2024
COLLECTIONPAPERS
FORMATTXT
FILE SIZE28 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2412-16667

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

The Good, the Bad, and the (Un)Usable: A Rapid Literature Review on Privacy as Code Nicolás E. Díaz Ferreyra 1 , Sirine Khelifi 1 , Nalin Arachchilage 2 and Riccardo Scandariato 1 Abstract Privacy and security are central to the design of information systems endowed with sound data protection and cyber resilience capabilities. Still, developers often struggle to incorporate these properties into software projects as they either lack proper cybersecurity training or do not consider them a priority. Prior work has tried to support privacy and security engineering activities through threat modeling methods for scrutinizing flaws in system architectures. Moreover, several techniques for the automatic identification of vulnerabilities and the generation of secure code implementations have also been proposed in the current literature. Conversely, such as-code approaches seem under-investigated in the privacy domain, with little work elaborating on (i) the automatic detection of privacy properties in source code or (ii) the generation of privacy-friendly code. In this work, we seek to characterize the current research landscape of Privacy as Code (PaC) methods and tools by conducting a rapid literature review. Our results suggest that PaC research is in its infancy, especially regarding the performance evaluation and usability assessment of the existing approaches. Based on these findings, we outline and discuss prospective research directions concerning empirical studies with software practitioners, the curation of benchmark datasets, and the role of generative AI technologies. I Introduction Privacy engineering has become an imperative part of modern software development due to the emergence of strict legal frameworks such as the General Data Protection Regulation (GDPR) in the European Union [ 1 ] . Overall, it involves multiple activities (e.g., privacy requirements elicitation and threat modeling) that, altogether, seek to (i) bring privacy to the forefront of the development pipeline and (ii) facilitate compliance with these legal provisions and data protection standards alike [ 2 ] . Nonetheless, it remains a challenging task for many developers who do not count on extensive privacy training from either a technical or a legal perspective [ 3 , 4 ] . In turn, privacy requirements are often seen as an afterthought, resulting in system designs and architectures devoid of data protection measurements and prone to personal information breaches [ 5 ] . To revert this tendency, prior work has introduced a wide array of methods and tools that support developers on privacy engineering activities [ 1 ] . These include privacy-aware methodologies for risk management and threat modeling that facilitate the selection and operationalization of Privacy-Enhancing Technologies (PETs) such as differential privacy, federated learning, and homomorphic encryption [ 6 ] . LINDDUN [ 7 ] is one of the most popular of these methods, which consists of a catalog of privacy threats that can be easily identified at the architectural level of an information system. That is, from an abstract representation of the key computing elements of the system under analysis and the information flows exchanged between them [ 8 ] . This approach, in which architectural models are leveraged to conduct privacy assessments, is followed by many other frameworks and standards such as ProPAN [ 9 ] , PRIPARE [ 10 ] , and the ISO 27550 [ 11 ] . Still, these techniques cannot guarantee full coverage, as architectural representations are often produced manually by analysts and do not necessarily correlate with the actual implementation of the system [ 8 ] . Consequently, gaps in the identification of privacy flaws may emerge depending on the precision and granularity of these representations [ 12 , 13 ] . Motivation: Motivated by the limitations of architecture-centered methods, recent work started to explore techniques for the (semi) automatic identification of privacy properties in source code with minimum human intervention [ 14 ] . Such analysis techniques are already quite mature and well-investigated in the security domain [ 15 ] . For instance, static security analysis tools allow for the early identification of vulnerabilities by checking the syntax, logic, and structure of source code. Dynamic tools, on the other hand, do so by running the code and observing its behavior under specific user inputs and execution scenarios [ 16 ] . Although the latter has been fairly investigated in the privacy realm (though largely concentrated on Android) [ 17 ] , the former remains underexplored and calls for a systematic assessment of the state-of-the-art. Particularly, a deep dive into the challenges and limitations of static analysis tools for privacy would help outline future research directions. Furthermore, given (i) the increasing number of tools targeting secure code generation available in the current literature and (ii) recent advances in generative Artificial Intelligence (AI) technologies, a knowledge synthesis of existing approaches addressing privacy-friendly implementations would also be beneficial. Contribution and Research Questions: This work provides a quick yet actionable overview of Privacy as Code (PaC) methods and tools documented in the current literature. That is, on approaches elaborating either on (i) the automatic detection of privacy properties in source code, or (ii) the automatic generation of privacy-friendly implementations. Particularly, we delve into the scope, technicalities, and limitations of state-of-the-art approaches through a rapid literature review. All in all, we aim to answer the following Research Questions (RQs): • RQ1: What is the scope of the techniques implemented by PaC methods and tools? Code generated by PaC tools should implement one (or more) well-known privacy design strategies, such as minimizing , abstracting , or hiding users’ personal information [ 18 ] . Similarly, PaC analysis tools should be capable of identifying threats such as unawareness , data disclosure , or non-compliance [ 7 ] . Hence, to answer this RQ, we identify the privacy threats and design strategies addressed by the primary studies selected in this review. • RQ2: What are the core technical foundations of PaC methods and tools? Abstract source code representations, such as call graphs or abstract syntax trees, are fundamental to static analysis tools, as they help identify common programming mistakes. To answer this RQ, we summarize the code representation methods employed in the PaC literature and the programming languages covered by them. • RQ3: What are the main challenges and limitations of PaC methods and tools? Finally, we identify the issues and open challenges stemming from the current literature concerning the technical performance and usability of existing PaC approaches. Based on these findings, we elaborate and discuss a roadmap to guide future research endeavors around PaC methods and tools. II Background and Related Work Privacy as Architecture: As mentioned earlier, several methods have been proposed to assess privacy threats in software architectures [ 12 , 19 ] . At their core, these methods often require a model of the system under scrutiny to identify privacy issues in the information flows across architectural components. In the case of LINDUNN [ 7 ] , these models are expressed as Data Flow Diagrams (DFDs) depicting processes, data stores, external entities, and the data exchanged between them. Similar to STRIDE [ 20 ] (a threat modeling methodology for security), LINDDUN defines a schema of prospective privacy threats types that may affect specific DFD elements (i.e., L inkability, I dentifiability, N on-repudiation, D etectability, information D isclosure, U nawareness, and N on-Compliance). Such a schema

Read the complete text