Technology

GitHub Tames Secret Scans with LLMs

GitHub is using LLMs to slash false positives in secret scanning, boosting alert accuracy and developer efficiency by over 75%.

StartupHub.ai Staff

By StartupHub.ai Staff, reviewed by Daniel Singer, Editor

2 min read

Abstract representation of code with glowing lines and a lock icon, symbolizing secure code scanning.
GitHub leverages LLMs to enhance secret scanning accuracy.Credit: Github Blog
Visual TL;DR
Secret Scanning NoiseDriver
too many alerts that look like secrets but aren't
From the article 3 mentionsGitHub is leveraging Large Language Models (LLMs) to make its secret scanning more trustworthy.
GitHub Secret ScanningContext
existing pipeline combining pattern and AI detection
From the article 3 mentionsThis enhancement builds upon GitHub's existing secret scanning pipeline, which combines pattern-based and AI-based detection.
Microsoft Security & AICore
From the article 4 mentionsTo combat this, GitHub partnered with Microsoft Security & AI to integrate more contextual reasoning into the verification process.
Developer FrictionDriver
wasting time triaging false positive security alerts
From the article 4 mentionsThis friction erodes confidence in automated security systems.
LLM Contextual AnalysisCore
examining how detected values are used within the code
From the articleThe new approach focuses on the verification step, adding LLM-based contextual analysis.
Boosted Alert AccuracyEffect
slashing false positives in secret scanning
Developer EfficiencyOutcome
over 75% improvement in focusing on genuine threats
From the article 4 mentionsThis focused context, rather than more raw code, is crucial for accuracy and efficiency.

GitHub is leveraging Large Language Models (LLMs) to make its secret scanning more trustworthy. The move aims to cut down on the 'noise' of false positives that plague automated security tools, allowing developers to focus on genuine threats.

The core issue: too many alerts that look like secrets but aren't, forcing developers to waste time triaging. This friction erodes confidence in automated security systems. To combat this, GitHub partnered with Microsoft Security & AI to integrate more contextual reasoning into the verification process.

Context is Key

This enhancement builds upon GitHub's existing secret scanning pipeline, which combines pattern-based and AI-based detection. The new approach focuses on the verification step, adding LLM-based contextual analysis. Instead of just matching patterns, the system now examines how a detected value is used within the code.

The goal is to make alerts more actionable. By understanding the usage context, for instance, if a value is assigned to a variable and then passed into an API request or SDK call, the LLM can better determine if it's a real secret or just a placeholder, test data, or an opaque string. This focused context, rather than more raw code, is crucial for accuracy and efficiency.

This strategy yielded impressive results. In evaluations against hundreds of customer-confirmed false positives, the new method achieved a 75.76% reduction, surpassing their 65% target. This translates directly to fewer irrelevant alerts and faster remediation of actual security incidents, a significant win for developer productivity.

The work continues, with GitHub exploring larger datasets and refining context extraction. The ultimate aim is clearer signals, fewer distractions, and quicker action on genuine risks, making GitHub's free code scan and other offerings more effective. This advancement is part of a broader trend in improving GitHub secret scanning with AI, echoing efforts like Uber's AI data guards in their pursuit of reducing false positives at scale.

Mentioned in this story

Markets

Get the free daily brief every morning

Every morning the day's AI news, new AI startups and new funding rounds. Free and takes a few minutes to read, unsubscribe at any time.

Join 64,000 other subscribers.

TopicsGitHubSecret ScanningLLMAICybersecurityDeveloper ToolsMicrosoft

StartupHub.ai Staff

Written by

StartupHub.ai Staff

Editorial team

The staff writers of StartupHub.ai, ranging from investment analysts to avid AI tool users, early adopters and critical enthusiasts. Backgrounds span engineering, business and the arts. We hold every piece to rigorous standards of research and review.

Daniel Singer

Written by

Daniel Singer

Editor, reviewed this article

Daniel Singer is an AI expert who has been writing about, covering and building AI technology since 2018.

Test your Agent Readiness now

Paste your website. How well ChatGPT, Claude and the other agents can read and use a site, in about a minute.

Watch

The videos behind the news, one flip at a time

The feed mixes the videos from our articles with startup demos and you flip through them like TV channels for free with no signup.