An Automated Approach to Reveal Missing Logs around Sensitive Operations
Open Access
- 6 June 2026
- journal article
- Published by Association for Computing Machinery (ACM) in Digital Threats: Research and Practice
- Vol. 7 (2) , 1-16
Abstract
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.Keywords
This publication has 22 references indexed in Scilit:
- When is logging sufficient? — Tracking event causality for improved forensic analysis and correlationForensic Science International: Digital Investigation, 2025
- A Qualitative Study of the Benefits and Costs of Logging From Developers’ PerspectivesIEEE Transactions on Software Engineering, 2020
- Towards Automated Logging for Forensic-Ready Software Systems2019
- Studying the characteristics of logging practices in mobile apps: a case study on F-DroidEmpirical Software Engineering, 2019
- Studying software logging using topic modelsEmpirical Software Engineering, 2018
- To log, or not to log: using heuristics to identify mandatory log events – a controlled experimentEmpirical Software Engineering, 2016
- Learning to Log: Helping Developers Make Informed Logging Decisions2015
- Enabling forensics by proposing heuristics to identify mandatory log events2015
- Where do developers log? an empirical study on logging practices in industry2014
- Improving Software Diagnosability via Log EnhancementACM Transactions on Computer Systems, 2012