Adapte Dijital
Kurumsal
Müşteri Girişi
Dijital Yönetim
AI SEO
Marka Yönetimi
Danışmanlıklar
Web & App & AI
Ads & Reklam
Kitle Yönetimi
Veri Yönetimi
Amaç & Hedef
Videolar Referanslar Dijitale Yatırım Yap
Blog
AI Security

The Secrets Sprawl Report: What the 2025 Figures Showed

AuthorGündem Masası Published30 November 2026 Reading Time6–9 dk
The Secrets Sprawl Report: What the 2025 Figures Showed
💡 Kısaca: The secrets sprawl report measures each year how many keys and passwords were left exposed in public code repositories.

The secrets sprawl report measures each year how many keys and passwords were left exposed in public code repositories. The fifth edition, published by GitGuardian in March 2026, covers 2025. The figures show the scale of the problem. 📊

This article sets out the report’s main findings, the AI side, the remediation gap and the lesson a small business can draw. There is no fiction in this article. Every case described here has been reported in the press or in public records; the sources are at the end.

In short: The report fits in one sentence: software production sped up, and leaks rose faster still. The fastest-growing item is AI keys. The whole file is in the guide to protecting an AI endpoint.
WHAT

What does the report measure?

BU BÖLÜMÜN ÖZETİ

  • Scope
  • The main figure
  • The background

GitGuardian scans the code pushed to public GitHub and counts the secrets left inside it.

Main figures for secrets exposed in 2025
The largest yearly jump on record.

Scope

The report is based on public GitHub commits; it also draws on incidents in the company’s customer environments and on additional research. What it measures is keys, passwords and similar secrets written into code and pushed to a repository. So the report counts what was left exposed, not attacks. 🔍

GitGuardian scans the code pushed to public GitHub and counts the secrets left inside it.

The main figure

According to the report, 28.65 million new hardcoded secrets were added to public GitHub commits in 2025. That is a 34 per cent increase on the year before and the largest single-year jump the company has recorded. Press summaries round this to 29 million.

The background

In the same year the number of public commits rose to about 1.94 billion, an increase of around 43 per cent. The report also notes that since 2021 leaked secrets have grown 152 per cent while the developer population grew 98 per cent. Leaks are growing faster than the number of people writing code. 📈

WHAT

What happened on the AI side?

BU BÖLÜMÜN ÖZETİ

  • AI service keys
  • Tool connection files
  • Code written with AI

The most striking part of the report is the change in the kind of secret that leaks.

AI service keys

According to the report, exposed secrets belonging to AI services reached 1,275,105 in 2025, up 81 per cent year over year. GitGuardian adds that twelve of the fifteen fastest-growing types of leaked secret were AI services. Every new AI account opened is a new key that can leak. How to keep one is in how to store an AI API key. 🔑

The most striking part of the report is the change in the kind of secret that leaks.

Tool connection files

The settings files that connect AI tools to other systems became a new source of leaks. The report found 24,008 unique secrets exposed in such files, of which 2,117 were valid; that is 8.8 per cent of the related findings. Teams building agents are writing keys into connection settings.

Code written with AI

The report also found that AI-assisted commits contribute markedly to leaks: for commits co-signed by Claude Code the rate of leaked secrets was about 3.2 per cent, against a baseline of 1.5 per cent. The report stresses that the human factor remains decisive. The tool speeds things up; checking what goes to the repository is still a person’s job. 🤖

HOW

How large is the remediation gap?

Leaking is half the problem. The other half is how long a leaked key stays in working order.

Figures on AI keys leaked in 2025
The fastest-growing item.

Sixty-four per cent

According to the report, 64 per cent of the secrets confirmed valid in 2022 had still not been revoked at the start of 2026. Most keys that leaked four years ago, in other words, still open doors today. A leak is a condition that lasts years, not a moment. ⏳

The consequence

This finding shows the value of two habits: knowing where a key is used and rotating regularly. A business that keeps a list and rotates by date has also closed the leak it never noticed. Rotation is the only defence against the unknown leak. The timetable is in when to rotate an API key. 🔄

WHAT

What do the figures not say?

BU BÖLÜMÜN ÖZETİ

  • Not every leak is an attack
  • Public repositories only
  • The scale of a small business

The figures are striking, and they need reading correctly.

Not every leak is an attack

The report counts exposed secrets, not how many were misused. An exposed key is a risk, not a loss. It is known, all the same, that exposed keys are searched for automatically; the risk is not theoretical. 🧭

The figures are striking, and they need reading correctly.

Public repositories only

The main figure covers public GitHub. Private repositories, chat tools, documents and plugin settings are outside that number. The report also states that internal systems are markedly more prone to leaks. The visible part is not the whole problem.

The scale of a small business

The figures are worldwide totals and do not state the risk of any one business. They state the direction: AI keys are the fastest-growing kind of leak, and most stay valid for years. Your one or two keys are part of that trend. The whole frame is in the AI audit guide. 📌

WHAT

What should a small business take from it?

BU BÖLÜMÜN ÖZETİ

  • Do not write keys into code
  • Look at connection settings
  • Lock list: lessons from the report

The report is written for large organisations, and three of its lessons hold at any size.

The remediation gap in leaked secrets
Rotation is the only defence.

Do not write keys into code

The first lesson is the oldest: a key is not written into code. An environment variable or a vault is used, and a scan runs before anything is pushed to a repository. If your developer works quickly with an AI tool, the rule matters more. Scanning is set up once and runs on every push. 🛡️

The report is written for large organisations, and three of its lessons hold at any size.

Look at connection settings

If you have connected AI tools to your systems, check whether the settings files of those connections contain keys. As the report shows, these files are a new source of leaks. Every team that builds agents and automations should run this check.

Lock list: lessons from the report

This article’s lock list has four lines, in order. One: confirm that no key sits in code or settings files. Two: set up secret scanning on the repository. Three: write the date of last rotation in your key list and rotate the old keys. Four: check the connection settings of AI tools separately. The consequences of unrecorded use inside organisations are set out in shadow AI breaches and their lessons. Forecast: in the next report the share of AI service keys will rise again, and tool connection files will grow as a heading of their own. Update log. 30 November 2026: first publication. Forecasts on this page are re-read when they fall due; one that proves wrong is corrected here, not deleted.

HOW

How does Adapte Digital look for exposed keys?

BU BÖLÜMÜN ÖZETİ

  • A single delivery package
  • What is reviewed
  • Where to start

In the Attack File we look where the report looks: code, settings files, repositories and the page source.

A single delivery package

Adapte Digital does not charge a monthly management fee. Work starts with a single delivery package whose scope is written down in advance: 36,000 TRY + VAT. If the work grows, the new need is defined as a separate add-on package, priced by what will be delivered rather than by the hours spent. 📦

In the Attack File we look where the report looks: code, settings files, repositories and the page source.

What is reviewed

Repositories and configuration files are scanned; for each key found, whether it is valid and where it is used is established.

Where to start

Which packages are open, and at what price, is shown on our campaign pages, item by item. 🧭

QUICK

Quick Summary

  • 28.65 million new secrets were written to public GitHub in 2025, a rise of 34 per cent.
  • AI service keys rose 81 per cent to 1,275,105.
  • 24,008 secrets were found in tool connection files; 2,117 were valid.
  • 64 per cent of the secrets valid in 2022 had still not been revoked.
  • Lessons: no keys in code, set up scanning, rotate regularly.
SHORT

Short Glossary

Secret
A secret is a key, password or token that grants access to a system.
Commit
A commit is a recorded change made to a code repository.
Remediation gap
The remediation gap is the time between a leak being exposed and its being closed.
FREQUENTLY

Frequently Asked Questions

NEXT

Next Step

Ask your developer: is secret scanning set up on our repository? If the answer is no, setting it up takes under an hour.

Sources: GitGuardian — The State of Secrets Sprawl 2026 · GitGuardian — When We Use AI To Ship Fast, Secrets Spread Fast · OpenAI Help Center — Best practices for API key safety

Updated: November 2026

Adapte Digital · AINEO-assisted desk · Reviewing editor: Mehmet Şenol

Ask your developer: is secret scanning set up on our repository?

Sık Sorulan Sorular

Why are they not revoked?

Because often nobody knows the key leaked, and whoever knows does not know where it is used. The fear that revoking will break something postpones the work. The report’s executive summary puts it this way: secrets sprawl is accelerating faster than remediation. A team without a rotation routine cannot close a leak even when it notices one.

Do these figures cover a small business like mine?

They are worldwide totals. They show the trend, not the risk of one business; the trend holds at every size.

If my repository is private, am I outside the number?

You are outside the main figure and not outside the risk. The report says internal systems are more prone to leaks.

Is having AI write code dangerous?

The report measured a higher leak rate and stressed that the human factor remains decisive. The answer is scanning before a push, not giving up the tool.

Bu Konuyla İlgili Diğer İçerikler

Share this article
WhatsAppXLinkedInFacebook

Comments

TREN