Skip to main content
QUICK REVIEW

[论文解读] IssueGuard: Real-Time Secret Leak Prevention Tool for GitHub Issue Reports

Md Nafiu Rahman, Sadif Ahmed|arXiv (Cornell University)|Feb 8, 2026
Advanced Malware Detection TechniquesComputer Science被引用 0
一句话总结

IssueGuard 是一个 Chrome 扩展,结合正则表达式候选提取与经过微调的 CodeBERT 分类器,在 GitHub/GitLab 问题编辑器内实现实时检测秘密,基准测试中达到 92.70% 的 F1 分数,延迟较低。

ABSTRACT

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} .

研究动机与目标

  • 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.

提出的方法

  • 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.
Figure 1. Workflow of IssueGuard
Figure 1. Workflow of IssueGuard

实验结果

研究问题

  • 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?

主要发现

  • 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.
Figure 2. Demonstration IssueGuard . As the user types, the extension sends text to the backend. Real secrets are highlighted in red, while regex-based positives such as placeholders are ignored.
Figure 2. Demonstration IssueGuard . As the user types, the extension sends text to the backend. Real secrets are highlighted in red, while regex-based positives such as placeholders are ignored.

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。