mlsanityData to 14 Oct 2026

Separating Secrets from Placeholders: A Hybrid CNN-CodeBERT Framework for Three-Class Credential Leakage Detection

arXiv 2605.31520 ↗First posted 29 May 2026cs.SE cs.AI cs.CRcited by 0

Not on the map. Why?

Abstract (arXiv)

Credential leakage in public source code repositories poses a critical security threat, with over 23.8 million secrets exposed in 2024 alone. Existing detection tools suffer from high false-positive rates because rigid pattern matching and binary classification schemes fail to distinguish genuine credentials from placeholder or weak credentials. We propose a three-class classification framework that explicitly models placeholder or weak credentials as a distinct class, leveraging CodeBERT-based semantic understanding combined with character-level pattern recognition. We evaluate our approach on a newly constructed dataset of 9,426 samples spanning 10 programming languages. Our model achieves a Matthews Correlation Coefficient of 0.86 and a macro F1-score of 0.90, achieving 93% recall and 89% precision for genuine credential leaks while reducing high severity alerts by 33.0% (from 373 to 250) without sacrificing security coverage. Compared to prior character-level approaches, our method improves placeholder or weak credential detection from 54% to 81% F1-score while maintaining strong cross language generalization, with 9 of 10 languages achieving F1 above 0.80 under leave-one-language-out evaluation.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 16 of its 40 references that are in the map. First posted on arXiv 29 May 2026.

Builds on

16 of 40 references.

References · 16

  1. 2021On the Opportunities and Risks of Foundation Modelscited by 4,033
  2. 2015Character-level Convolutional Networks for Text Classificationcited by 2,330
  3. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
  4. 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 654
  5. 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 609
  6. 2021Unified Pre-training for Program Understanding and Generationcited by 366
  7. 2022UniXcoder: Unified Cross-Modal Pre-training for Code Representationcited by 361
  8. 2017A Survey of Machine Learning for Big Code and Naturalnesscited by 221
  9. 2022Lost at C: A User Study on the Security Implications of Large Language Model Code Assistantscited by 91
  10. 2024Large Language Model for Vulnerability Detection: Emerging Results and Future Directionscited by 45
  11. 2023The Vault: A Comprehensive Multilingual Dataset for Advancing Code Understanding and Generationcited by 20
  12. 2023A Comparative Study of Software Secrets Reporting by Secret Detection Toolscited by 5
4 more
  1. 2023Don't Leak Your Keys: Understanding, Measuring, and Exploiting the AppSecret Leaks in Mini-Programscited by 3
  2. 2024AssetHarvester: A Static Analysis Tool for Detecting Secret-Asset Pairs in Software Artifactscited by 2
  3. 2023Secrets Revealed in Container Images: An Internet-wide Study on Occurrence and Impactcited by 1
  4. 2026IssueGuard: Real-Time Secret Leak Prevention Tool for GitHub Issue Reportscited by 1

Built on by

Not cited yet.