From Data Leak to Secret Misses: The Impact of Data Leakage on Secret Detection Models

Read full text
Authors: Farnaz Soltaniani, Mohammad Ghafari
Cited by: 0

Abstract

Machine learning models are increasingly used for software security tasks. These models are commonly trained and evaluated on large Internet-derived datasets, which often contain duplicated or highly similar samples. When such samples are split across training and test sets, data leakage may occur, allowing models to memorize patterns instead of learning to generalize. We investigate duplication in a widely used benchmark dataset of hard coded secrets and show how data leakage can substantially inflate the reported performance of AI-based secret detectors, resulting in a misleading picture of their real-world effectiveness.

Fields of Study & Subjects

Software Engineering Research Web Application Security Vulnerabilities Adversarial Robustness in Machine Learning

Publication details

Journal / source
arXiv (Cornell University)
Publication date
30 January 2026
Document type
Preprint