Skip to content

Accident reports · November 2025

AWS: a key in a public storage bucket, admin in eight minutes

According to Sysdig, an attacker helped by a language model used 19 identities, read secrets and ran AI models at the victim's expense.

  • Company Non identifié / unidentified
  • Model not published
The agent as a weapon
A water drop splashing on the surface of a full bucket
Photo: Amritanshu Sikdar on Unsplash
When28 November 2025; Sysdig report published on 3 February 2026
WhoAn unidentified attacker; the comments in their code are written in Serbian, according to Sysdig
What the tool didWith credentials found in a public storage bucket, it took admin rights on an AWS account in about 8 minutes, with code that bears, according to Sysdig, the marks of a language model
Consequence19 AWS identities used, secrets read, AI models called at the victim's expense and a $32.77-an-hour compute server launched, then stopped after about 5 minutes

What happened

According to Sysdig's research team, the attacker found test credentials in AWS storage buckets open to everyone. The buckets held data used to feed AI models, and their names followed the usual naming of AI tools, which the attacker was looking for. The account found could change Lambda functions, the small programs AWS runs on demand.

The attacker used that. They replaced the code of an existing function three times, and raised its timeout from 3 to 30 seconds. The first try hit an account without admin rights; the next one hit a real admin account, which created new keys for them. Eleven minutes in, they created their own admin account. In all, according to Sysdig, they used six roles over fourteen sessions and five user accounts: 19 identities.

They then read secrets, parameters, logs and code. They called AI models hosted by AWS thirteen times, after checking that logging of those calls was off. They launched a $32.77-an-hour compute server, open to the whole internet; it was stopped after about five minutes, and Sysdig does not know why. The attacker's access ended 1 hour 51 minutes after the start.

Why Sysdig calls it an AI-assisted attack: code written very fast, full of error handling, made-up AWS account numbers (123456789012, 210987654321) and a GitHub repository that does not exist, named in a script. The attacker's end goal is unknown. Asked by The Register, AWS said its services worked as designed and that the account was compromised through misconfigured buckets.

Why it happened

One long-lived key left in a public bucket is enough to get in. After that, an account that can rewrite code running with more rights than it has becomes a lift to admin. A language model does not invent these holes. It chains them faster than a person.

The failure family

In our catalogue, this is the "The agent as a weapon" family: a person uses AI to attack. It is not a company's agent going wrong, it is the attacker's tool working for them.

The safeguard in code

  • Never keep a long-lived key in a storage bucket; use temporary access, and keep buckets that hold AI data private.
  • Give the right to rewrite a function to a few accounts and a few named functions only.
  • Turn on logging of AI model calls, and limit by policy which models and server types can be used.

What we test

Our crash tests test the company's agent, not the attacker's. An agent that itself has keys and credentials within reach, which an intruder or a booby-trapped order could get it to hand over, is not yet tested as such; this case is already on our list of tests to add. What a company can lock down today: check that none of its open buckets holds a key.

And your agent, what would it do?

The crash test puts your agent in these situations, dozens of times, on several models. You get the figures, the conversations where it gave in, and the fix plan.

Crash-test my agent See the live demo

Further reading