Research · Incident

Detecting ARTEX secret-to-cloud abuse before the second credential falls

Last reviewed: by Dr. Austin Osuide

Microsoft watched an agent, in a campaign it tentatively ties to ARTEX, go from searching GitHub for client secrets to exfiltrating Azure Key Vault data in five minutes. A credential-lineage join can catch the service-principal sign-in before one exposed application secret opens the next cloud identity.

In this research
  1. Contribution
  2. The pattern
  3. Why it matters to cloud defenders
  4. ATT&CK mapping
  5. Detection guidance
  6. What to do on a hit
  7. What to do now
Research snapshot
Type
Incident
Reviewed
2026-11-10
ATT&CK
T1552.001, T1078.004, T1580, T1530

Contribution

This post adds an exposure-to-use detector for application credentials found in public source code. It joins a repository secret-scanning alert to the matching workload identity, then watches that identity's first service-principal sign-in and its first secret-returning cloud operation. Microsoft documents an agent, in a campaign it tentatively ties to ARTEX, moving from a GitHub search to Azure Key Vault exfiltration in five minutes. Google and Wiz show the same framework testing permissions, identities and application paths in short, noisy bursts.

Microsoft and Google both tell defenders to correlate identity, control-plane and data-plane telemetry. Neither starts that correlation at the repository alert. This post does, and it names the Azure tables, operation names and columns the join needs, including one place where the obvious log source does not hold the evidence.

The pattern

Microsoft Threat Intelligence reported that, starting in August 2026, threat actors used an agentic offensive framework to submit large volumes of GitHub queries for secrets. The queries often combined a target organisation's name with keywords for secrets, cloud services or AI providers. Microsoft words the link to ARTEX cautiously, writing of "suspected ARTEX use" and of "unattributed network indicators related to ARTEX use", so treat the framework attribution as provisional. In one observed case, an agent "progressed from searching for the client secrets in GitHub to exfiltrating data from Azure Key Vault in five minutes". Microsoft names neither an actor nor a specific framework for that case.

That interval changes the useful unit of detection. A secret-scanning alert cannot sit in a developer queue while somebody decides whether the string is real. Deleting the line is not remediation either. Microsoft's guidance is to treat any publicly exposed credential as compromised even if the source was later edited or deleted, and GitHub's own scanner reads the entire Git history on all branches for the same reason.

The report describes two strands, and it does not say they involve the same identities. In the first, service-principal sign-ins began as early as 28 October 2026 from 199.19.77.84 and spread across dozens of applications in multiple tenants. One credential belonged to a vendor-owned multitenant application, so a secret leaked at the vendor reached downstream customer tenants that never stored it. After authentication the agent enumerated subscriptions, resource groups, permissions, AI model deployments and service configurations. It then went for operations that return more credentials: storage account keys, App Service settings and publishing credentials, connection strings, and Azure Kubernetes Service user credentials. Compromised applications also accessed SharePoint and OneDrive, including file downloads and mailbox-item access, and ran Microsoft Graph content searches in some tenants.

In the second strand, the same tooling obtained tokens for single-tenant OAuth applications inside target organisations. Those tokens were used to enumerate resources, exfiltrate Key Vault secrets, search Azure DevOps for more secrets and execute scripts on virtual machines through Run Command.

The framework's troubleshooting left a third trace. Microsoft saw failed Azure Resource Manager requests followed by near-identical requests that succeeded. A Key Vault secret-metadata enumeration used a data-plane API version against Resource Manager and returned HTTP 400; about 28 seconds later the batch was rerun with API version 2023-07-01 and returned HTTP 200. A GET for Azure SQL firewall rules failed on an outdated api-version and succeeded about 60 seconds later with only that parameter changed. An Application Insights query POST followed the same course over about 80 seconds.

Google Threat Intelligence Group and Mandiant reported on 30 October 2026 that they had seen ARTEX, PentAGI, CAIRN and Hexstrike in incident response engagements since late August. Individual ARTEX sequences ran in bursts of roughly 2 to 25 seconds. One process generated 240 log events and showed errors that Google thinks may come from several sub-agents overwriting one another. ARTEX mapped the reach of Azure credentials by writing and deleting a tiny test blob in roughly 330 to 400 milliseconds, and by an 8-second Resource Manager deployments/validate sweep across 11 resource types. Against a compromised AWS IAM user it used DryRun flags and placeholder IDs to test EC2, EBS volume and snapshot permissions.

Wiz Research observed ARTEX through October 2026 against IT and software vendors, in activity that overlaps with what Microsoft tracks as Storm-0940. The agent downloaded JavaScript source maps and runtime configuration, then called internal API routes whose names appear only in those source maps. It password-sprayed Okta and Entra ID, probed Amazon Cognito sign-up and recovery flows, registered disposable accounts where sign-up was open and switched endpoint when a login page began rate limiting. Wiz says most of these attempts failed, and its report does not cover exposed secrets or service principals. It is evidence for the operating pattern, not for the secret-to-cloud chain.

Why it matters to cloud defenders

Application credentials are attractive because they authenticate without a person. A service principal does not type a password, answer a push notification or query an unfamiliar sign-in prompt. Entra records these sign-ins in a separate service-principal log, where the application supplies its own certificate or secret, so a team that only watches user sign-ins sees nothing.

The blast radius is hard to infer from the repository. A client secret in a sample configuration might belong to a test application with no useful access, or to a production integration authorised in many customer tenants. Defenders need a maintained link from repository and deployment owner to application ID, service-principal object ID, tenant scope and permitted resources. Without that lineage, a secret alert says that something leaked but not what the attacker can reach.

Preventive controls have a gap in the same place. Microsoft advises blocking the campaign address with Conditional Access for workload identities. Microsoft's documentation limits those policies to single-tenant service principals registered in your own tenant: multitenant and third-party SaaS applications are not covered, managed identities are not covered, and creating the policy needs Workload Identities Premium licences. A customer tenant on the receiving end of a vendor's leaked multitenant secret therefore has to rely on detection.

Timing is the last constraint. Microsoft documents that Activity log entries are usually available for analysis within 3 to 20 minutes of the event, and that Key Vault logs can take up to 10 minutes. A chain that completes in five minutes can finish before its own management-plane records are queryable. The only gate that can beat the attacker is the first one, the exposure alert, which is why the response to that alert has to be revocation and not triage.

ATT&CK mapping

The exposed material is a credential stored in a file, which is what T1552.001, Unsecured Credentials: Credentials In Files describes. ATT&CK writes that sub-technique around local file systems and remote file shares, and mentions source code containing embedded passwords, so the mapping is reasonable but not exact. The act of searching public GitHub repositories is closer to T1593.003, Search Open Websites/Domains: Code Repositories, a Reconnaissance sub-technique whose description covers accidentally leaked credentials and API keys. A repository secret-scanning alert is the defender-side record for both.

The first cloud use maps to T1078.004, Valid Accounts: Cloud Accounts. Microsoft observed valid application credentials used for service-principal authentication, and ATT&CK's own procedure examples include abuse of service principals. This sign-in is the hinge between possible exposure and confirmed use.

Enumeration of resources and their configurations maps to T1580, Cloud Infrastructure Discovery, which covers discovery of the resources available in an IaaS environment. ATT&CK does not name subscriptions or resource groups there; listing which services and deployments a tenant runs sits closer to T1526, Cloud Service Discovery, whose description names Azure Resource Manager and Microsoft Graph as enumeration paths. The collection payoff maps to T1530, Data from Cloud Storage, which covers object storage such as Azure Storage and document storage such as OneDrive. Microsoft reports exfiltration from Storage Accounts and downloads from SharePoint and OneDrive.

Key Vault secret retrieval is credential access, not collection. Its ATT&CK home is T1555.006, Cloud Secrets Management Stores, which names Azure Key Vault. It belongs in the same correlated sequence because each secret can open another identity.

Detection guidance

Build the lineage table first

Each row should hold the repository and path or deployment component, the application (client) ID, the service-principal object ID in each tenant, the owning team, whether the application is single-tenant or multitenant, its normal source networks and the resources it is expected to call. Populate it from application registration and deployment records. Do not store the secret value.

Gate one: the exposure alert

GitHub's secret scanning REST API returns, for each alert, created_at, secret_type, validity (active, inactive or unknown), publicly_leaked and multi_repo. The locations endpoint adds path, commit_sha and line numbers for commit locations, and also reports secrets found in issues, pull requests, discussions and Actions logs. Resolve the alert to an application ID through the lineage table and mark the identity as exposed from the commit time, not the alert time.

Two caveats apply. GitHub says partner secrets are reported directly to the provider and are not displayed in repository alerts, so confirm that the Entra client-secret pattern you depend on raises an alert you can see. A validity of unknown is not a reason to downgrade; send unresolved alerts to a fast manual mapping queue.

Gate two: the service-principal sign-in

Send Entra service-principal sign-in logs to your Log Analytics workspace, where they populate the AADServicePrincipalSignInLogs table. The columns that matter are AppId, ServicePrincipalId, IPAddress, AutonomousSystemNumber, ResourceDisplayName, ClientCredentialType, ServicePrincipalCredentialKeyId, AppOwnerTenantId and the result columns. The sketch below is a starting point and has not been run against production data.

Code block KUSTO
let exposed = datatable(AppId:string, ExposedAt:datetime)
  ["00000000-0000-0000-0000-000000000000", datetime(2026-11-01T09:00:00Z)];
AADServicePrincipalSignInLogs
| join kind=inner exposed on AppId
| where TimeGenerated >= ExposedAt
| summarize SignIns=count(), Resources=make_set(ResourceDisplayName),
    Results=make_set(ResultType)
    by AppId, ServicePrincipalId, IPAddress, AutonomousSystemNumber,
       bin(TimeGenerated, 5m)

The high-confidence condition is a successful sign-in after exposure from an address or autonomous system outside the identity's baseline. Microsoft adds two behavioural shapes worth alerting on without any exposure record: one address authenticating to several service principals, and one application requesting tokens for Resource Manager, Key Vault, Storage and Graph in a short window. Failures matter as well. Microsoft calls AADSTS7000215 (invalid client secret) or AADSTS7000222 (expired client secret) followed by a success urgent, because it looks like an agent working through harvested strings. Check whether ResultType or ResultSignature carries the code in your workspace.

ServicePrincipalCredentialKeyId is useful in response. Compare it with the key ID of the exposed secret to confirm which credential was used, and to spot a credential the attacker added.

Gate three: reach testing

The adaptive retries Microsoft described are mostly reads, and that matters for log choice. Microsoft's Activity log documentation says the log "doesn't typically capture read operations". A GET for SQL firewall rules that fails with HTTP 400 and succeeds a minute later will usually leave no trace in AzureActivity. A detector built only on that table will miss the behaviour.

Microsoft's own hunting queries for this campaign use the Defender XDR CloudAuditEvents table, which is populated only when Defender for Cloud is deployed. Its schema has an ActionType column that includes Read, plus OperationName, ResourceId, IPAddress, UserAgent and RawEventData. If you have it, group by caller and resource, and flag a failed request followed within two minutes by a success on the same resource and operation. One correction is weak evidence: legitimate SDKs and deployment tools also probe API versions. Raise the score when the pattern repeats across Key Vault, SQL and Application Insights, or reaches resource families the application has never used. Validate in your own tenant that failed reads appear before relying on this.

Two reach tests reported by Google do leave records in standard logs:

  • Deployment validation. Microsoft.Resources/deployments/validate/action is an action, so it is the kind of operation the Activity log records. Filter AzureActivity on OperationNameValue with a case-insensitive comparison, as Microsoft advises for that table. A sweep across many resource types in seconds, from an identity that does not deploy, is the signal.
  • Blob write then delete. With the StorageWrite and StorageDelete categories enabled, StorageBlobLogs shows PutBlob followed by DeleteBlob on the same ObjectKey from the same RequesterAppId or CallerIpAddress within a second or two. Backup and health-probe tools do the same, so suppress known UserAgentHeader values and containers.

Gate four: credential-returning and data-returning operations

These management-plane operations are actions, not reads. The first five return keys, tokens or settings that hold secrets; Run Command does not return a credential but runs a script on the virtual machine, which Microsoft also observed. Alert when an exposed or first-seen identity calls any of them:

| Target | OperationNameValue in AzureActivity | |---|---| | Storage account keys | Microsoft.Storage/storageAccounts/listKeys/action | | Storage SAS tokens | Microsoft.Storage/storageAccounts/listAccountSas/action | | App Service settings, connection strings, publishing credentials | Microsoft.Web/sites/config/list/action | | App Service publishing profile | Microsoft.Web/sites/publishxml/action | | AKS user credentials | Microsoft.ContainerService/managedClusters/listClusterUserCredential/action | | VM Run Command | Microsoft.Compute/virtualMachines/runCommand/action (managed Run Command: Microsoft.Compute/virtualMachines/runCommands/write) |

For Key Vault, enable the AuditEvent diagnostic category. In the resource-specific AZKVAuditLogs table, watch OperationName values SecretList and SecretGet, and use CallerIpAddress, Identity, HttpStatusCode, RequestUri and ClientInfo to separate the application's normal host from a new caller. A SecretList followed by a SecretGet for every listed secret is enumeration, not application behaviour; most applications fetch a few known names.

For Storage, enable StorageRead and look for ListContainers, ListBlobs and GetBlob volume in StorageBlobLogs. Check AuthenticationType: a switch from OAuth to account-key access shortly after a listKeys call suggests the stolen key is now in use, and it will not appear in Entra sign-in logs. For Graph, MicrosoftGraphActivityLogs gives AppId, ServicePrincipalId, IPAddress, RequestUri and ResponseStatusCode; a ClientAuthMethod of 1 means a client secret was used. SharePoint and OneDrive downloads sit in the Microsoft 365 unified audit log, which Microsoft lists among the sources to review.

Correlation and paging

  1. A public-repository secret alert maps to an application or workload identity.
  2. That identity records a successful sign-in after the exposure from a first-seen source.
  3. The same identity shows reach testing: adaptive retries, a validation sweep, or a blob write and delete.
  4. The identity calls a credential-returning action, reads Key Vault secrets or reads stored data outside its baseline.

Page on gates one, two and four together. Page on two, three and four when the repository alert is missing, because the secret may have leaked through a fork, an issue or a repository you do not monitor. Gates one and two alone still require revocation and scoping. Set baselines per application: backup software reads storage broadly and deployment identities call Resource Manager constantly, so the signal is a change in source, resource or operation family for that one identity.

The same join carries to AWS with the access key ID as the lineage key. Amazon documents that an EC2 call with DryRun set returns DryRunOperation when the caller has permission and UnauthorizedOperation when it does not, which is the capability test Google described. Confirm in your own CloudTrail data how those calls are recorded before writing the filter.

What to do on a hit

Microsoft's containment steps are specific. Remove client secrets, certificates and federated credentials from the affected application, including any the attacker added, and disable the service principal if needed. Tokens already issued stay valid until they expire, so removal does not end the session at once. Rotate everything in any Key Vault the application could read, and any credentials in documents it accessed. Rotate storage account keys if a listKeys call appears, since the key outlives the application secret.

Then scope. Pull every sign-in for the AppId since the exposure time, across every tenant where the application has a service principal. Vendors with a leaked multitenant secret need to tell customers, because the customer tenant holds the sign-in and data-access logs. Managed service providers should review Partner Center access and delegated admin relationships.

What to do now

Inventory every application credential that source-code and secret-scanning tools have found within your log retention. Map each one to its application ID and service principals, including downstream tenants for multitenant applications. If the credential was ever public, rotate it and review its historical use. Editing the repository is housekeeping, not containment.

Move Azure applications from client secrets to managed identities where the workload allows; Microsoft recommends that developers migrate OAuth applications away from secret-based authentication. Use Entra app management policies to block new application passwords or cap their lifetime. Then test whether each service principal can list storage keys, obtain AKS credentials or invoke Run Command, and remove the role assignments that are not part of its job.

Route repository secret alerts into the identity incident path with the mapped application ID, tenant list, owner and recent sign-ins attached. Check that the log sources named above reach your workspace: Azure does not collect resource logs such as Key Vault AuditEvent and Storage read, write and delete by default, and the Activity log is kept for only 90 days unless exported. Finally, run the correlation as a hunt over recent logs, starting from successful service-principal sign-ins from new sources and working outwards in both directions.

01 ATT&CK references

Sources
Last verified: 2026-11-10