GitHub Secret Scanning Learns Context, Cuts Noise
GitHub details a two-stage secret-scanning pipeline that combines high-recall regexes with a fine-tuned ModernBERT classifier to distinguish real credentials from harmless lookalikes. The system reportedly improves acceptance 11.5%, cuts post-push scan time 86%, and reduces serving costs over 98%.
The compelling lesson is architectural: narrow, efficient classifiers can outperform general-purpose LLMs when the decision boundary is measurable and context matters.
- –Regex keeps candidate generation fast, transparent, and recall-focused.
- –ModernBERT evaluates file paths, variable names, secret types, and surrounding code to suppress hard negatives.
- –ONNX export with 8-bit quantization makes the classifier practical for high-throughput inference.
- –GitHub reports 13% higher precision and 19% higher recall offline versus its previous LLM pipeline, though these results are company-reported.
DISCOVERED
1h ago
2026-10-14
PUBLISHED
1h ago
2026-10-14
RELEVANCE
AUTHOR
AiBeamNews