On 5 November 2026, Microsoft Threat Intelligence and Microsoft Security Research described attackers using ARTEX, an agentic offensive security framework, to search GitHub for leaked secrets and act on them. The agents found OAuth application secrets, signed in as the matching service principals and moved through Azure and Microsoft 365. In at least one case, Microsoft says, an agent went from scanning GitHub to taking data out of Azure Key Vault in five minutes.
The short answer for defenders: a leaked app secret is not a code-hygiene problem, it is a working login for a non-human identity. What it costs you depends on the roles that identity holds, so the clean-up has to cover the identity, its credentials and everything it could read.
In this piece, we will cover:
- What Microsoft observed, in time order
- What the agents did after signing in
- Why a leaked app secret is an identity problem
- What Microsoft recommends
- Questions to ask about your own app registrations
- Where nerl0 fits, and what this does not show
What did Microsoft observe?
The report was published on 5 November and updated on 10 November. It names the tooling but, in its body text, no specific actor. GitGuardian, Cyber Security News, NeoTeo and ODSC covered it in the following days.
| When | What happened | Source |
|---|---|---|
| From August 2026 | Large volumes of GitHub queries for secrets, combining a target organisation's name with secret, cloud-service or AI-provider keywords | Microsoft |
| From 28 October 2026 | Successful service principal sign-ins from one IP address across several application IDs and customers | Microsoft, Cyber Security News |
| In at least one case | Five minutes from GitHub scanning to Key Vault exfiltration | Microsoft, NeoTeo, ODSC |
| 5 November 2026 | Microsoft publishes the report with detection queries and containment steps | Microsoft |
Microsoft counts sign-ins for dozens of applications across multiple tenants. One case shows how far a single credential can travel: a multitenant app's credential was compromised at the vendor that owns the app and then used against that vendor's downstream customer tenants.
A note on the five-minute figure. Microsoft gives it for one case. Some coverage turns it into a general speed, and GitGuardian's summary speaks of attackers moving in "as little as five minutes". The safe reading is that it can be that fast, not that it always is.
What did the agents do after signing in?
Once signed in as an application, the agents behaved like a careful administrator with bad intent. According to Microsoft, they:
- Enumerated subscriptions, resource groups, permissions, AI model deployments and service configurations.
- Went after operations that return more credentials: storage account keys, App Service settings, connection strings, publishing credentials, AI and machine learning connections, and AKS user credentials.
- Read secrets from Key Vault and searched Azure DevOps for more secrets.
- Ran commands on virtual machines through Azure Run Command.
- Reached Microsoft 365 data: file downloads from SharePoint and OneDrive, access to mailbox items, and Microsoft Graph requests, mostly searches.
Microsoft says the agents focused on AI-service credentials and OAuth apps with access to Foundry Tools. It also describes how they handled errors. Three requests to Azure Resource Manager failed with HTTP 400 because of a wrong or outdated API version. The agents corrected the version and succeeded about 28, 60 and 80 seconds later, for a Key Vault listing, an Azure SQL firewall rule and an Application Insights query. NeoTeo lists the same three retries. This is the practical change: a failed call no longer slows an attacker down for long.
Why is a leaked app secret an identity problem?
A client secret proves that the caller is the application. Whoever holds it gets the application's permissions, from anywhere, without a user, a device or an MFA prompt. So the damage is set by the identity, not by the leak. A secret for a test app with no roles is noise. A secret for an app that can read a production Key Vault is a path to every credential stored there.
Read the activity above as a chain. Each step only worked because the previous identity already had the permission:
- Public repository holds an application secret.
- Service principal accepts the secret and issues tokens.
- Role assignment lets that principal list resources and read Key Vault or storage keys.
- New secrets from the vault open more identities and more data.
That is an authority path, and it is why Microsoft's advice reaches far beyond the repository. We compared the Azure identity types in Azure identities for AI agents. Microsoft recommends moving OAuth apps from client secrets to managed identities, which do not use a client secret that could leak.
What does Microsoft recommend?
Microsoft's guidance splits into containment, hunting and hardening. The main points:
- Remove every credential on an affected app: client secrets, certificates and federated credentials, including any the attacker added. Disable the service principal if needed.
- Remember that issued tokens stay valid until they expire. Removing the secret does not cancel them. NeoTeo stresses the same point.
- Rotate everything in any Key Vault the app could read, and any credentials found in documents the attacker accessed.
- Treat a public secret as compromised. Deleting the commit does not invalidate it.
- Hunt in sign-in logs. Failures with AADSTS7000215 (invalid secret) or AADSTS7000222 (expired secret) mean someone holds a credential for your app. A failure followed by a success is urgent.
- Watch for unusual patterns: one IP authenticating to three or more service principals, or one app requesting tokens for Resource Manager, Key Vault, Storage and Graph within a short window.
- Harden: cap secret lifetime with app management policies, restrict app registration, apply least privilege to role assignments, inventory OAuth apps and use Conditional Access for workload identities.
Microsoft notes that Conditional Access for workload identities needs Workload ID Premium and covers only single-tenant apps in your tenant. For more on revoking access once a grant is suspect, see revoking OAuth access for AI tools.
Which questions should you ask about your app registrations?
- Which applications still use client secrets, and how long are those secrets valid?
- Which of them hold roles that can read Key Vault, storage keys or connection strings? Those are the ones a leak turns into more credentials.
- Which multitenant apps from vendors have consent in your tenant, and what can they reach?
- Who owns each application? Someone has to decide whether a role can shrink or a secret can go.
- Which apps can reach AI services and model deployments? Microsoft says the agents looked for exactly these.
Our guide on auditing OAuth grants to AI tools covers the consent side of the same inventory.
Where nerl0 fits
nerl0 maps every AI agent and non-human identity and what each can reach, including service accounts and OAuth apps. It connects read-only through each platform's own interfaces and reads configuration and permission data, never the contents of data stores.
The Security Graph shows authority paths: agent, credential, role, crown-jewel data store. Every step is an observed relationship. A question like 'which service principals with a credential can read a Key Vault, and who owns them?' can be activated as one of your Questions and is measured again with every scan. Issues carry severity, evidence, an owner and a recommended breakpoint, and the next scan verifies the fix. Other agent-related incidents are collected in the Incident Tracker.
An authority path shows what an identity can reach in configuration. 'Proven' describes the route, not that anyone used it. A map of reach does not show whether a secret sits in a public repository, whether it was used, or what an attacker read. For that you need secret scanning and sign-in and audit logs. Every answer states what it cannot show. More in A route is not proof of use.
Summary
Microsoft reports that attackers used the ARTEX agent framework to find application secrets on GitHub, sign in as service principals and read Key Vault, storage keys and Microsoft 365 data, in one case within five minutes. The agents fixed their own failed API calls within about a minute. The leak decides who gets in, but the identity's roles decide what they get. Remove exposed credentials, remember that issued tokens outlive them, and review what every app with a secret can reach.
Sources
- Threat actors use agentic AI tooling to find and abuse exposed secrets, Microsoft Security Blog, accessed Nov 23, 2026
- The Agents Have Now Found Your Secrets On GitHub: ARTEX Is Abusing Public Secrets Right Now, GitGuardian, accessed Nov 23, 2026
- Hackers Use ARTEX AI to Steal Azure Key Vault Secrets Just 5 Minutes After Scanning GitHub, Cyber Security News, accessed Nov 23, 2026
- Microsoft says ARTEX agents searched GitHub for exposed secrets, NeoTeo, accessed Nov 23, 2026
- Microsoft Warns Agentic AI Is Accelerating Credential Theft and Cloud Attacks, ODSC, accessed Nov 23, 2026
We write about what AI agents and non-human identities can reach, and build nerl0 to keep that visible.
