An attacker's AI ran 25 operations. It found boring bugs.

Unit 42 tracked a group that let a customized open-source AI agent run 25 operations against at least 19 organizations. The way in was weak passwords, open sign-up endpoints and a writable storage bucket. Each one mapped to an AWS check.

Antivenom5 min read

Between August and September 2026, a group Unit 42 tracks as CL-STA-1238 ran 25 operations against at least 19 organizations, with an AI agent doing most of the work. Unit 42 confirmed unauthorized access or data retrieval at 10 of them, including more than a million member records at a US teachers' union. The agent was a customized fork of Cairn, an open-source AI penetration testing framework, driven by Zhipu GLM 5.2 and DeepSeek V4.

The interesting part is what it found. Not a new exploit class. Weak passwords, an open registration endpoint, a storage location anyone could write to.

Diagram: six weaknesses the attacker's agent used, in red on the left, each matched with the AWS check that closes it, in green on the right.

What happened

Unit 42 assesses with moderate confidence that this is China-nexus intelligence collection, based on Chinese-language task files, exclusive use of Chinese models and the choice of targets. Those were in the semiconductor and advanced manufacturing supply chain, defense and defense policy, and human rights and civil society. Unit 42 thinks it was likely a single operator or a small team.

The operators gave Cairn a target and a goal. Cairn planned, ran and recorded the work on its own, with agents sharing results on a common board. Humans could inject hints at any time. Operations ran from about 20 minutes to more than 50 hours. Thirteen used GLM 5.2, eight DeepSeek V4 Flash and four DeepSeek V4 Pro, which the attackers appear to have brought in when Flash failed against harder targets.

To keep the models working, the operators put a Chinese-language preamble at the top of the worker prompt saying every task was authorized and the model should never refuse. Each operation also wrote an AUTHORIZATION.md file declaring the engagement authorized. Unit 42 says neither model refused.

What the agent got through, per Unit 42:

  • An industry standards body. Weak-password spraying against an internet-facing application server produced dozens of valid credentials. Separately, an unauthenticated cloud-storage write let the attackers overwrite a live standards-ballot document.
  • A semiconductor company. A brute-forced production credential on a partner-integration app worked across multiple accounts. The attackers then created unauthorized admin accounts and a persistent API token in production.
  • A US teachers' union. An unauthenticated account-creation bypass in the content management system let the agent mint valid sessions.
  • A defense-policy program. An open backend registration endpoint on its identity platform exposed about 500 user records, including .mil and .gov accounts.

The report's conclusion lists the classes: authentication bypasses, insecure direct object references, mass-assignment privilege escalation, weak and default credentials, exposed cloud APIs and dated public CVEs. Its summary is one line: "Autonomous AI raises the volume and coverage of exploitation, but not its complexity."

Why boring bugs are the whole story

A human attacker with 19 targets gets tired. They check the obvious things on the first few and move on. An agent checks the registration endpoint on every app, sprays every login form, tries to write to every bucket it finds and writes down every result. It runs for 50 hours if that's what it takes.

That changes the math on the low findings in your backlog. A misconfiguration that "nobody would find" is now one that something will check, at every company on the list. Many teams quietly rate risk by how likely discovery is. For boring bugs, that likelihood is heading to certain.

It also says something reassuring. Unit 42 notes that identity hygiene, attack-surface reduction and patching remain effective against this activity. None of these entry points needed a defense that doesn't exist yet. They needed the defenses that exist to actually be switched on, everywhere.

The AWS version of each finding

Unit 42 doesn't name a cloud provider. Here is where each class most often shows up on AWS, and the check that closes it.

  1. Password spraying. Use the IAM credential report to find IAM users with console passwords and no MFA, and fix them first. For application logins, put a rate-based rule in AWS WAF in front of the sign-in path so one source can't try thousands of passwords.
  2. One credential that works in many places. A production credential should work in exactly one place. Find shared service passwords and API keys reused across environments or customers, store each one separately in Secrets Manager and rotate it.
  3. Open registration. If an Amazon Cognito user pool backs an internal or partner tool, check whether self sign-up is on. If only you should create users, create them as an administrator and turn self sign-up off. Then check whether anything trusts "has an account" as if it meant "is allowed in". Our post on public Cognito credential vending covers the identity pool side.
  4. Mass assignment. If your app decides admin rights from a Cognito custom attribute, check who can write it. AWS's documentation is direct: when you don't specify write attributes for an app client, users can change all standard and custom attributes for themselves. Remove any attribute used for authorization from every app client's write list. In your own APIs, never copy a request body straight onto a user record that has a role field.
  5. Unauthenticated storage writes. Turn on S3 Block Public Access at the account level, then look for bucket policies that allow s3:PutObject to Principal "*". Writes are worse than reads. They let someone change what your users trust, like a live ballot document.
  6. New admins and a persistent token. Alert on CreateUser, CreateAccessKey and AttachUserPolicy in CloudTrail, and on new admin users in your application's own user store. New admin accounts and tokens leave records. Someone has to be reading them.

For dated public CVEs, the seventh class, Amazon Inspector covers EC2, container images and Lambda. Start with what faces the internet.

What to do this week

  • Run the six checks above on internet-facing apps first, then internal ones.
  • Re-rate "low" findings on any internet-facing login, sign-up or storage path. If an agent can find it in an afternoon, it isn't low.
  • Look for writes, not only reads. Public read is a leak. Public write is a way to change what your users trust.
  • List every account-creation path you expose: Cognito pools, CMS sign-up forms, partner portals, forgotten admin panels. Close the ones nobody needs.
  • Make sure someone sees new admin accounts and new long-lived API tokens the day they appear.

The short version

The attacker's AI didn't need to be clever. It needed to be thorough, and it was. Defenders can be thorough too, with the same kind of patience pointed at their own systems.

That's how Antivenom works. The AI red team checks the boring things everywhere, only against your own systems and with your permission, and proves which ones actually open a path. The AI blue team fixes them, and the red team retests to confirm they're closed. For a closer look at how long the boring misconfigurations last, read public buckets, day 400.

← All posts
  • Cairn
  • CL-STA-1238
  • AI agents
  • agentic AI
  • AI security
  • cloud security
  • AWS security
  • Amazon Cognito

The arms race has started

Evolve as fast as the attacker.

Antivenom is opening to a small group of security and platform teams first. Join the waitlist to get early access.