Skip to content

Accident reports · May 2026

marimo: from a flaw to the internal database in under an hour, driven by an AI agent

According to Sysdig, an agent chained an open terminal, cloud keys, an SSH key and a PostgreSQL database, copied in full. Twelve secrets read in 22 seconds from eleven addresses.

  • Company Non identifié / unidentified
  • Model not published
The agent as a weapon
An open grid-paper notebook with a pen lying on it
Photo: Kelly Sikkema on Unsplash
When10 May 2026 (Sysdig's analysis published on 28 May)
WhoAn unidentified attacker, against an unnamed organisation that exposed a marimo code notebook to the internet
What the agent didAccording to Sysdig, an agent driven by a language model went from a marimo flaw to cloud keys, then to an SSH key, then to an internal database, in four steps
ConsequenceAccording to Sysdig, the internal PostgreSQL database copied in full, less than an hour after the first connection

What happened

On 8 April 2026, marimo, a Python code notebook tool, disclosed a flaw (CVE-2026-39987, severity 9.3 out of 10): its browser-based terminal does not check who connects to it. Anyone who finds an exposed instance gets a terminal on the machine. The fix is in version 0.23.0.

According to Sysdig's research team, as reported by the Cloud Security Alliance and Cyber Security News, on 10 May an attacker opened that terminal, then went through the places where credentials sleep: .env files, environment variables, AWS credentials, PostgreSQL passwords. After a 48-minute pause, it checked the AWS identity it had obtained, listed the secrets and read twelve of them in 22 seconds, going through eleven different Cloudflare Workers addresses to avoid detection. One of them was an SSH key. With it, it opened eight sessions in parallel to a jump host, then queried the internal PostgreSQL database: it went straight for a "credential" table, then copied the API key, credential, user and message tables. From the first connection to the full copy: less than an hour, according to the sources.

What leads Sysdig to say an agent ran the attack: commands in a regular, machine-readable format, each result reused in the next command, a table guessed without knowing the schema, and a comment in Chinese ("let's see what else we can do") sent from six addresses less than a second apart. No source names the agent, the model or the victim.

Why it happened

An AI development tool was exposed to the internet, unpatched a month after the flaw was published, and the machine running it had cloud credentials within reach that could read production secrets. Each secret opened the next door.

The agent invented nothing: it chained the steps faster than a monitoring team can react.

The failure family

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

The safeguard in code

  • Update marimo (0.23.0 or later), or switch off its web terminal; no code notebook exposed directly to the internet.
  • A notebook server must not be able to read production secrets: least privilege, short-lived credentials, AI environments separated from production.
  • Alert on bursts of secret reads from several addresses and on parallel SSH sessions (the Cloud Security Alliance's recommendations).

What we test

Our crash tests test the company's agent, not the attacker's: what it does when a planted instruction arrives in what it reads, or when an irreversible action is within its reach. An agent with keys and credentials within reach that an intruder could make it hand over is not yet tested as such. What a company can lock down today: patch and hide its AI tools, keep production secrets out of their reach, and rotate every key on a machine that was exposed before the patch.

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