Five Minutes From Leak to Loot: AI Agents Just Made Quarterly Credential Rotation Obsolete

Microsoft watched an AI agent go from finding a leaked key on GitHub to pulling data out of an Azure Key Vault in five minutes. Most organizations rotate credentials on a schedule measured in months.

November 11, 2026 | By The CyberSurv Team | CyberSurv

Open bank vault door in a modern data center with glowing data particles escaping, representing AI agents stealing credentials and secrets at machine speed

On November 5, Microsoft Threat Intelligence published research that should change how every security leader thinks about leaked credentials. An AI agent found an exposed secret in a public GitHub repository, signed in with it, mapped what it could reach, and exfiltrated data from an Azure Key Vault. Total elapsed time: five minutes.

Not five days. Not five hours. Five minutes — less time than it takes to refill your coffee and find the conference room.

Leaked credentials aren’t a new problem. Attackers have mined public code repositories for passwords and API keys for over a decade. What changed is the speed and the economics. A human operator had to find the repository, read the code, figure out what the secret unlocked, and then do something with it. The agentic frameworks Microsoft observed do all of that without anyone touching a keyboard.

The Attack Microsoft Watched in Real Time

The framework in question is ARTEX, the same open-source agentic pentesting tool we covered when AI agents rode a trusted backup platform into 2,250 cloud tenants last month. Microsoft’s new report documents agents scanning public GitHub for credentials, application secrets, and AI inference API keys, then chaining them forward: a leaked OAuth application secret became a service principal sign-in, which became cloud resource enumeration, which became Key Vault exfiltration and searches through Azure DevOps for even more secrets.

One detail in the telemetry stands out. When an agent’s request failed with an HTTP 400 error because it used the wrong API version, it corrected itself and reran the batch successfully — 28 seconds later. Another malformed query got fixed in about 60 seconds. Think about your own change-control process for a moment. The attacker’s tooling debugs itself faster than most teams can open a ticket.

The Tool Was Taken Down a Month Ago. The Attacks Didn’t Stop.

ARTEX was published on GitHub in late July and pulled on October 8, right after the first abuse reports surfaced. According to GitGuardian’s analysis, the removal changed nothing — Censys counted roughly 1,400 publicly exposed ARTEX instances as of November 4, and Check Point reported more than 1,800 a day later. The genie doesn’t go back in the bottle; it forks the repository.

The framework itself is deliberately generic. It ships with minimal tooling and leaves the decision-making to the AI agent. An operator states a goal, then steps away. That design is exactly why the same tool keeps showing up against banks, software vendors, and infrastructure providers.

GitBook’s Very Bad Weekend

If you want to see what this looks like from the victim’s chair, read GitBook’s incident post-mortem. On the evening of November 2, an attacker GitBook describes as using AI agents exploited a flaw in the company’s SSO login flow to mint sessions as GitBook staff. From there: a misconfigured GitHub App surrendered access to internal code repositories, which exposed a Cloudflare API key, which unlocked production secrets, which granted full infrastructure access through a service account.

Every link in that chain is a credential. The AI just walked the chain faster than anyone expected.

GitBook did something we want to highlight, because it took real discipline: they deliberately took their entire platform offline for roughly 16 hours, rotated every secret in production, and revoked every customer API token — choosing a painful, public outage over letting an intruder keep hunting while they worked. That’s the right call, and most organizations haven’t rehearsed it.

One Vendor Credential, Many Victims

Buried in Microsoft’s report is the finding that worries us most. In some cases the compromised credential belonged to a vendor-owned multitenant application — and it was abused to access multiple downstream customer tenants. One leaked secret at one supplier became a master key to many organizations at once.

Maritime and industrial operators should feel this one personally. Your fleet-management platform, your crewing system, your planned-maintenance software, and your remote-monitoring vendor all hold standing credentials into your environment. We’ve already seen what concentrated trust costs: KeyDrift turned SD-WAN controllers into listening posts for entire fleets, and harvested FortiGate credentials from the FortiBleed breach circulated through maritime networks for months. Now add an attacker that can test ten thousand stolen keys before lunch. Shipboard and OT credentials are often rotated on something close to a dry-dock schedule. The adversary’s schedule is now measured in seconds.

The Rotation Window Has Collapsed

The numbers behind this problem are grim. GitGuardian counted 28.65 million new hardcoded secrets hitting public GitHub in 2025, and found that 64% of the secrets valid in 2022 were still active years later. Microsoft’s report is blunt on the key point: a publicly exposed credential remains usable until it’s revoked or rotated. Deleting the commit does not remediate the exposure.

For years, quarterly rotation policies worked because exploitation took longer than the rotation window. That assumption is dead. A Cloud Security Alliance research note on the campaign puts it well: the metric that matters now is detection-to-revocation time, not rotation frequency. If a secret lands in public code, treat it as compromised on arrival and revoke it automatically — waiting for proof of abuse means the abuse already happened.

NIST’s Answer: Agents Get Identities, Not Keys

The good news is that the standards world is moving. In late October, NIST’s National Cybersecurity Center of Excellence published design tenets for AI agent identity and authorization: every agent gets its own distinct identity with a named owner, delegation can only narrow permissions, and standing privilege goes to zero. NIST’s own framing is refreshingly direct — guardrails alone are insufficient. Long-lived bearer tokens held by agents, human or artificial, are the thing to retire first.

What to Do This Week

You don’t need a new platform to start closing this gap. You need a short list and some urgency:

  • Find your exposure. Scan public GitHub for secrets tied to your organization and enable push protection so new ones get blocked before they land.
  • Automate revocation. Any secret that touches public code is burned. Build the pipeline that revokes it in minutes, not the meeting that discusses it on Thursday.
  • Kill long-lived secrets. Move workloads to managed identities and short-lived, federated credentials wherever the platform supports them.
  • Map vendor trust. List every third-party platform holding credentials into your environment and ask what one compromised vendor key could reach.
  • Test the chain. Our penetration testing team hunts exactly these paths — the forgotten token, the over-permissioned service account, the integration nobody owns.

This is also precisely the work our RiskGuard 365℠ program does continuously: watching your external exposure, tracking which advisories actually touch your asset inventory, and flagging the credential sprawl before an agent finds it. And if your leadership team needs help turning “rotate faster” into budget and policy, our Security Leadership Program exists for exactly that conversation.

Final Thoughts

Every security program carries assumptions about how fast attackers move. Those assumptions are embedded in rotation schedules, review cadences, and incident-response playbooks that were calibrated for human adversaries. Microsoft just published the stopwatch evidence that the calibration is wrong. Five minutes from leak to loot. Twenty-eight seconds to debug a failed API call. The organizations that thrive in this era won’t be the ones with the fewest leaked secrets — they’ll be the ones that can revoke trust faster than software can abuse it.

Let’s Explore What’s Possible

Whether you need to find out what’s already exposed, collapse your own detection-to-revocation window, or build an agent-ready identity strategy, we’re ready to help you get ahead of machine-speed adversaries.

Schedule a Consultation

Scroll to Top