GitHub’s model for secret detection: Finding more secrets with less noise
GitHub's ModernBERT secret classifier raised alert acceptance 11.5% and cut median scan time by 86%.
GitHub described a two-stage secret scanner that uses regex candidate generation and a fine-tuned ModernBERT classifier to separate real credentials from lookalikes. Compared with its previous LLM pipeline, GitHub reports an 11.5% rise in owner-weighted alert acceptance, an 86% reduction in median post-push scan time, and more than 98% lower serving cost. The efficiency gain let GitHub extend generic secret detection to push protection so findings can be returned before a push is accepted.
- Regexes generate candidates, then a fine-tuned ModernBERT classifier scores each with context.
- Owner-weighted alert acceptance rose 11.5% and median post-push scan time fell 86%.
- Serving cost dropped more than 98% versus the previous remote LLM pipeline.
- The faster classifier made generic secret detection practical in push protection.
- Vendors
- GitHub
- Organizations
- GitHub
- AI models
- ModernBERT
From the original article
9 min read at github.blogGitHub’s context-aware secret classifier improves detection quality, raises weighted acceptance by 11. 5%, and reduces median scan execution time by 86%. The post GitHub’s model for secret detection: Finding more secrets with less noise appeared first on The GitHub Blog.
By Batu Ozturkler · github.blog
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.