AI Agents Turn Leaked GitHub Secrets Into Azure Key Vault Theft
Microsoft saw an AI agent reach Azure Key Vault from a leaked GitHub secret in five minutes — no exploit, a valid credential. How to close the window.
Published by Zero Hunt, an autonomous AI red team on an on-premise appliance running private AI: automated penetration testing for networks and infrastructure, black-box or gray-box, with a human approving every step that matters.
Microsoft Threat Intelligence watched an AI agent search public GitHub for a leaked application secret, sign in to Entra ID as the owning service principal, and start pulling data out of Azure Key Vault — the whole way through in five minutes. No vulnerability was exploited anywhere in that chain. The secret was valid, the sign-in was legitimate, and the permissions were ones the application already had. The uncomfortable part is not the sophistication; it is the arithmetic. Developers push roughly 28.6 million new hardcoded secrets into public GitHub every year, and the window between a key hitting a public repo and an autonomous agent using it has collapsed from the weeks a human triage team assumes to the minutes an agent actually needs.
From a GitHub secret to Azure Key Vault in five minutes
The account is in Microsoft's November 5 report on agentic secret abuse. Starting in August 2026, Microsoft observed an agentic offensive framework — it names ARTEX — submitting large volumes of GitHub secret-search queries built from target organization names, secret keywords, cloud-service keywords, and AI-provider keywords. Where a returned key still worked, the agent authenticated to Microsoft Entra ID as the matching application and went to work.
"As early as October 28, 2026," Microsoft saw successful service-principal sign-ins from 199.19.77.84 using leaked or stolen application credentials, reaching Entra ID tenants and the Azure and Microsoft 365 resources behind them. In one documented case the agent progressed, in Microsoft's words, to "advance from scanning GitHub for secrets to exfiltrating data from Azure Key Vault in just five minutes." Across the campaign it "successfully conducted service principal sign-ins on dozens of associated applications across multiple tenants" — in at least one instance a vendor's multitenant application credential was compromised at the source and reused against downstream customer tenants.
Once inside, the agent behaved like a methodical operator with no coffee breaks: it enumerated subscriptions, resource groups, permissions, and AI model deployments; pulled storage account keys, App Service settings, connection strings, publishing credentials, AKS user credentials, and AI/ML datastore connections; read Key Vault secrets; searched Azure DevOps for more secrets; ran commands on VMs; and reached into SharePoint and OneDrive for files and mailbox items. The recurring prize was AI-service credentials — API keys for major providers and OAuth apps with access to Azure AI tooling.
The indicators Microsoft published are addresses and behaviors, not file hashes, and it flags them as unattributed:
| Indicator | Role, per Microsoft |
|---|---|
199.19.77.84 |
Primary sign-in IP; originated the ARM (Azure Resource Manager) operations |
199.19.77.18 |
Second sign-in IP; a Tor exit node that may also carry unrelated traffic |
65.87.223.26 |
Shell-command exploitation attempts and App Service token theft |
157.22.126.128 |
Reconnaissance against Azure AI workloads |
By default, Microsoft notes, ARTEX reaches for ordinary tools — Nmap, curl, wget, Python HTTP clients, the Norma SDK, and headless Chromium through Playwright — and changing those fingerprints is trivial for the operator. The network indicators are the kind you block today and the attacker rotates tomorrow.
No vulnerability was exploited
This is the detail that should reorganize how you think about the threat. As Truffle Security put it in its breakdown of the case:
No vulnerability was exploited anywhere in that chain. The secret was valid, the sign-in was legitimate, and the permissions were ones the application already had.
You cannot patch a valid credential. Every control tuned to catch a CVE being fired — the exploit signature, the malformed request, the suspicious binary — sees nothing here, because the agent is doing exactly what the application is authorized to do. Microsoft's own framing is blunt: "Treat credentials that have been publicly exposed as compromised," because "publicly exposed credentials remain usable until revoked or rotated." The attack surface is not a bug in your software. It is the gap between the moment a secret leaks and the moment someone with authority over that secret kills it.
That gap used to be survivable because finding and weaponizing a specific leaked key was slow, manual work. An agent reading GitHub search results, testing keys, and pivoting through a cloud tenant at machine speed removes the slack entirely.
The agent debugged itself
What marks this as an autonomous operation rather than a script is that it recovered from its own mistakes without a human. Microsoft describes a batch of requests enumerating secret metadata across several Key Vault resources returning HTTP 400 — the agent had sent a data-plane API version against the Azure Resource Manager control-plane API. About 28 seconds later, the same vault paths were requested again with a supported ARM version (2023-07-01) and returned HTTP 200. Microsoft recorded the same self-correction twice more: an Azure SQL firewall-rules query fixed roughly 60 seconds after its failure, and an Application Insights call about 80 seconds after its own. Microsoft calls the pattern "adaptive troubleshooting."
A failed API call retried a minute later with a corrected version is not how malware behaves. It is how an engineer behaves — read the error, adjust the parameter, try again — except compressed into seconds and never getting bored, distracted, or discouraged. That tempo is the durable signal, because the operator cannot cheaply slow it down without giving up the advantage that makes the whole approach worth running.
Secrets sprawl: why leaked GitHub credentials keep working
The five-minute case is a single observation; the reason it is not a fluke is the scale of the fuel supply. GitGuardian's 2026 State of Secrets Sprawl report counted 28,649,024 new secrets in public GitHub commits during 2025 — a 34% jump year over year. These are not all stale: GitGuardian tracked valid secrets detected in 2022 and found 64% of them still active and exploitable four years later. The report's one-line diagnosis of why is the one every platform team recognizes — "teams can't rotate secrets without risking production outages, so they don't."
The composition is getting worse for exactly the resources this campaign targets. GitGuardian counted 1,275,105 exposed AI-service secrets, up 81% year over year — the API keys that unlock models, inference endpoints, and the data behind them. Attackers are now using agents to steal the keys that power other people's agents.
A second door: the same operator exploiting Langflow
The leaked-secret route is not the only way the same actor reaches the same destination. VulnCheck's canary tokens caught 199.19.77.84 — the same primary sign-in IP from Microsoft's report — arriving through a different door entirely: exploiting exposed Langflow instances to pull credentials straight off the host. CVE-2025-3248 lets an unauthenticated caller send Python to Langflow's code-validation endpoint; it has been on CISA's Known Exploited Vulnerabilities catalog since May 2025 (and is flagged for known ransomware use). VulnCheck's summary of related reporting puts the campaign's footprint at 27-plus organizations (per Todyl) and Azure token theft in four customer tenants (per Huntress).
The staged, self-dependent behavior VulnCheck observed — dump the environment, map the host, scrape for sk-, AKIA, AIza and Azure AI key patterns, then iterate four decryption attempts over about 80 seconds until one worked — is the same machine-speed self-correction Microsoft described. Whether the key was leaked to GitHub or scraped from a vulnerable app, both routes end in the same place: credentials for AI services and the cloud resources behind them. The lesson for defenders is that chasing the ingress misses the point. The constant is an autonomous agent monetizing any credential it can reach.
Remediation
Treat any application secret that has touched a public repo as compromised, and respond to the identity, not just the file. Microsoft's guidance, condensed:
- Am I affected? Review Entra service-principal and non-interactive sign-in logs for
199.19.77.84and199.19.77.18, including failures. A sign-in errorAADSTS7000215(invalid secret) orAADSTS7000222(expired secret) immediately followed by a success is an urgent signal — it is an agent trying stale keys until one lands. Cross-check Azure Activity, Key Vault and Storage diagnostics, Entra audit, Azure DevOps audit, and Microsoft 365 unified audit logs. This is abuse of valid accounts (MITRE ATT&CK T1078) feeding credential collection from files and stores (T1552.001). - Revoke, then rotate — they are different steps. Remove every client secret, certificate, and federated credential on the affected application, including any the attacker may have added, and disable the service principal if needed. Note Microsoft's caveat: "tokens already issued remain valid until expiry," so revoke active sessions, Azure DevOps PATs, and SSH keys for affected users as well. Then rotate everything in any Key Vault the affected app could read, plus any credentials found in documents the identity accessed. Revoking the leaked key is where the response starts, not where it ends.
- Contain the active address. Block
199.19.77.84/32as a named location in Conditional Access for workload identities and in a user-scoped block policy for replayed sessions. Block the exact IP, not the whole ASN — these are shared hosting and Tor ranges. - Close the leak at the source. Turn on GitHub secret scanning with public-monitoring and push protection so a key is caught before it is committed, not after it is used. Migrate OAuth apps off secret-based authentication to managed identities, enforce least privilege on service principals so one compromised identity cannot act fleet-wide, and restrict who can register applications.
- Verify clean after rotation. Confirm the old credentials no longer authenticate and that no new secrets, certificates, or federated credentials were added to the application during the exposure window.
Finding your own exposed secrets before an agent does
The defensive problem this campaign exposes is one of visibility you do not have: you cannot see which of your secrets are sitting in a public repo, which still authenticate, and — the part that actually decides the blast radius — what each one reaches once it does. ARTEX's operators answer that question by running the attack. The only test that answers it on your terms is one that runs at the same tempo under control you keep.
Zero Hunt is the governed version of what those operators run: an autonomous AI red team — a 10-agent swarm driven by private models on an on-premise appliance — that hunts your exposed credentials, authenticates as the identity a leaked secret belongs to in a controlled black-box campaign, and proves what it actually reaches: which Key Vault, which storage keys, which AI endpoints. Every exploitation step passes through five human-in-the-loop autonomy levels and is signed at write time, so you get the attacker's answer without the attacker. When it finds a reachable secret, the AI Remediation Advisor ranks the exposure by what it proved was reachable — not by a generic CVSS guess — and hands back the exact revoke-and-rotate plan, with rollout and rollback notes, then re-verifies with the same proof that found it. Talk to us about running that loop before someone else's agent runs it for you.
Is this exploitable in your environment?
Zero Hunt answers that on your own network: an autonomous AI red team on an on-premise appliance, running on private AI, black-box or gray-box, with a human approving every step that matters. Proof of what is exploitable, the fix, and signed evidence — your data stays on your network.