[Paper Review] IssueGuard: Real-Time Secret Leak Prevention Tool for GitHub Issue Reports
IssueGuard is a Chrome extension that uses regex candidate extraction plus a fine-tuned CodeBERT classifier to detect secrets in real-time within GitHub/GitLab issue editors, achieving a 92.70% F1-score on a benchmark and low latency.
GitHub and GitLab are widely used collaborative platforms whose issue-tracking systems contain large volumes of unstructured text, including logs, code snippets, and configuration examples. This creates a significant risk of accidental secret exposure, such as API keys and credentials, yet these platforms provide no mechanism to warn users before submission. We present extsc{IssueGuard}, a tool for real-time detection and prevention of secret leaks in issue reports. Implemented as a Chrome extension, extsc{IssueGuard} analyzes text as users type and combines regex-based candidate extraction with a fine-tuned CodeBERT model for contextual classification. This approach effectively separates real secrets from false positives and achieves an F1-score of 92.70\% on a benchmark dataset, outperforming traditional regex-based scanners. extsc{IssueGuard} integrates directly into the web interface and continuously analyzes the issue editor, presenting clear visual warnings to help users avoid submitting sensitive data. The source code is publicly available at \href{https://github.com/disa-lab/IssueGuard}{https://github.com/disa-lab/IssueGuard} , and a demonstration video is available at \href{https://youtu.be/kvbWA8rr9cU}{https://youtu.be/kvbWA8rr9cU} .
Motivation & Objective
- Minimize accidental secret exposure in issue reports on GitHub and GitLab.
- Provide real-time, in-browser feedback during issue creation.
- Combine regex-based candidate extraction with contextual classification to reduce false positives.
- Demonstrate usability and practical integration into developer workflows.
Proposed method
- Two-stage detection pipeline with 761 regex patterns to extract candidate secrets.
- Fine-tuned CodeBERT model (CodeBERT-base) with a 200-character context window for classification.
- Client–server architecture using a Chrome extension frontend and FastAPI backend to enable low-latency inference.
- Debounced text transmission and deferred transmission to the backend to minimize typing-induced overhead.
- LRU caching and mixed-precision GPU inference to optimize latency and throughput.

Experimental results
Research questions
- RQ1How effectively can real-time secret detection be performed inside issue editors without overwhelming users with false positives?
- RQ2Does fine-tuning a CodeBERT-based classifier outperform larger LLMs for context-aware secret detection in issue reports?
- RQ3What are the practical latency and usability characteristics of a browser-based secret-detection tool integrated into GitHub/GitLab?
- RQ4Can the system generalize to real-world repositories beyond its training data?
Key findings
- CodeBERT-based IssueGuard achieves an F1-score of 92.70% (Precision 92.49%, Recall 92.91%) on the benchmark model evaluation.
- CodeBERT outperforms StarCoder, StarPII, RoBERTa-base, and regex-only baselines in F1-score for this task.
- On 178 real-world repositories, the model macro-average F1-score is 81.60% (Precision 75.35%, Recall 92.45%) for Secret detection.
- Average end-to-end latency is 198 ms, with model inference taking 10.1 ms, enabling real-time feedback in the editor.
- The tool provides in-browser highlighting and warnings, reducing alert fatigue and improving user confidence during submission.
- A user study with 50 participants shows high satisfaction and perceived security enhancement when using IssueGuard compared to manual inspection.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.