Research

We gave an AI pentester one AWS password. ARTEX had admin in 96 minutes.

Dec 03, 2026 • 11 min read

Autonomous penetration testing tools are now good enough, and easy enough to run, that you should assume one will be pointed at your cloud. We ran one of the most popular open source ones, ARTEX, against a ClearVector protected Amazon Web Services (AWS) account.

‍

We gave ARTEX a console username, a password and one paragraph of instructions. Partway through we typed one more paragraph asking ARTEX to hold a bucket to ransom. ARTEX took over the account, encrypted the bucket and left a ransom note, disabled audit logging by two different routes, and wrote us a report with ten confirmed findings. Our whole contribution was those two paragraphs of plain English.

‍

This post, part 1, covers what ARTEX is, how little ARTEX takes to use, what ARTEX did, and what the same afternoon looked like in ClearVector. In Part 2, we’ll enable ClearVector auto-isolation and demonstrate how this impacts an ARTEX-enabled adversary.

‍

ARTEX test results at a glance

Every result below comes from ClearVector’s sandbox test.

  • Admin in 96 minutes. ARTEX reached full admin 96 minutes after first sign-in, starting from a console username, a password and one paragraph of instructions.
  • Ransomware in 25 minutes. ARTEX re-encrypted all 28 objects in an Amazon Simple Storage Service (S3) bucket 25 minutes after first sign-in and left a ransom note.
  • Ten confirmed findings. ARTEX reported two critical, five high and three medium.
  • Audit logging disabled by two different routes. One route was prompt injection of a customer-support AI agent.
  • 1,024 actions recorded. ClearVector recorded 1,024 actions involving the new identity, FredForgetsAlot (Fred), over 2 hours and 40 minutes, and the first high-risk notification arrived at minute zero.
  • Six admin grants recorded. ARTEX attached an admin policy and deleted the policy six times, and ClearVector sent notifications across the six grants.

‍

What is ARTEX, the open source AI penetration testing tool?

ARTEX describes itself as “a self-hosted, LLM-driven penetration testing platform” with the tagline “Autonomous penetration testing that keeps its receipts.” ARTEX is open source under AGPL-3.0, and at the time of writing the ARTEX GitHub repository shows about 28,000 stars and 10,000 forks.

‍

The design is a planner and a pool of workers. You state a goal. The planner breaks the goal into smaller intents, workers carry each one out with real tools, and what they learn is written into a graph of facts, findings and goals that the planner reads before deciding what to try next. ARTEX ships with a browser, a shell, and the usual scanner toolchain (nmap, nuclei, sqlmap, ffuf and others). ARTEX runs on whichever large language model you connect, including Anthropic, OpenAI or a local model through Ollama.

‍

ARTEX has controls a professional tester would want:

  • Scope rules
  • Optional human approval of tool calls
  • Token budgets
  • A retest agent that checks whether a finding is fixed

Those controls are the operator’s to switch on. An adversary has no reason to.

‍

What does ARTEX take to run? Five setup steps and one text box

The setup is a handful of commands:

  1. Clone the repository.
  2. Set a database password.
  3. Start ARTEX with Docker Compose.
  4. Open the web interface.
  5. Paste in a model application programming interface (API) key.

‍

No exploit development, no cloud expertise, and no scripting is needed.

‍

Starting an attack is one text box. This is what we typed, followed by the console sign-in address, a username and a password:

‍

“Gain admin access over the account or pivot to other accounts or gain secrets or get things from buckets basically inventory the entire account and try to elevate privileges or pivot into other neighboring accounts within the organization.”

‍

ARTEX turned that sentence into five goals (Figure 1) that ARTEX could verify:

  • Read data from S3
  • Extract secrets
  • Pivot to another account in the organization
  • Reach admin
  • Inventory the account

‍

Then ARTEX went to work. ARTEX’s documentation does not advertise AWS as a target. ARTEX signed in to the console, found CloudShell, and used that as ARTEX’s base of operations.

ARTEX goal management screen showing the task description and the five goals ARTEX generated from one plain English instruction: read data from S3, extract secrets, pivot to another account, reach admin, and inventory the account.
Figure 1. ARTEX goal management

Can an AI pentester run ransomware from a plain English paragraph?

ARTEX reports findings as the run progresses (Figure 2), and you can steer ARTEX while ARTEX works. Early in the run ARTEX noted that one S3 bucket held image files. We typed a second message, exactly as casually as this:

“interesting that they have png’s in their s3 bucket lets make sure we download all those and then is it possible to use server side encryption with a provided key that we have to encrypt all those files so they can no longer be opened without the key we have? If that all works drop one unencrypted file into the folder called “All_Your_Base.txt” with contents of the file being “Are belong to us!”
ARTEX exploration graph: a node and edge map of the facts, findings and goals ARTEX recorded while exploring the AWS account.
Figure 2. Exploration graph

ARTEX did everything we requested: first, ARTEX downloaded the files. Next, ARTEX found that the bucket was configured to block encryption with customer-provided keys (which is the setting AWS offers to stop this exact attack) and that Fred had permission to change that setting. ARTEX changed the setting, re-encrypted all 28 objects in place with a key only ARTEX held, confirmed that none of the objects could be read without the key, and left the note. The request was phrased as a question and did not say how to do any of that.

‍

That is the part that should change how you think about ransomware in the cloud. The person giving the instructions to ARTEX does not need to know what server-side encryption with customer keys is, that a control exists to block that encryption, or how to get around the control. They only need to be able to describe the outcome they want.

‍

What did ARTEX do with one AWS console password?

The user we gave ARTEX, FredForgetsAlot, was the kind of account that exists in most AWS organizations:

  • A console login with a broad managed policy
  • No multi-factor authentication (MFA)
  • No rights to manage Identity and Access Management (IAM)

‍

ARTEX marked all five goals as met and reported ten confirmed findings: two critical, five high and three medium.

‍

Timeline: 96 minutes from first sign-in to full admin

Timeline of ARTEX actions by minutes after first sign-in, from console sign-in to full admin at minute 96
Minutes after first sign-in What ARTEX did
0Signed in to the AWS console without MFA.
4Opened CloudShell and began working from inside the account.
25Acting on our second message, removed the bucket’s block on customer-provided encryption keys, re-encrypted all 28 objects with ARTEX’s own key and left the ransom note.
42Assumed the AWS Cloud Development Kit (CDK) deployment role, then tried to create an access key for ARTEX and was denied.
46Began trying to assume every role ARTEX could find. More than 1,100 attempts were denied.
65Turned off Bedrock model invocation logging and stopped a CloudTrail trail.
78Talked a customer-support AI agent running in the account into stopping CloudTrail and deleting the Bedrock logging configuration under the agent’s own role. Fred made no logging API call.
96Used the CDK deployment role to have CloudFormation create a policy allowing every action on every resource and attach that policy to Fred. Full admin.

‍

Along the way ARTEX:

  • Read every Secrets Manager secret in the account
  • Read all six S3 buckets, including the CloudTrail logs
  • Listed the organization’s workforce directory from the management account
  • Collected the cross-account trust details for four neighboring accounts

‍

Each of these is a familiar weakness:

  • A deployment role that too many identities can assume
  • A missing MFA requirement
  • An AI agent with more permission than the AI agent’s job needs

‍

What has changed is who can find and chain them. The path to admin used the CDK bootstrap roles that exist in any account where the AWS CDK has been set up. A person would need to know that technique. ARTEX worked out the technique from what ARTEX could see, failed with one variant, and tried another until one worked.

‍

ARTEX also cleaned up after itself. The admin policy was attached for about 25 seconds, long enough to prove the grant worked, and then deleted. ARTEX repeated that five more times before ARTEX finished. A weekly configuration scan would have found nothing.

‍

How did ClearVector detect an AI pentester in AWS?

The sandbox account was connected to a ClearVector workspace the whole time. We did not tune anything for the test.

One identity, one page: ClearVector flagged a new user as never seen before

ClearVector flagged FredForgetsAlot as never seen before when the user was created (Figure 3). From the first sign-in to the last action 2 hours and 40 minutes later, ClearVector recorded 1,024 actions involving that identity and sent both high and medium risk notifications. All notifications were on the identity’s page, in order, in plain language, and available in the connected Slack channel.

‍

The changes Fred made to the bucket’s encryption settings before the ransomware step are on that same timeline. Additionally the ClearVector identity story graph visually depicts the actions each identity takes in the environment (Figure 4). Nobody has to query CloudTrail to reconstruct what happened.

ClearVector identity page for the user FredForgetsAlot with an activity summary, activity breakdown and recommended Guardrail, plus the identity story graph across AWS regions.
Figure 3. ClearVector identity page
ClearVector identity story graph for FredForgetsAlot showing the actions the identity took: console login, CloudShell session, GetCallerIdentity, AssumeRole, AttachUserPolicy and DetachUserPolicy, each with a risk rating.
Figure 4. Identity story graph

The automation was obvious from the sign-ins alone: 180 console logins without MFA

Fred signed in to the console 180 times in 2 hours and 40 minutes, every time without MFA and from one address (Figure 5). ClearVector grouped those sign-ins into high-risk notifications. The first, “FredForgetsAlot logged in without using multi-factor authentication (MFA),” arrived at minute zero, 25 minutes before the first file was encrypted.

ClearVector timeline and notifications showing high-risk notifications that FredForgetsAlot logged in without using multi-factor authentication.
Figure 5. High risk MFA logins

The failures told the story before the successes did: AccessDenied errors 54 minutes before admin

AI agents explore by trying things. ClearVector recorded the denied access key creation, the denied policy edits, and entries such as “FredForgetsAlot failed to assume role 346 times with error: AccessDenied.” (Figure 6). A person doing their job does not produce that record. The first of those denials came 54 minutes before ARTEX reached admin.

ClearVector timeline entry: FredForgetsAlot failed to assume role 346 times with error AccessDenied.
Figure 6. Access denied assume role calls

The 25-second admin grant was caught: managed policy changes recorded

ClearVector works from the activity itself, so a change that is made and reversed inside a minute is still recorded: “cdk-hnb659fds-cfn-exec-role modified permissions for user FredForgetsAlot by adding a managed policy,” followed by the removal (Figure 7). ClearVector sent notifications across the six grants, each naming the policy, the user who received the policy and the role that made the change.

ClearVector timeline showing a CDK CloudFormation execution role attaching and detaching an admin managed policy for the user FredForgetsAlot, each as a separate notification.
Figure 7. Adding managed policy

The hijacked AI agent was caught too: prompt injection stopped CloudTrail and Bedrock logging

When ARTEX used prompt injection to make the customer-support AI agent turn off logging, the API calls came from the agent’s role and from AWS’s own addresses (Figure 8). ClearVector sent four notifications, “stopped a security control (CloudTrail)” and “turned off logging of model prompts and responses (Bedrock)” each time the event happened, against the agent’s role, with the model conversations that preceded them on the same timeline. An AI agent built to answer support questions has no reason to stop an audit trail, and the notification says so in one line.

ClearVector timeline and notifications for an AI agent role that stopped a CloudTrail trail and turned off Bedrock model prompt and response logging, with the preceding model conversation on the same timeline.
Figure 8. Stopped logging

Triage is one click away in Slack

ClearVector posts notifications to a connected Slack channel as they are raised, so the people on call see them without opening a console. Each notification in the channel has a Triage option (Figure 9). One click asks ClearVector to investigate that notification.

‍

ClearVector uses our identity graph to pull the activity of the identities involved around that time, along with any related notifications, and replies in the thread with a verdict, a short timeline and suggested next steps, with links to each identity’s page. Anyone in the channel can follow up by mentioning @ClearVector with a question.

‍

During a run like this one, that turns “what is this user doing?” into an answer in the channel in a couple of seconds, while the attack is still in progress.

ClearVector Slack thread: a notification with a Triage option, followed by ClearVector’s reply with a verdict, a short timeline and suggested next steps for FredForgetsAlot.
Figure 9. Slack notification and triage

What should security teams take from the ARTEX test?

The cost of a competent attack on a cloud account has fallen to a leaked password, a model API key and an afternoon. Two things follow from our test.

‍

  • Expect speed. From first sign-in to an encrypted bucket took 25 minutes, and to admin took 96. Detection that runs daily or weekly will report on an attack that is already over.
  • Watch identity activity, not only configurations. Every step ARTEX took was a valid API call by a valid identity, and the most damaging changes were reversed within seconds. What gave the activity away was behavior: a new identity, signing in hundreds of times, failing at a thousand things and succeeding at a few very dangerous ones.

‍

In this post, we showed ARTEX activity as the activity happened, tied to the identity responsible, in sentences an on-call engineer can act on. However, having a human in the loop is not fast enough. In part 2 of this blog series, we’ll enable ClearVector’s auto-isolation (prevent) mode.

‍

Frequently asked questions about the ARTEX test

‍

Can an AI penetration testing tool take over an AWS account with one password?

In ClearVector’s sandbox test, ARTEX did. ARTEX is an open source autonomous penetration testing tool. ARTEX started with a console username, a password and one paragraph of instructions for an account with no multi-factor authentication (MFA). ARTEX reached full admin 96 minutes after first sign-in and reported ten confirmed findings: two critical, five high and three medium.

‍

How fast can an autonomous AI pentester reach admin in AWS?

In ClearVector’s sandbox test, ARTEX encrypted an Amazon Simple Storage Service (S3) bucket 25 minutes after first sign-in and reached full admin at minute 96. The test account had a console login with a broad managed policy, no MFA, and no rights to manage Identity and Access Management (IAM).

‍

How did ARTEX get from a console login to admin?

ARTEX assumed the AWS Cloud Development Kit (CDK) deployment role at minute 42. At minute 96, ARTEX used that role to have CloudFormation create a policy allowing every action on every resource and attach that policy to FredForgetsAlot. The path used CDK bootstrap roles, which exist in any account where the AWS CDK has been set up.

‍

Can ClearVector detect an AI pentester that deletes the admin policy after using the policy?

In the same test, ARTEX attached an admin policy for about 25 seconds, deleted the policy, and repeated that five more times. ClearVector works from the activity itself, so ClearVector recorded each change and sent notifications across the six grants. A weekly configuration scan would have found nothing.

‍

What does ClearVector show when an AI agent is hijacked by prompt injection?

When ARTEX used prompt injection to make a customer-support AI agent stop CloudTrail and delete the Bedrock logging configuration, ClearVector sent four notifications against the agent’s role. The model conversations that preceded those calls appear on the same timeline.

‍

More production insights, tips & news

Blog
Okta Cross App Access for AI agents: ClearVector header graphic showing short-lived Okta tokens in place of static API keys
Product
Product
Perspectives