Manuscript Offprint

arXiv:2611.01031

Trouble With Time: Compile Timestamps and First-Seen Date Regression in EMBER2024

Edward Raff, Aditya Kapoor

Abstract

Reliable first-seen dates are important for constructing temporal malware evaluation splits, but this information often comes from external services that are not equally accessible to all researchers. We investigate whether machine learning can instead estimate an executable's first-seen date or determine when its PE/COFF compilation timestamp is unreliable. Using EMBER2024, we evaluate feature-based and raw-byte models across classification, regression, ranking, and latent-reliability formulations. Direct first-seen regression produces errors comparable to a substantial portion of the dataset's collection window, and none of the evaluated scores provides a useful chronological ordering of files. Current models therefore cannot replace externally sourced first-seen metadata. In contrast, classifiers can identify timestamps that fall within specified tolerances of first seen and can detect clearly implausible timestamps with high discrimination. We also find substantial timestamp disagreement among both benign and malicious executables, indicating that unreliable timestamps are not exclusively a product of malicious manipulation. These results establish baselines and identify timestamp reliability as a distinct direction for future security-ML research.

Keywords: timestamps; compilation dates

1. Introduction

It is desirable to know when a specific malware sample was produced. The most obvious factor is that it allows us to organize datasets by time, so that we can create train/test splits by a single point in time and thus reduce model evaluation bias (Joyce et al., 2023b). This information is stored in the metadata of the executable. Microsoft's PE/COFF specification defines the COFF TimeDateStamp as seconds since 1970 (Microsoft, 2025). But nothing forces this timestamp to be accurate. It is common wisdom within the industry that malware authors will perturb timestamps to confuse or evade investigations.

It is more reliable to use a “first submission date” from services like VirusTotal, which provides a censored view of the sample’s true compilation date. This is useful but imperfect; one does not know how much time occurred between the sample’s compilation and observation. From our perspective as industry players, we have cases of samples we know have existed for months or years and have not entered any such online service. This partial observability is a natural problem that all industry participants face for a variety of competitive, technical, and legal reasons. But the issue is exacerbated for academic researchers, who have less visibility and may lack access to such services (Raff and Nicholas, 2020).

In this work, we seek to transcribe several points of “common knowledge” from practitioners as explicit research questions, and investigate them and potential remediation. In particular we tackle the following research questions (RQs):

© 2026 E. Raff & A. Kapoor.

  1. How reliable are PE/COFF timestamps for usage in benign/malicious programs?

  2. Can we identify inaccurate timestamps?

  3. Can machine learning alleviate issues in timestamp infidelity by providing a better estimate/correction?

  4. Are there any indicators of inaccurate timestamps?

We tackle these questions by leveraging the EMBER24 dataset (Joyce et al., 2025). In doing so, we discover a number of unexpected facets and difficulties, to wit, not previously documented in the academic literature. Timestamp variation issues are essentially equally prevalent in benign programs as in malicious ones, which calls into question whether intentional timestamp alteration is truly a malicious activity or an artifact of software engineering practices. We also find that, while one can make reasonable models for “is this compilation date stale” relative to first-seen data, multiple strategies to regress the first-seen date itself are largely ineffective. Lastly, there is at least a sub-population of easily identifiable “bad” compilation timestamps which we can predict accurately, and we find evidence that benign and malicious programs do exhibit artifacts that signal a potential difference in how benign/malicious samples receive their labels.

Given the lack of prior research on this problem, we will review the literature on compilation timestamps in section 2 and note explicitly that our own work is not the end of this matter, but reveals multiple avenues for future exploration. In section 3, we will review the two types of models we build (trees and neural networks), covering six different loss/scenario types we test to understand the broad landscape of approaches one could take and which seem most promising. Exploration of the timestamps themselves, and the results of regressing them, is reviewed in section 4. These lead us to test an “obviously bad” compilation-date model in section 5, which reveals additional insights into the problem, with further analysis to check for potential confounders. Finally, we conclude in section 6.

References (53)