# From a GitHub secret to the cloud in five minutes: offensive agents observed by Microsoft

> Microsoft describes agents that find public secrets, authenticate as applications and adapt Azure calls until data is exfiltrated.

Published: 2026-11-09  
Canonical: https://rootzero.eu/en/research/offensive-agents-github-secrets-cloud-2026/

**Telemetry published by Microsoft on 5 November 2026.** Microsoft says that, since August, it has observed actors using an agentic offensive framework to search public GitHub repositories for secrets at scale, then use the recovered credentials against Entra ID, Azure and Microsoft 365. In one case, an agent moved from finding a client secret to exfiltrating Azure Key Vault data in **five minutes**.

That figure describes one observed case, not a guaranteed attack time or an average. Searching public code for keys is old. The documented change is the automated sequence from discovery to validation, cloud mapping and adaptation after API errors.

## The secret provides an application identity

The observed queries combined an organisation name, secret-related terms and the names of cloud services or AI providers. A recovered key is useful only if it remains valid and its identity has permissions. The framework tested those conditions, obtained service-principal tokens and queried the resources they could access.

A service principal is an application's identity in Entra ID. Its permissions may cover secret vaults, storage, virtual machines or Microsoft 365 services. [Microsoft reports](https://www.microsoft.com/en-us/security/blog/2026/11/05/threat-actors-use-agentic-AI-tooling-to-find-and-abuse-exposed-secrets/) searches for storage account keys, App Service settings, connection strings, publishing credentials, AI connections and AKS credentials. In some tenants, the same applications then reached SharePoint, OneDrive or Microsoft Graph APIs.

```text
public repository → application secret → Entra token
                                              │
                                              ├── Azure inventory
                                              ├── Key Vault and Storage reads
                                              └── search for further credentials
```

This chain does not require an Azure platform vulnerability. It reuses a capability that the organisation granted to the application.

## What the HTTP 400 responses show

Microsoft publishes three sequences in which Azure Resource Manager calls first returned HTTP 400. Within 28 to 80 seconds, new requests changed the API version or method and obtained HTTP 200. One initial attempt used a Key Vault data-plane API version against the ARM control plane; the next requests corrected that mismatch.

The behaviour is consistent with an agent that reads a response, changes a parameter and retries. It does not show that the model understood the victim's architecture as a human analyst would, or that every request in the campaign was selected without an operator. Microsoft describes the sequences as indicative of adaptive troubleshooting. The telemetry shows calls and timing, not the system's complete internal reasoning.

The speed still changes defensive timing. A public secret can be found, validated and used before a manual alert is reviewed. Removing it from the current repository does not revoke it or erase copies from history, caches and forks.

## A second report broadens ARTEX without merging campaigns

On 6 November, [Microsoft documented another use of ARTEX](https://www.microsoft.com/en-us/security/blog/2026/11/06/artex-abuse-expands-as-cybercriminals-target-financial-sector/) by the financially motivated group Storm-3358 against financial organisations. In that activity, the framework was combined with conventional tools to scan services, exploit issues including anonymous uploads and SSRF, then install remote-access tooling.

The second report confirms that the framework is used beyond GitHub secret discovery. It does not attribute every sequence from the 5 November report to Storm-3358. Microsoft separates the activity, infrastructure and dates; the analysis must retain that separation.

The shared signal is a short feedback loop: vary requests, use the capability obtained and move quickly to the next step. Tools named in the reporting, including `curl`, Nmap and Playwright, are common in administration and testing. Their presence alone identifies neither ARTEX nor an actor. Timing, variation and the sequence after an identity or resource is compromised supply the missing context.

## Hunt for the sequence of actions

Microsoft provides IP addresses associated with the observed activity, while warning that an actor can replace them. A more durable signal is behavioural: one source tries several service principals with a mixture of successes and failures, then queries ARM, Key Vault, Storage and Graph within a short interval. Authentication failures followed by success, secret reads and new application capabilities should be correlated in time.

The following query implements only the first step of that hypothesis in Microsoft hunting tables. It finds a source that produced failures and successes for several application identities within five minutes:

```kusto
let horizon = 14d;
EntraIdSpnSignInEvents
| where Timestamp > ago(horizon)
| summarize Attempts=count(),
            Failures=countif(ErrorCode != 0),
            Successes=countif(ErrorCode == 0),
            Applications=dcount(ServicePrincipalId)
  by IPAddress, bin(Timestamp, 5m)
| where Failures > 0 and Successes > 0 and Applications > 1
| order by Applications desc
```

The schema and retention of `EntraIdSpnSignInEvents` depend on the products and licences enabled. This is not an ARTEX signature: an enterprise proxy, an authorised scanner or a shared platform can produce the same aggregate. It selects a window that must then be connected to Entra, ARM, Key Vault, Storage, Graph and Azure DevOps logs. The [queries published by Microsoft](https://www.microsoft.com/en-us/security/blog/2026/11/05/threat-actors-use-agentic-AI-tooling-to-find-and-abuse-exposed-secrets/#advanced-hunting-queries) provide projections for addresses observed in the campaign.

A useful investigation starts with the exposed secret and reconstructs its permissions:

1. Identify every commit, fork, log and artefact where it may have appeared.
2. Revoke the secret, certificates and unknown federated credentials associated with the application.
3. Review non-interactive sign-ins and tokens already issued, which may remain valid until expiry.
4. Inventory the vaults, storage accounts, documents and machines that the application could reach.
5. Rotate secrets held in those resources if a read is confirmed.

Rotating the first credential is insufficient when it opened a vault containing more credentials.

## Reduce the value of automated discovery

Push protection and secret scanning can stop or detect known key formats, including in public repositories outside the organisation. Detection needs an automated revocation path or an operating procedure that acts within minutes. For Azure applications, managed identities and short-lived, context-bound federated credentials reduce reliance on static client secrets.

Least privilege for workload identities is the second control. An exposed key remains an incident, but its reach depends on RBAC roles, Graph permissions and vault access. Key Vault, Storage, Entra, Azure Activity and Azure DevOps logs need enough retention to connect exposure to use.

Microsoft publishes no total number of compromised organisations, overall success rate or single attribution for every activity discussed. The narrower established observation is already material: offensive agents can exploit a secret-management error at API speed. The useful measure is not recognising a user agent; it is making a public secret unusable before it leads to the next capability.

**Primary sources:** [Microsoft Threat Intelligence on secret discovery and application-identity abuse](https://www.microsoft.com/en-us/security/blog/2026/11/05/threat-actors-use-agentic-AI-tooling-to-find-and-abuse-exposed-secrets/), [Microsoft Threat Intelligence on ARTEX activity against the financial sector](https://www.microsoft.com/en-us/security/blog/2026/11/06/artex-abuse-expands-as-cybercriminals-target-financial-sector/).
