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 \textsc{IssueGuard}, a tool for real-time detection and prevention of secret leaks in issue reports. Implemented as a Chrome extension, \textsc{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. \textsc{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} .
翻译:GitHub和GitLab作为广泛使用的协作平台,其议题追踪系统包含大量非结构化文本,涵盖日志、代码片段及配置示例。这显著增加了API密钥和凭证等机密信息意外泄露的风险,然而这些平台在提交前并未提供任何预警机制。我们提出IssueGuard——一种用于实时检测并预防议题报告中密钥泄露的工具。该工具以Chrome扩展程序形式实现,可在用户键入时分析文本,通过基于正则表达式的候选提取与微调后的CodeBERT上下文分类模型相结合,有效区分真实机密与误报,在基准数据集上达到92.70%的F1分数,优于传统正则表达式扫描器。IssueGuard直接集成至网页界面,持续分析议题编辑器,通过清晰的可视化警告帮助用户避免提交敏感数据。源代码与演示视频分别发布在https://github.com/disa-lab/IssueGuard及https://youtu.be/kvbWA8rr9cU。