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

Farnaz Soltaniani, Mohammad Ghafari
1/30/2026
cs.CRcs.AIcs.LG

No confident code implementation found for this paper.

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{soltaniani2026from,
  title  = {From Data Leak to Secret Misses: The Impact of Data Leakage on Secret Detection Models},
  author = {Farnaz Soltaniani and Mohammad Ghafari},
  year   = {2026},
  eprint = {2601.22946},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2601.22946v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2601.22946.svg)](https://codeofpaper.com/paper/2601.22946)

Discussion