Skip to main content
All articles

ARTEX and the agentic attacker: 27 AWS events in 23 seconds, and what to do about it

An open-source AI pentest framework is now running against real AWS accounts and Entra tenants. What it does with a leaked key, the CloudTrail and sign-in traces it leaves, how we test for the same path, and the controls that shrink the speed advantage.

By Published

9 min read17 views

{
  "eventName": "FilterLogEvents",
  "userIdentity": { "type": "IAMUser", "accessKeyId": "AKIA..." },
  "userAgent": "artex-readonly/1.0",
  "requestParameters": { "limit": 1000 }
}

That is an illustrative CloudTrail record, built from fields Datadog Security Labs documented on 9 November 2026 for AWS accounts where a leaked long-term access key was being worked by an AI-driven attack framework called ARTEX. The user agent names the tool. The limit of 1000 is below the API's 10,000-event maximum, a small habit that ties repeated calls together. The call itself, reading CloudWatch log groups, is how the operator mines application logs for more credentials.

Nothing in that record is a new technique. A leaked key, log mining, enumeration. What changed is the clock.

What ARTEX is

Datadog describes ARTEX as "an AI-native penetration framework in which an operator supplies a target and an objective". A planner model picks the next step, worker agents run tools, and results feed back into a shared picture of the target. Per Datadog it was published on GitHub in July 2026 and made closed-source on 8 October, after passing 12,000 forks. Closing a repository does not recall forks, so we plan around the pattern rather than the brand.

Real use is documented by several vendors:

  • Microsoft (21 October) attributed a supply-chain compromise of a multi-tenant application to the actor it tracks as Storm-0940, which it says used ARTEX to attempt sign-ins to "more than 2,250 tenants" and to reach privileged cloud access in some cases in under 3 hours from initial targeting.
  • Microsoft (5 November) described an agentic framework searching GitHub for secrets since August, then signing in as service principals with what it found, from 28 October. In one observed case it went from a GitHub search for client secrets to exfiltrating stored secrets in about five minutes.
  • Google's Threat Intelligence Group (31 October) reported "27 events in 23 seconds of active burst time" probing AWS permissions in at least one operation, and said an actor it tracks as UNC7228 (Wiz Research's tracking) typically moved from first compromised account to deep access "in around four hours and in one case as rapidly as 15 minutes".
  • Datadog (9 November) published AWS-side traces: anonymous S3 reads, Cognito self-registration, long-term key abuse and the user agents below.

These are the vendors' own figures, from their own telemetry, and they are not directly comparable. Treat them as order-of-magnitude evidence that the gap between "key leaks" and "data leaves" is now minutes to hours.

Google's assessment is worth keeping in mind before panic sets in: the tradecraft "remain[s] messy, noisy but yet successful". Errors, overlapping sub-agents, failed privilege escalations. The tool trades stealth for velocity. That is good news for detection and bad news for any response process that starts with a ticket.

The AWS playbook, in the order it showed up

Datadog's write-up maps to a short chain.

Anonymous reads. Unauthenticated S3 GetObject and ListObjects calls appear in CloudTrail (data events, if enabled) with userIdentity.type of AWSAccount and accountId of anonymous. Public buckets are the first source of secrets and names.

Cognito self-registration. Datadog saw SignUp, InitiateAuth, RespondToAuthChallenge, GetUser and GetTokensFromRefreshToken against user pools, with a spike on 26 and 27 October, followed by discovery calls under a CognitoIdentityCredentials role session: ListBuckets, ListSecrets, DescribeParameters, ListTopics, DescribeLogGroups, GetRestApis, DescribeRepositories, ListFunctions20150331. Datadog saw the discovery calls fail, but an open sign-up flow with an over-broad identity pool role would be a door.

Long-term keys. A leaked access key is replayed, with FilterLogEvents to mine log groups. Datadog saw the same key reused on 20 October.

Burst enumeration. Wave after wave of AccessDenied, then success on whatever the identity can reach. Datadog notes the framework runs three workers by default and the planner heartbeats at least every 10 minutes, which produces bursts of consistent length followed by pauses.

Where Entra fits

The Entra half is simpler and nastier. Microsoft and Todyl describe the same move: find a client secret in a public repository, then authenticate as the application. An app sign-in with a client secret has no MFA step and no user to notice. Todyl reported an actor targeting about 45 app registrations at roughly 18 organizations, reaching 27 organizations through them, as of the post updated on 6 November, and its detection guidance names two telltale failures: AADSTS7000215 (invalid secret) and AADSTS7000222 (expired secret). Guessing a stale secret and getting those errors before a success is what a credential-testing agent looks like in the log.

The ConnectWise campaign is the clearest case study of what follows once an app credential is stolen, and we cover it in a companion post.

How we test for it

We emulate the sequence in a scoped test and measure the one number that matters: minutes from first secret to first sensitive read. No special tooling is required, just the AWS CLI, jq and git.

  1. Secrets in public code. Search the client's GitHub organisation, employee-owned public repositories and forks for access keys, client secrets and connection strings. Run a secret scanner over full history, not only the default branch.
  2. Test what we find. For an AWS key, aws sts get-caller-identity is the first call and the only one needed to prove validity. Then enumerate the way the agent would, and record how many calls it takes before a control reacts.
  3. Open front doors. Check for public S3 listing, Cognito user pools with open self-registration, and what the identity pool's authenticated role can do after sign-up.
  4. Log mining. If a key can call logs:FilterLogEvents, application logs often hold more keys, tokens and session identifiers.
  5. Time it. Record the time from first valid credential to first read of a secret store. Compare it with how long the client's alerting took to fire, if it did.

A common pattern: the finding is rarely "a key leaked". It is "a key leaked, and the role behind it could read Secrets Manager". That is the version a buyer acts on. This sequence is part of our cloud penetration testing and red team work.

Detection

Do not build detections on the framework's name alone. Datadog lists user agents including artex-readonly/1.0, artex-pentest/1.0, artex-audit/1.0, artex-verify/1.0, ARTEX-worker/1.0 and Mozilla/5.0 ARTeX, and an operator can change every one of them. Hunt the behaviour, and keep the user-agent search as a free extra.

CloudTrail, via CloudWatch Logs Insights. Where CloudTrail is delivered to CloudWatch Logs:

fields @timestamp, eventName, userIdentity.type, userIdentity.accessKeyId, sourceIPAddress, userAgent, errorCode
| filter userAgent like /(?i)artex/
| sort @timestamp desc

Bursts of denied calls from one long-term key:

fields @timestamp, eventName, sourceIPAddress, errorCode
| filter userIdentity.type = "IAMUser" and (errorCode like /AccessDenied/ or errorCode like /Unauthorized/)
| stats count() as denied, count_distinct(eventName) as distinct_calls by userIdentity.accessKeyId, sourceIPAddress, bin(1m)
| filter denied > 20
| sort denied desc

Anonymous S3 access (needs S3 data events enabled on the bucket):

fields @timestamp, eventName, requestParameters.bucketName, sourceIPAddress
| filter userIdentity.type = "AWSAccount" and userIdentity.accountId = "anonymous"
| stats count() by requestParameters.bucketName, sourceIPAddress

Log mining by a long-term key:

fields @timestamp, userIdentity.accessKeyId, sourceIPAddress, requestParameters.limit
| filter eventName = "FilterLogEvents" and userIdentity.type = "IAMUser"

Instance-role credentials used from non-AWS addresses are one of the hunting hints Datadog gives. Check AssumedRole events for an instance role whose sourceIPAddress is outside your ranges.

For Cognito, alert on SignUp volume per hour per user pool. Datadog's spike was on 26 and 27 October, so a rate baseline catches it.

Entra. Sign-in and audit logs in Sentinel (AADServicePrincipalSignInLogs, AuditLogs) or Defender advanced hunting (EntraIdSpnSignInEvents, a preview Defender table that needs Entra ID P2):

AADServicePrincipalSignInLogs
| where TimeGenerated > ago(7d)
| summarize failures = countif(ResultType in ("7000215","7000222")),
            successes = countif(ResultType == "0"),
            apps = dcount(AppId)
    by IPAddress
| where failures > 0 and successes > 0
| order by apps desc

An address that fails with an invalid or expired secret and then succeeds is the pattern Todyl and Microsoft describe. Microsoft's heuristic is also useful: one IP authenticating to three or more service principals with mixed success. Alert on any service principal sign-in from an address outside the ranges your workloads run in, and treat "failure followed by success" as urgent.

Fix

Google's conclusion maps cleanly to engineering: reduce what any single identity can do and how long its credentials live. In order of return:

  1. Stop long-term keys. Replace IAM user access keys with roles (instance profiles, task roles, OIDC federation for CI). Where a key must exist, rotate it at 90 days or less and remove inactive keys.
  2. Scan and block secrets at the source. Turn on push protection and secret scanning in GitHub, and treat any secret that was ever public as compromised even after deletion. Microsoft says the same.
  3. Cap the blast radius. Scope roles to named resources. A role that can call secretsmanager:GetSecretValue on every secret hands the whole vault to whoever holds one key. Use permission boundaries or service control policies for high-impact actions.
  4. Fix Cognito. Disable self-registration unless the product needs it, and give the identity pool's authenticated role only what an end user needs.
  5. Retire Entra client secrets. Move apps to managed identities or workload identity federation, set app management policies to restrict password credentials and cap secret lifetime, and restrict who can register apps.
  6. Alert at machine speed. A detection that pages a human who reads it in an hour does not beat a framework that finishes in five minutes. Wire the key-denial burst and the Entra failure-then-success rules to automated containment: disable the key, revoke sessions, and then a human reviews.
  7. Do the cheap detection too. Enable CloudTrail organisation-wide with S3 data events on sensitive buckets. You cannot hunt events you did not record.

Take this away

ARTEX adds no new way in. It reuses leaked keys, open sign-up flows, weak role scoping and secrets in public repositories, and it does it faster and with more patience than a person. That makes your exposure to the old problems the measure that matters. If a leaked key reaches a secret store in minutes, the fix is the key and the role, not a faster analyst.

References

Was this useful?

Share

Tags

  • cloud security
  • detection engineering
  • identity security
  • threat intelligence

Get the next write-up by email

New technical write-ups by email when we publish. No sales sequence, and every email has an unsubscribe link.

Prefer a feed? RSS. How we handle your address: privacy notice.

Comments

Loading comments…

Leave a comment

Comments are read and approved by hand before they appear, so yours will not show up straight away. Your email address is optional, is never published, and is only used if we need to reply to you directly.

0/5000

Related service

Cloud Penetration Testing (AWS)

Identity, storage and workload misconfiguration testing across your AWS accounts.

If you want to know whether what you have just read applies to your own systems, that is the engagement that answers it.