mlsanityData to 14 Oct 2026

Detecting Hard-Coded Credentials in Software Repositories via LLMs

arXiv 2506.13090 ↗First posted 16 Jun 2025cs.CRcited by 2

Not on the map. Why?

Abstract (arXiv)

Software developers frequently hard-code credentials such as passwords, generic secrets, private keys, and generic tokens in software repositories, even though it is strictly advised against due to the severe threat to the security of the software. These credentials create attack surfaces exploitable by a potential adversary to conduct malicious exploits such as backdoor attacks. Recent detection efforts utilize embedding models to vectorize textual credentials before passing them to classifiers for predictions. However, these models struggle to discriminate between credentials with contextual and complex sequences resulting in high false positive predictions. Context-dependent Pre-trained Language Models (PLMs) or Large Language Models (LLMs) such as Generative Pre-trained Transformers (GPT) tackled this drawback by leveraging the transformer neural architecture capacity for self-attention to capture contextual dependencies between words in input sequences. As a result, GPT has achieved wide success in several natural language understanding endeavors. Hence, we assess LLMs to represent these observations and feed extracted embedding vectors to a deep learning classifier to detect hard-coded credentials. Our model outperforms the current state-of-the-art by 13% in F1 measure on the benchmark dataset. We have made all source code and data publicly available to facilitate the reproduction of all results presented in this paper.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). First posted on arXiv 16 Jun 2025.

Builds on

No reference list yet.

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 1.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024Towards Explainable Vulnerability Detection with Large Language Models
  2. 2025Large Language Models Can Verbatim Reproduce Long Malicious Sequences
  3. 2024Security Vulnerability Detection with Multitask Self-Instructed Fine-Tuning of Large Language Models
  4. 2024Security Attacks on LLM-based Code Completion Tools
  5. 2024Measuring Impacts of Poisoning on Model Parameters and Embeddings for Large Language Models of Code
  6. 2025LLM Embedding-based Attribution (LEA): Quantifying Source Contributions to Generative Model's Response for Vulnerability Analysis
  7. 2024Securing Large Language Models: Addressing Bias, Misinformation, and Prompt Attacks
  8. 2025LLMpatronous: Harnessing the Power of LLMs For Vulnerability Detection