Skip to content
Submit incident
AII-1000-60789
ConfirmedA court, a regulator or the organization itself has stated the core facts, or the record cites a court or regulator source.

AI-assisted coding leaks secrets at double baseline rate on GitHub

GitGuardian reported that AI-assisted coding commits leaked secrets at roughly double the baseline rate in 2025, with Claude Code-assisted commits showing a 3.2% leak rate versus 1.5% baseline. Overall, 29 million secrets were exposed on GitHub in 2025, a 34% year-over-year increase, driven partly by faster AI-enabled development without equivalent security governance improvements.

17 March 2026 Β· Anthropic Β· Security and cyberattacks
17 March 2026
AII-1000-607894 sources ↓
Quick facts
Category
Security and cyberattacks
Country
United States
Source
GitGuardian Blog - Take Control of Your Secrets Security
Date
17 March 2026
Drafted by
Raidu Incident Detection

What happened

In 2025, GitGuardian detected approximately 29 million secrets exposed on GitHub, representing a 34% year-over-year increase and the largest single-year jump ever recorded.

AI-assisted commits leaked secrets at roughly double the baseline rate, with Claude Code-assisted commits showing a 3.2% secret leak rate compared to a 1.5% GitHub-wide baseline.

AI service credentials leaks increased 81% year-over-year to 1,275,105 exposed credentials, and MCP configuration files contributed 24,008 unique exposed secrets.

Reported impact

AI adoption accelerated software creation and multiplied the number of tokens, keys, and service identities embedded across modern stacks without equivalent improvements in security governance.

Less experienced developers enabled by AI tools may lack security awareness and can ignore AI warnings or explicitly prompt tools to include sensitive information, creating security gaps.

Index analysis

Leaked secrets remain a major and repeatable path to compromise, with exposed credentials providing direct attack vectors to systems and services.

AI assistance amplified risk by accelerating development speed and multiplying credentials across infrastructure without corresponding security controls or developer training.

Governance controls

MCP server documentation often recommends placing credentials directly in configuration files rather than using safer client authentication patterns.

Classification

Category
Security and cyberattacks
Industry
Digital security
Country
United States
Harm status
Actual harm
Intent
Unintentional
Timing
Unknown
Harm types
Public interest
Harmed
Business, General public
Failure modes
Data leak
AI systems
Claude Code

Sources and evidence

This record was researched and written by the Index, based on the following original reporting.

GitGuardian Blog - Take Control of Your Secrets Security
The State of Secrets Sprawl 2026: AI-Service Leaks Surge 81% and 29M Secrets Hit Public GitHub
17 March 2026
Markets Insider
GitGuardian Reports an 81% Surge of AI-Service Leaks as 29M Secrets Hit Public GitHub
17 March 2026
SC Media
AI coding assistants twice as likely to leak secrets, as overall leaks rise 34%
18 March 2026
TechRadar
Over 29 million secrets were leaked on GitHub in 2025, and AI really isn't helping
18 March 2026