Cloudanix Achieves AWS Security Competency Status for Its CNAPP+ Platform and Just-in-Time Access Engine

Cloudanix – Your Partner in Cloud Security Excellence

24,000 Secrets Sitting in MCP Config Files: Why AI Agents Need JIT, Not Better Key Vaulting

  • Abhiram Shindikar Abhiram Shindikar
  • Tuesday, Oct 13, 2026

In early October 2026, GitGuardian published research from its State of Secrets Sprawl work that should make every platform and security team pause: analysts found 24,008 unique secrets hardcoded in public Model Context Protocol (MCP) configuration files, of which 2,117 were valid, live credentials. A separate analysis of coding activity found a measurable leak rate in commits made with AI coding assistants. In parallel, other researchers reported that across tens of thousands of public MCP config files, roughly one in eight credential slots held a hardcoded secret anyone could read.

Primary sources: GitGuardian, TechTarget, and the structural analysis in Ars Technica.

If you are reading this as a CISO, a platform lead, or a security engineer, you already know what a live credential in a public file means. It means anyone on the internet can pick it up and use it, with the exact permissions you granted. What is new is where these credentials are leaking from, and why the usual advice — “store your secrets in a vault” — does not actually close the hole this time.

This post explains what MCP is, why AI coding agents have turned into a credential-leak engine, why vaulting alone does not solve it, and the control model that does. The problem is real, but it is also bounded and fixable. You do not need to ban AI coding tools or panic. You need to change one thing about how agents get access.


First, What Is MCP and Why Should You Care?

MCP, or Model Context Protocol, is the connective tissue that lets an AI coding agent talk to the outside world. When Claude Code, Cursor, Copilot, or Kiro needs to read a database, call a cloud API, hit an internal service, or query a SaaS tool, it does so through an MCP server. The MCP configuration file tells the agent how to connect to each of those systems — including, very often, the credentials to authenticate.

That last part is the problem. MCP config files have quietly become a place where developers paste API keys, database passwords, cloud access keys, and tokens so their agent “just works.” And because these files live in repositories, dotfiles, and example projects, a large number of them have ended up public — on GitHub, in shared templates, in documentation.

So the research findings are not describing an exotic exploit. They are describing a filing cabinet of live keys that got left on the sidewalk. The agents did their job. The humans configuring them did the natural, convenient thing. And convenience, as usual, won over safety until someone counted.


Why AI Coding Agents Made This So Much Worse

Teams have leaked secrets into code for as long as there has been code. So why is this moment different? Three reasons, and they compound.

1. Agents multiply the number of connection points. A traditional application has a handful of integrations, configured once by someone who thought about it. An AI coding agent is encouraged to connect to everything — your database, your cloud, your ticketing system, your observability stack — because that is what makes it useful. Every connection is another credential that has to live somewhere, and the path of least resistance is the config file.

2. The credentials are usually long-lived and broad. When a developer wires up an agent, they tend to give it a durable key with generous permissions, because scoping it tightly is extra work and a too-narrow key means the agent fails mid-task. So the typical agent credential is both powerful and permanent — the worst combination to leave in a file.

3. Agents generate and commit code fast. The whole point of a coding agent is velocity. More commits, more frequently, with less line-by-line human review. GitGuardian’s finding of a leak rate in AI-assisted commits is the direct consequence: when a machine is producing and committing code quickly, a hardcoded secret slips into history more easily and gets noticed later.

Put together: more credentials, each one more valuable, flowing through a faster pipeline with lighter review. That is why a problem that always existed just jumped an order of magnitude.


Why “Just Use a Secrets Vault” Does Not Fully Fix It

Here is the uncomfortable part, and we would rather be straight with you than hand you comforting advice that does not hold.

The standard response to leaked secrets is: “stop hardcoding them, put them in a secrets manager, and reference them at runtime.” That is good hygiene and you should do it. But it does not actually solve the agent problem, for a simple reason:

A vault changes where the credential is stored. It does not change the fact that the credential is long-lived and broadly scoped. The agent still ends up holding a durable, powerful key at runtime — and that key can still be extracted, logged, mishandled, or lifted out of memory.

A vault moves the key from a file into a slightly better drawer. The key still exists, still works forever, and still reaches far more than any single task requires. If an agent is manipulated through prompt injection, or a developer’s machine is compromised, or the credential is simply misused, the vault did not change the outcome — because at the moment of use, the agent was holding the same powerful, persistent key.

This is the core insight, and it is the one the industry is slowly arriving at: the problem is not where the credential is kept. The problem is that a durable credential exists at all.


The Fix: Just-in-Time Access for Agents

Cloudanix approaches this with Just-in-Time (JIT) access extended to AI coding agents and other non-human identities. The model inverts the default:

  • The agent holds no standing credential. There is nothing in the config file, nothing in the vault that the agent carries around, nothing to leak.
  • When the agent needs to act, it requests access for that specific moment.
  • It receives a scoped, short-lived credential — good for the task at hand and nothing more.
  • The credential auto-revokes after the task, usually in seconds.

Let us connect that directly to the research.

Coding Agent JIT via MCP: the credential never sits still

Cloudanix provides Coding Agent JIT through an MCP server. Instead of the config file holding a static key, the MCP server mints a scoped credential at request time, hands it to the agent for the task, and destroys it afterward — with a human-in-the-loop approval where you want one.

Now re-read the finding: “24,008 secrets hardcoded in MCP config files.” With Coding Agent JIT, there is no secret to hardcode. The config points the agent at the broker, not at a key. The thing that leaked by the thousands simply is not present. You cannot leak a credential that is minted for ten seconds and destroyed before the next commit.

Agentic JIT: the same model for pipelines and service agents

The same inversion applies to CI/CD pipelines, Lambda functions, service accounts, and autonomous agents through Agentic JIT. Register the identity once; from then on it elevates for the operation it needs via an SDK call and auto-revokes. No permanent pipeline secret, no standing service-account key.

Identity-stamped audit in your own storage

Every grant, approval, and revocation is logged with the real identity behind it, written to your own S3 bucket. When an auditor asks “who accessed this database and when,” or when you investigate an incident, the answer is already recorded. This replaces the uncomfortable truth most teams live with today: nobody can say with precision what their agents’ credentials have actually been used for.

Correlation with posture and entitlements

Because JIT runs on the same platform as Cloudanix CSPM and CIEM, an over-privileged or orphaned machine identity surfaced by posture analysis can feed straight into JIT policy. The system that detects “this agent credential reaches too much” is wired to the system that removes the standing access.


Being Honest About the Boundaries

We want you to deploy this with full understanding, so here is where the line sits.

What JIT genuinely eliminates: the standing credential. No durable key in a config file or a vault means nothing to find, nothing to lift, nothing that outlives its task. The specific thing GitGuardian counted — live secrets sitting in files — goes to zero for agents under JIT, because the model does not produce durable secrets in the first place.

What still needs ordinary hygiene: JIT governs the credentials your agents request through the broker. It does not retroactively clean secrets already committed to your git history, and it does not replace secret scanning on your repositories. You should still scan, still rotate anything already exposed, and still keep a vault for the credentials that genuinely must persist (and some will). JIT shrinks that set dramatically; it does not claim to make it empty.

What JIT does not do: it does not stop an AI agent from being tricked by a malicious prompt. What it does is make the trick far less rewarding — a manipulated agent holding a ten-second, single-task credential cannot pivot into your wider environment the way one holding a permanent admin key can.

We flag these boundaries on purpose. A control is only trustworthy when you know exactly what it covers. This one covers the part of the problem that the headline numbers are actually measuring.


A Rollout You Can Start Without Slowing Anyone Down

  1. Scan for what has already leaked. Run secret detection across your repos and MCP configs. Rotate anything live immediately. This is triage, independent of JIT.

  2. List your agents’ standing credentials. For every AI coding agent and pipeline, write down the keys it holds and what they reach. This inventory is usually eye-opening.

  3. Move the highest-value credentials to JIT first. Database and cloud credentials that reach production are the priority. Replace the static key in the config with a broker reference.

  4. Default to friction-free approvals for low-risk work. Auto-approve read-only requests and incident-driven access so developers feel no drag; reserve explicit approval for sensitive operations.

  5. Confirm audit lands in your storage. Make sure every grant and revocation is queryable in a bucket you own.

Each step reduces exposure on its own, and none of them requires taking tools away from your engineers. That is the point: the goal is not to make AI coding agents harder to use. It is to make the credentials they use worthless to steal.


The Takeaway

The 24,000-secret finding is not a reason to distrust AI coding agents. It is a reason to distrust durable, broadly-scoped credentials — and to stop handing them to agents in the first place. Vaulting the key is better than hardcoding it, but the real answer is to not have a standing key at all.

When every agent requests access just in time, uses a credential scoped to its task, and gives it back seconds later, the config file has nothing worth stealing, the vault holds far less, and your audit trail finally answers the questions your auditors and your board are asking. You can keep moving fast with AI in your pipeline. You just need the credentials to move at the same speed — appearing when work happens and disappearing when it is done.

Want to see how many standing agent and pipeline credentials exist in your environment right now? Talk to us and we will map them with you, then show you how JIT takes them off the table.

People Also Read

What Our Users Are Saying

Customer Reviews

Cloudanix is trusted by security leaders worldwide to deliver proactive, reliable, and cutting-edge cloud security.

One day, I changed the password of a root account, and my CTO called me within less than a minute to confirm if I did so. I was not expecting a reaction this quick. He told me Cloudanix alerted him of this password change and that he wanted to confirm as it was a critical security notification. I couldn't believe it!

Ritesh Agarwal
Ritesh Agarwal
CEO, Airgap Networks

Compliance is one way of staying secure, but what I want is the ability to go deeper and attain 'true security.' Cloudanix provides us the capability to do so.

Vishal Madan
Vishal Madan
Head of Engineering, iMocha

Cloudanix is building for the future of the cloud, which makes the product all the more desirable.

Ritesh Agarwal
Ritesh Agarwal
CEO, Airgap Networks

Cloudanix gave us the visibility we were missing. Being able to move from permanent access to a robust Just-In-Time (JIT) workflow has fundamentally changed our security posture without slowing down our engineering velocity.

Pavan Kumar Lekkala
Pavan Kumar Lekkala
SRE Lead, HugoHub

We are excited to leverage Cloudanix's comprehensive multi-cloud DevSecOps solution to secure our production workloads on AWS. Cloudanix has demonstrated that it can solve many challenges that DevSecOps teams face while continually adding new features such as SOC2 compliance and drift detection.

Satish Mohan
Satish Mohan
Co-founder & CTO, Airgap Networks

Managing third-party partner access was once a major concern for our security posture. With Cloudanix JIT Cloud, we've effectively achieved zero third-party risk. We can now grant access confidently, knowing that it is temporary, audited, and automatically revoked, resulting in a 100% reduction in our privileged access exposure.

Okesh Badhiye
Okesh Badhiye
Head of Technical Engineering, Finfinity

The snooze feature and responsible alerts have helped us save time and prioritize what to tackle first.

Satish Mohan
Satish Mohan
Co-founder & CTO, Airgap Networks

Implementing Cloudanix JIT internally allowed us to practice what we preach. By eliminating permanent access to our own clouds and databases, we've neutralized the risk of standing privileges, ensuring our own 'keys to the kingdom' are never left exposed.

Girish Manghnani
Girish Manghnani
Managing Partner, Tech Inspira

The problem with permissions is a lot of times, the gaps are left open due to oversights from inside the organization itself. With Cloudanix's CIEM, we get a complete view of user permissions and access. This enables us to update the permissions, reducing the attack surface.

Nilesh Pethani
Nilesh Pethani
Application Architect, iMocha

In the world of Fintech, trust is our currency. Cloudanix provided the frictionless visibility we needed to secure our EKS workloads across AWS, ensuring we stay audit-ready for SOC2 and GDPR without slowing down our engineering velocity.

Amol Naik
Amol Naik
Head of Security & Infrastructure, HugoHub

Cloudanix delivered value within 5 minutes of onboarding. Continuous monitoring, timely detection, and excellent documentation helped us attain a great cloud security posture.

Divyanshu Shukla
Senior DevSecOps, Meesho

Technology strategies and business strategies are in a state of constant change which includes centralization and decentralization of responsibilities. Regardless of strategic shift, we still have intellectual property to protect. Cloudanix are critical partners for us in our public cloud security posture across our three cloud providers.

Jerry Locke
Jerry Locke
Senior Director Global Solutions Engineering, Eversana

Cloudanix has been amazing. They opened up a common Slack channel with us — and it feels like we are talking to our own team and getting things done with Cloud security. The support team is always available, friendly, helpful, and ready to go out of their way.

Satish Mohan
Satish Mohan
CTO, Airgap Networks

Beyond just access management, Cloudanix CSPM has given us a unified view of our AWS environment. The real-time alerting and anomaly detection allow us to prevent any untoward activity before it happens, which is critical for a marketplace connecting 50+ financial institutions.

Okesh Badhiye
Okesh Badhiye
Head of Technical Engineering, Finfinity

For a Fintech company, data is our most valuable — and most sensitive — asset. Cloudanix DAM hasn't just improved our visibility; it has given us control. The ability to mask data and prevent unauthorized queries in real-time is a game-changer for our compliance and customer trust.

Jiten Gala
Jiten Gala
President Engineering and Product, Kapittx

Our clients, especially in the Middle East financial sector, demand absolute accountability. Cloudanix JIT Cloud has been a competitive differentiator for us, allowing us to provide secure, governed access to customer accounts that meet their strictest audit and compliance requirements.

Girish Manghnani
Girish Manghnani
Managing Partner, Tech Inspira

Cloudanix is always on my team's lips because of its exceptional support. Be it a small or big query, Cloudanix has gone above and beyond to resolve them. This one's a keeper for us.

Sujit Karpe
Sujit Karpe
CTO, iMocha

For a long-lasting partnership, great support goes a long way. Cloudanix has delivered exceptional support whenever required. Their edge is their team is always ready to go beyond to solve any issues that we have. This speaks volumes about the culture at Cloudanix.

Akash Maheshwari
Akash Maheshwari
Co-founder, MoveInSync

Beyond the technology, Cloudanix feels like an extension of our own team. Their willingness to stand up a dedicated Middle East tenant for us and provide exceptional support at a sensible price makes them a long-term partner for Hugosave.

Surya Tamada
Surya Tamada
CTO, HugoHub

The real-time notifications that Cloudanix provides are a real lifesaver. Their adaptive notifications ensure that my team stays productive and doesn't get interrupted all the time.

Digvijay Singh
Staff Security Engineer, Meesho

The whole point in technological evolution is to help improve the world we live in. We must protect that and to do so requires an effective and efficient security strategy. The Cloudanix team helped make our public cloud security posture management strategy a reality. The symbiotic relationship we have allows for a continuous feedback loop which is how business should operate.

Larry Wheat
Larry Wheat
Staff Solutions Engineer, Eversana

Ready to see your graph?

Connect a cloud account in under 30 minutes. See every finding rooted in identity, asset, and blast radius — with a fix path attached.

Book a Demo