Skip to content

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

Aug 2026 · Zenodo (CERN European Organization for Nuclear Research)

Abstract

# Separating Secrets from Placeholders: A Hybrid CNN-CodeBERT Framework for Three-Class Credential Leakage Detection ## Overview This repository contains the code and dataset for our 3-class credential leakage detection framework, which distinguishes between: - **Class 0:** No Leak- **Class 1:** Genuine Leak- **Class 2:** Placeholder/Weak Leak --- ## Recommended Experiment Order 1. **`main_method/`** — Train and evaluate the proposed hybrid model (4 seeds). This is the primary experiment.2. **`ablation/`** — Run ablation study to evaluate each architectural component (seed 42 only). Requires the same train/val/test splits as the main method.3. **`lolo/`** — Run Leave-One-Language-Out cross-validation using the full dataset. Run once per language (10 runs total).4. **`baselines/keysentinel/`** — Run KEYSENTINEL baseline. Use `--config fair` for the results reported in the paper.5. **`baselines/passfinder/`** — Run PassFinder baseline. All experiments are independent and can be run in any order. The recommended order above follows the paper's research questions (RQ1 → RQ5). --- ## Repository Structure ```├── data/ # Dataset (see data/README.md)│ ├── Sanitized_CCLD_dataset.csv│ └── splits/│ ├── train.csv│ ├── val.csv│ └── test.csv│├── main_method/ # Proposed hybrid model (RQ1, RQ2)├── ablation/ # Ablation study (RQ3)├── lolo/ # Leave-One-Language-Out evaluation (RQ4)├── baselines/│ ├── keysentinel/ # KEYSENTINEL baseline│ └── passfinder/ # PassFinder baseline``` --- ## Experiments | Folder | Description | Data Used ||--------|-------------|-----------|| `main_method/` | Proposed CharCNN + CodeBERT + Adapter model, 4 seeds | train/val/test splits || `ablation/` | 6 architectural variants, seed 42 | train/val/test splits || `lolo/` | Leave-One-Language-Out cross-validation | Full dataset || `baselines/keysentinel/` | KEYSENTINEL adapted for snippet-level 3-class task | train/val/test splits || `baselines/passfinder/` | PassFinder adapted for snippet-level 3-class task | train/val/test splits | Each folder contains its own `README.md` with setup and run instructions. --- ```bibtex@article{baby2026separating, title={Separating Secrets from Placeholders: A Hybrid CNN-CodeBERT Framework for Three-Class Credential Leakage Detection}, author={Baby, Maksuda Bilkis and Shah, Khushika and Liang, Naiyue and Zhang, Lei}, journal={arXiv preprint arXiv:2605.31520}, year={2026}}``` ## Acknowledgements Parts of the writing and implementation in this prototype were developed with assistance from Large Language Models (LLMs). These tools were used solely as helpers for tasks such as brainstorming, drafting code snippets, and refining text. All core ideas, research design, experimental decisions, and contributions in this work originate from the author(s). All code and experiments were executed, inspected, and validated by the author(s). Any errors or omissions remain the responsibility of the author(s).

View source

Similar papers

#computer vision Open access Jun 2016

Software Development in Startup Companies: The Greenfield Startup Model

The results are packaged in the Greenfield Startup Model (GSM), which explains the priority of startups to release the product as quickly as possible, and the need to shorten time-to-market, by speeding up the development through low-precision engineering activities.

Carmine Giardino, Nicolò Paternoster, M. Unterkalmsteiner et al. · 178 citations · ⚡14
#computer vision Open access Oct 2016

Software Startups - A Research Agenda

Software startup companies develop innovative, software-intensive products within limited timeframes and with few resources, searching for sustainable and scalable business models.

M. Unterkalmsteiner, P. Abrahamsson, Xiaofeng Wang et al. · 157 citations · ⚡17
#machine learning Review Open access Oct 2016

“Failures” to be celebrated: an analysis of major pivots of software startups

This study conducts a case survey study based on the secondary data of the major pivots happened in 49 software startups, and demonstrates that customer need pivot is the most common among all pivot types.

Sohaib Shahid Bajwa, Xiaofeng Wang, Anh Nguyen-Duc et al. · 127 citations · ⚡15
#computer vision Review Open access May 2015

A survey study on major technical barriers affecting the decision to adopt cloud services

The comparison of adopter and non-adopter sample reveals three potential adoption inhibitor, security, data privacy, and portability, which underlines the importance of the technical and security perspectives for research investigating the adoption of technology.

Nattakarn Phaphoom, Xiaofeng Wang, S. Samuel et al. · 111 citations · ⚡8
#computer vision Conference Open access Dec 2013

Affordable and Energy-Efficient Cloud Computing Clusters: The Bolzano Raspberry Pi Cloud Cluster Experiment

The ongoing work building a Raspberry Pi cluster consisting of 300 nodes is presented, with potential use cases being an inexpensive and green test bed for cloud computing research and a robust and mobile data center for operating in adverse environments.

P. Abrahamsson, S. Helmer, Nattakarn Phaphoom et al. · 110 citations · ⚡7
#computer vision Book Open access Mar 2017

On the Unhappiness of Software Developers

The results indicate that software developers are a slightly happy population, but the need for limiting the unhappiness of developers remains, and 219 factors representing causes of unhappiness while developing software are identified.

D. Graziotin, Fabian Fagerholm, Xiaofeng Wang et al. · 84 citations · ⚡6

Related blog posts

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.