BriefsNewsAvailable now1 min read

GitHub's AI classifier for secret scanning cuts false alerts and scan time

GitHub describes a fine-tuned ModernBERT model that sorts real credentials from lookalikes, replacing an LLM-based pipeline in secret scanning.

GitHub's AI classifier for secret scanning cuts false alerts and scan time — image from GitHub
Image: GitHub

Summary

GitHub trained a small ModernBERT classifier to work after regex matching in secret scanning. It reads each candidate with its file path and surrounding code to decide whether it is a real secret. GitHub reports higher precision and recall, faster scans and much lower serving cost than its earlier LLM-based pipeline.

What changed

  • Regex finds candidate secrets, then a fine-tuned ModernBERT model checks each one in context.
  • Median post-push scan time is 86% lower than the previous LLM-based pipeline.
  • Repository owner-weighted acceptance of alerts rose 11.5% in a customer A/B test.
  • The faster model made generic secret detection practical for push protection.
  • GitHub reports more than 98% lower serving cost than the LLM-based pipeline.

Availability

Available now

“That is why we shipped a new scanner using a two-stage pipeline:”

Founder takeaway

If your repositories use GitHub secret scanning, there is nothing to set up based on this post. You may see fewer false alerts and faster feedback. Keep treating any alert as worth a quick check, since the model is described as best effort.

Source

GitHubGitHub’s model for secret detection: Finding more secrets with less noise

Announced Checked

Researched and drafted with AI from the official sources above, then checked automatically before publishing. Spotted a mistake? Tell us.

SharePost on XLinkedIn

Related

More briefs

All briefs
  1. AWS logo on a FounderHeist card

    NewsAvailable now

    AWS adds proactive AI deployment controls to CloudFormation and CDK

    AWS CloudFormation and AWS CDK now support 88 new AWS-managed proactive controls for data protection and business continuity.

    AWS1 min read

  2. GitLab details AI agent sandbox rules and verification — image from GitLab

    NewsAvailable now

    GitLab details AI agent sandbox rules and verification

    GitLab explains how the Duo Agent Platform restricts AI network and filesystem access.

    GitLab1 min read

  3. Fireworks adds Tencent's Hy4 Flash AI model to serverless — image from Fireworks AI

    NewsAvailable now

    Fireworks adds Tencent's Hy4 Flash AI model to serverless

    Tencent's new open weights AI model is now available on Fireworks serverless with text and image input.

    Fireworks AI1 min read

One email, every Monday

Briefs are published here through the day. Monday Heist is the email: one useful AI workflow, the files to use it, and the catch. The first issue is being prepared; subscribers get it first. Free, and you can leave in one click.

One email. Every Monday.