Davide Balzarotti
Current Organizations / Institutes
The organizations/institutes from the scholar's latest article
Research Subjects
Davide Balzarotti has a total of 51 co-authors. Here are the top co-authors by number of shared publications:
- Simone Aonzo
EURECOM
7 shared publications - Savino Dambra
GenDigital, Biot, France
6 shared publications - Andrea Oliveri
EURECOM, Biot, France
4 shared publications - Biagio Montaruli
R&D, Dynatrace, Linz, Austria
4 shared publications - Alessio Merlo
CASD - School of Advanced Defense Studies, Rome, Italy
3 shared publications - Andrea Fioraldi
EURECOM, Biot, France
3 shared publications
Latest Publications
- Open Access
- 21 October 2026
- Published by Elsevier in Computers & Security
- Vol. 173
A hybrid static-dynamic analysis for identifying BYOVD vulnerabilities
- 21 October 2026
- Published by Elsevier in Computers & Security
- Vol. 173
Open AccessA hybrid static-dynamic analysis for identifying BYOVD vulnerabilities
- Open Access
- 6 June 2026
- Published by Association for Computing Machinery (ACM) in Digital Threats: Research and Practice
- Vol. 7 (2) , 1-16
An Automated Approach to Reveal Missing Logs around Sensitive Operations
Log messages can play a significant role in different activities, including debugging, monitoring, and security analysis. Yet, they are often placed only for the convenience of development rather than for security relevance. For reliable logging to support security and forensic investigations, logs should be positioned along all execution paths that lead to critical operations that process untrusted user input. This placement ensures that any such operation leaves a reliable and observable trace for forensic trail. In this article, we present BlindSpot, an automated static analysis tool to extract inter-procedural paths where the parameters of critical calls appear within a log statement. Our approach incorporates dataflow and control-flow analysis to precisely capture the relationships between program nodes and model those log elements that are consistently encountered from input to untrusted critical calls (pre-execution), as well as those that always follow afterward (post-execution). We tested our approach on 10 desktop applications, containing 124 sensitive operations that process untrusted input. Our tool revealed significant inconsistencies in logging practices: only 37 of these actions (29.8%) have any associated log statements, and just 8 are logged prior to execution. This reliance on post-execution logging presents a risk because if a critical operation is exploited or causes a crash or failure, the log statements that follow may never execute, leaving no trace for forensic analysis. We also find that log statements are very often conditional and executed only along specific paths. In our analysis, we found that only 5 out of 124 critical operations (4%) are associated with an unconditional log. Through BlindSpot, we demonstrate how the inconsistency, conditionality, and absence of logs around critical operations raise concerns about the reliability of logs as a source of evidence.
- 6 June 2026
- Published by Association for Computing Machinery (ACM) in Digital Threats: Research and Practice
- Vol. 7 (2) , 1-16
Open AccessAn Automated Approach to Reveal Missing Logs around Sensitive Operations
Log messages can play a significant role in different activities, including debugging, monitoring, and security analysis. Yet, they are often placed only for the convenience of development rather than for security relevance. For reliable logging to support security and forensic investigations, logs should be positioned along all execution paths that lead to critical operations that process untrusted user input. This placement ensures that any such operation leaves a reliable and observable trace for forensic trail. In this article, we present BlindSpot, an automated static analysis tool to extract inter-procedural paths where the parameters of critical calls appear within a log statement. Our approach incorporates dataflow and control-flow analysis to precisely capture the relationships between program nodes and model those log elements that are consistently encountered from input to untrusted critical calls (pre-execution), as well as those that always follow afterward (post-execution). We tested our approach on 10 desktop applications, containing 124 sensitive operations that process untrusted input. Our tool revealed significant inconsistencies in logging practices: only 37 of these actions (29.8%) have any associated log statements, and just 8 are logged prior to execution. This reliance on post-execution logging presents a risk because if a critical operation is exploited or causes a crash or failure, the log statements that follow may never execute, leaving no trace for forensic analysis. We also find that log statements are very often conditional and executed only along specific paths. In our analysis, we found that only 5 out of 124 critical operations (4%) are associated with an unconditional log. Through BlindSpot, we demonstrate how the inconsistency, conditionality, and absence of logs around critical operations raise concerns about the reliability of logs as a source of evidence.
- Open Access
- 4 June 2026
- Published by Association for Computing Machinery (ACM)
- p. 1371-1386
SoK: Systematization, Detection, and Hunting of Windows Malware Persistence Techniques
- 4 June 2026
- Published by Association for Computing Machinery (ACM)
- p. 1371-1386
Open AccessSoK: Systematization, Detection, and Hunting of Windows Malware Persistence Techniques
- Open Access
- 4 June 2026
- Published by Association for Computing Machinery (ACM)
- p. 1555-1569
The Role of Domain-Specific Features in Malware Detection: A macOS Case Study
Despite the growing popularity of macOS among end users and enterprise systems, malware research has primarily focused on Windows and Android operating systems, leaving the problem of macOS malware detection relatively unexplored. Indeed, the specificity of the operating system and the unique characteristics of the Mach-O file format can play a fundamental role in the classification of unknown samples, drastically increasing the detection rate. In this work, for the first time in the literature, we employ new domain-specific features, i.e., static features specific to macOS binaries, such as embedded certificates, entitlements, persistence techniques and key system APIs, to train a machine learning malware detector. We perform a comprehensive experimental evaluation on a novel dataset of 41,129 samples, comprising 11,413 benign and 29,716 malicious executables, and demonstrate that our solution achieves state-of-the-art detection performance (98.50%), outperforming all existing approaches, with an average improvement of 16% in terms of detection rate. We also provide an in-depth analysis of the importance of the individual features, showing that our detector effectively leverages the new domain-specific features. Then, in order to evaluate the generalization capabilities of our detector over time, we perform a real-world evaluation on a new dataset of 9,000 fresh macOS executables. The results show that (i) our detector maintains a very high detection rate (99.50%), (ii) outperforms the state-of-the-art by 50%, and (iii) the domain-specific features are crucial for generalizing to novel malware samples, as their removal leads to a 15.92% drop in detection performance. Finally, we also release our dataset to the research community.
- 4 June 2026
- Published by Association for Computing Machinery (ACM)
- p. 1555-1569
Open AccessThe Role of Domain-Specific Features in Malware Detection: A macOS Case Study
Despite the growing popularity of macOS among end users and enterprise systems, malware research has primarily focused on Windows and Android operating systems, leaving the problem of macOS malware detection relatively unexplored. Indeed, the specificity of the operating system and the unique characteristics of the Mach-O file format can play a fundamental role in the classification of unknown samples, drastically increasing the detection rate. In this work, for the first time in the literature, we employ new domain-specific features, i.e., static features specific to macOS binaries, such as embedded certificates, entitlements, persistence techniques and key system APIs, to train a machine learning malware detector. We perform a comprehensive experimental evaluation on a novel dataset of 41,129 samples, comprising 11,413 benign and 29,716 malicious executables, and demonstrate that our solution achieves state-of-the-art detection performance (98.50%), outperforming all existing approaches, with an average improvement of 16% in terms of detection rate. We also provide an in-depth analysis of the importance of the individual features, showing that our detector effectively leverages the new domain-specific features. Then, in order to evaluate the generalization capabilities of our detector over time, we perform a real-world evaluation on a new dataset of 9,000 fresh macOS executables. The results show that (i) our detector maintains a very high detection rate (99.50%), (ii) outperforms the state-of-the-art by 50%, and (iii) the domain-specific features are crucial for generalizing to novel malware samples, as their removal leads to a 15.92% drop in detection performance. Finally, we also release our dataset to the research community.
- Open Access
- 23 March 2026
- Published by Association for Computing Machinery (ACM)
- p. 1664-1672
SourceBroken: A large-scale analysis on the (un)reliability of SourceRank in the PyPI ecosystem
- 23 March 2026
- Published by Association for Computing Machinery (ACM)
- p. 1664-1672
Open AccessSourceBroken: A large-scale analysis on the (un)reliability of SourceRank in the PyPI ecosystem
- Open Access
One Detector Fits All: Robust and Adaptive Detection of Malicious Packages from PyPI to Enterprises
The rise of supply chain attacks via malicious Python packages demands robust detection solutions. Current approaches, however, overlook two critical challenges: robustness against adversarial source code transformations and adaptability to the varying false positive rate (FPR) requirements of different actors, from repository maintainers (requiring low FPR) to enterprise security teams (higher FPR tolerance). We introduce a robust detector capable of seamless integration into both public repositories like PyPI and enterprise ecosystems. To ensure robustness, we propose a novel methodology for generating adversarial packages using fine-grained code obfuscation. Combining these with adversarial training (AT) enhances detector robustness by 2.5x. We comprehensively evaluate AT effectiveness by testing our detector against 122,398 packages collected daily from PyPI over 80 days, showing that AT needs careful application: it makes the detector more robust to obfuscations and allows finding 10% more obfuscated packages, but slightly decreases performance on non-obfuscated packages. We demonstrate production adaptability of our detector via two case studies: (i) one for PyPI maintainers (tuned at 0.1% FPR) and (ii) one for enterprise teams (tuned at 10% FPR). In the former, we analyze 91,949 packages collected from PyPI over 37 days, achieving a daily detection rate of 2.48 malicious packages with only 2.18 false positives. In the latter, we analyze 1,596 packages adopted by a multinational software company, obtaining only 1.24 false positives daily. These results show that our detector can be seamlessly integrated into both public repositories like PyPI and enterprise ecosystems, ensuring a very low time budget of a few minutes to review the false positives. Overall, we uncovered 346 malicious packages, now reported to the community.
Open AccessOne Detector Fits All: Robust and Adaptive Detection of Malicious Packages from PyPI to Enterprises
The rise of supply chain attacks via malicious Python packages demands robust detection solutions. Current approaches, however, overlook two critical challenges: robustness against adversarial source code transformations and adaptability to the varying false positive rate (FPR) requirements of different actors, from repository maintainers (requiring low FPR) to enterprise security teams (higher FPR tolerance). We introduce a robust detector capable of seamless integration into both public repositories like PyPI and enterprise ecosystems. To ensure robustness, we propose a novel methodology for generating adversarial packages using fine-grained code obfuscation. Combining these with adversarial training (AT) enhances detector robustness by 2.5x. We comprehensively evaluate AT effectiveness by testing our detector against 122,398 packages collected daily from PyPI over 80 days, showing that AT needs careful application: it makes the detector more robust to obfuscations and allows finding 10% more obfuscated packages, but slightly decreases performance on non-obfuscated packages. We demonstrate production adaptability of our detector via two case studies: (i) one for PyPI maintainers (tuned at 0.1% FPR) and (ii) one for enterprise teams (tuned at 10% FPR). In the former, we analyze 91,949 packages collected from PyPI over 37 days, achieving a daily detection rate of 2.48 malicious packages with only 2.18 false positives. In the latter, we analyze 1,596 packages adopted by a multinational software company, obtaining only 1.24 false positives daily. These results show that our detector can be seamlessly integrated into both public repositories like PyPI and enterprise ecosystems, ensuring a very low time budget of a few minutes to review the false positives. Overall, we uncovered 346 malicious packages, now reported to the community.
- 18 October 2025
- Published by Springer Nature
- p. 505-525
The Polymorphism Maze: Understanding Diversities and Similarities in Malware Families
- 18 October 2025
- Published by Springer Nature
- p. 505-525
The Polymorphism Maze: Understanding Diversities and Similarities in Malware Families
- 11 March 2025
- Published by Springer Nature
- p. 23-33
ModSec-Learn: Boosting ModSecurity with Machine Learning
- 11 March 2025
- Published by Springer Nature
- p. 23-33
ModSec-Learn: Boosting ModSecurity with Machine Learning
- Open Access
- 22 February 2025
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Privacy and Security
- Vol. 28 (2) , 1-33
The Dark Side of Native Code on Android
From a little research experiment to an essential component of military arsenals, malicious software has constantly been growing and evolving for more than three decades. On the other hand, from a negligible market share, the Android operating system is nowadays the most widely used mobile operating system, becoming a desirable target for large-scale malware distribution. While scientific literature has followed this trend, one aspect has been understudied: the role of native code in malicious Android apps. Android apps are written in high-level languages, but thanks to the Java Native Interface (JNI), Android also supports calling native (C/C++) library functions. While allowing native code in Android apps has a strong positive impact from a performance perspective, it dramatically complicates its analysis because bytecode and native code need different abstractions and analysis algorithms, and they thus pose different challenges and limitations. Consequently, these difficulties are often (ab)used to hide malicious payloads. In this work, we propose a novel methodology to reverse engineering Android apps focusing on suspicious patterns related to native components, i.e., surreptitious code that requires further inspection. We implemented a static analysis tool based on such methodology, which can bridge the “Java” and the native worlds and perform an in-depth analysis of tag code blocks responsible for suspicious behavior. These tags benefit the human facing the reverse engineering task: they clearly indicate which part of the code to focus on to find malicious code. Then, we performed a longitudinal analysis of Android malware over the past 10 years and compared the recent malicious samples with actual top apps on the Google Play Store. Our work depicts typical behaviors of modern malware, its evolution, and how it abuses the native layer to complicate the analysis, especially with dynamic code loading and novel anti-analysis techniques. Finally, we show a use case for our suspicious tags: we trained and tested a machine learning algorithm for a binary classification task. Even if suspicious does not imply malicious, our classifier obtained a remarkable F1-score of 0.97, showing that our methodology can be helpful to both humans and machines.
- 22 February 2025
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Privacy and Security
- Vol. 28 (2) , 1-33
Open AccessThe Dark Side of Native Code on Android
From a little research experiment to an essential component of military arsenals, malicious software has constantly been growing and evolving for more than three decades. On the other hand, from a negligible market share, the Android operating system is nowadays the most widely used mobile operating system, becoming a desirable target for large-scale malware distribution. While scientific literature has followed this trend, one aspect has been understudied: the role of native code in malicious Android apps. Android apps are written in high-level languages, but thanks to the Java Native Interface (JNI), Android also supports calling native (C/C++) library functions. While allowing native code in Android apps has a strong positive impact from a performance perspective, it dramatically complicates its analysis because bytecode and native code need different abstractions and analysis algorithms, and they thus pose different challenges and limitations. Consequently, these difficulties are often (ab)used to hide malicious payloads. In this work, we propose a novel methodology to reverse engineering Android apps focusing on suspicious patterns related to native components, i.e., surreptitious code that requires further inspection. We implemented a static analysis tool based on such methodology, which can bridge the “Java” and the native worlds and perform an in-depth analysis of tag code blocks responsible for suspicious behavior. These tags benefit the human facing the reverse engineering task: they clearly indicate which part of the code to focus on to find malicious code. Then, we performed a longitudinal analysis of Android malware over the past 10 years and compared the recent malicious samples with actual top apps on the Google Play Store. Our work depicts typical behaviors of modern malware, its evolution, and how it abuses the native layer to complicate the analysis, especially with dynamic code loading and novel anti-analysis techniques. Finally, we show a use case for our suspicious tags: we trained and tested a machine learning algorithm for a binary classification task. Even if suspicious does not imply malicious, our classifier obtained a remarkable F1-score of 0.97, showing that our methodology can be helpful to both humans and machines.
- Open Access
- 2 December 2024
- Published by Association for Computing Machinery (ACM)
- p. 3973-3987
On Understanding and Forecasting Fuzzers Performance with Static Analysis
Fuzz testing, a technique for detecting critical software vulnerabilities, combines various methodologies from previous research to improve its effectiveness. For fuzzing practitioners, it is imperative to comprehend the effects of distinct techniques and select the ideal configuration customized to the program they need to test. However, evaluating the individual contributions of these techniques is often very difficult. Prior research compared assembled fuzzers and studied their affinity with different programs. Nevertheless, assembled fuzzers cannot be easily broken down into independent components, and therefore, the evaluation does not clarify which technique explains the performance of the fuzzer. Without understanding the potential impact of integrating different fuzzing techniques, it becomes even more challenging to adjust the fuzzer configuration for different programs under test. Our research tackles this challenge by introducing a novel approach that correlates static analysis features extracted at compile time with the performance results of various fuzzing techniques. Our method uses diverse metrics to uncover the relationship between the static attributes of a program and the dynamic runtime performance of fuzzers. The correlation analysis performed on 23 target applications reveals interesting relationships, such as power schedulers performing better with larger programs and context-sensitive feedback, struggling with a large number of inputs. This approach not only enhances our analytical understanding of fuzzing techniques, but also enables predictive capabilities. We show how a simple machine learning model can propose a fuzzer configuration customized for a particular program using information collected through static analysis. In 11 of our benchmark programs, fuzzers using the suggested configuration achieved the best improvement over the baseline compared to AFLplusplus, LibFuzzer and Honggfuzz.
- 2 December 2024
- Published by Association for Computing Machinery (ACM)
- p. 3973-3987
Open AccessOn Understanding and Forecasting Fuzzers Performance with Static Analysis
Fuzz testing, a technique for detecting critical software vulnerabilities, combines various methodologies from previous research to improve its effectiveness. For fuzzing practitioners, it is imperative to comprehend the effects of distinct techniques and select the ideal configuration customized to the program they need to test. However, evaluating the individual contributions of these techniques is often very difficult. Prior research compared assembled fuzzers and studied their affinity with different programs. Nevertheless, assembled fuzzers cannot be easily broken down into independent components, and therefore, the evaluation does not clarify which technique explains the performance of the fuzzer. Without understanding the potential impact of integrating different fuzzing techniques, it becomes even more challenging to adjust the fuzzer configuration for different programs under test. Our research tackles this challenge by introducing a novel approach that correlates static analysis features extracted at compile time with the performance results of various fuzzing techniques. Our method uses diverse metrics to uncover the relationship between the static attributes of a program and the dynamic runtime performance of fuzzers. The correlation analysis performed on 23 target applications reveals interesting relationships, such as power schedulers performing better with larger programs and context-sensitive feedback, struggling with a large number of inputs. This approach not only enhances our analytical understanding of fuzzing techniques, but also enables predictive capabilities. We show how a simple machine learning model can propose a fuzzer configuration customized for a particular program using information collected through static analysis. In 11 of our benchmark programs, fuzzers using the suggested configuration achieved the best improvement over the baseline compared to AFLplusplus, LibFuzzer and Honggfuzz.