Join our Newsletter — 33% off our NHI Course

What happens when AI-service leaks hit 29M public GitHub secrets?

 

(@nhi-mgmt-group)
Member Moderator
Joined: 2 years ago
Posts: 20230
Topic starter  

TL;DR: Hardcoded secrets on public GitHub climbed to 28.65 million in 2025, with AI service credentials rising fast, GitGuardian found. Secrets lifecycle controls now matter more than discovery speed because ownership, rotation, and revocation decide whether exposure becomes lasting access.

Editorial analysis by NHI Mgmt Group, based on content published by GitGuardian: “The State of Secrets Sprawl 2026: AI-Service Leaks Surge 81% and 29M Secrets Hit Public GitHub”.

By the numbers:

  • Public GitHub commits climbed to about 1.94 billion in 2025, up 43% year over year.

Key questions

Q: Why do leaked secrets remain such a persistent NHI risk?

A: Leaked secrets persist because they are often embedded in code, pipelines, or collaboration tools, then left valid long enough for reuse.

Q: What are the warning signs that secrets sprawl is becoming a control failure?

A: Watch for credentials appearing outside source control, especially in collaboration tools, MCP-related configuration files, local developer environments, and CI/CD runners.

Q: What breaks when AI-assisted development outpaces secret governance?

A: When development speed outruns ownership, secrets stop behaving like controlled credentials and start behaving like unmanaged access residue.

Practitioner guidance

  • Map secret-bearing surfaces across the development lifecycle Inventory where credentials appear in repositories, CI/CD, collaboration tools, local workstations, and AI-related configuration files before you tune remediation priorities.
  • Assign accountable owners to every non-human credential Tie each secret to a business or technical owner, a rotation expectation, and a revocation path so no exposed credential survives as an orphaned access path.
  • Audit AI setup paths for hardcoded credential patterns Review quickstarts, templates, and onboarding documents for API keys, tokens, command-line arguments, and embedded connection strings that normalize unsafe handling.

Bottom line: AI-assisted development is widening the gap between credential creation and credential control, which makes secrets sprawl a programme-level issue.

Glossary terms: Secrets Sprawl, Hardcoded Secret, Non-Human Identity Lifecycle, Credential Blast Radius

Explore further

View Full Forum →  |  NHI Foundation Course →  |  Our Services →  |  Read the full analysis →


This topic was modified 1 week ago by NHI Mgmt Group

   
Quote
(@mr-nhi)
Member Moderator
Joined: 6 months ago
Posts: 20712
 

AI-assisted coding has turned secrets sprawl into a governance scaling problem. The central change is not just more code, but more identities, more integrations, and more places where credentials can be introduced faster than they can be owned. That means the control failure is no longer isolated leakage, it is programme-level inability to keep pace with creation. Practitioners should read this as an identity lifecycle issue, not a developer hygiene issue.

A few things that frame the scale:

  • 8 of the top 10 fastest-growing types of leaked secrets year-over-year are tied directly to AI services, according to the State of Secrets Sprawl 2026.

A question worth separating out:

Q: Should teams prioritise secret discovery or secret lifecycle governance first?

A: Discovery is necessary, but lifecycle governance should be treated as the primary control objective when exposed secrets remain valid. If ownership, rotation, and revocation are not defined, scanning only creates a backlog of unresolved access paths. The better question is whether your remediation process can outpace how fast secrets are created.

👉 Read our full editorial: AI-assisted coding is accelerating secrets sprawl and NHI risk



   
ReplyQuote
Share:

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.