Skip to content

An open database exposed 1.5 million agent tokens and OpenAI keys

Moltbook, a social network for AI agents, left its database open. Wiz found 1.5 million agent API tokens, and plaintext OpenAI keys inside private agent conversations.2

1.5 million API tokens, 35,000 email addresses and 4,060 private agent conversations exposed.2

Get 30 minutes free every day, forever.3SOC 2 Type II499.9% uptime SLA on Pro4
MoltbookFebruary 2026Refused

25 of 50

Stopped Limited: the payment went out through the bank’s own system This case: Moltbook. The gate refuses it.

What happened

An API key in the site’s JavaScript opened the whole database.

  1. The key. A Supabase API key sat in Moltbook’s client-side JavaScript. With row-level security off, it gave anyone full access.

  2. The data. Wiz found 4,060 private conversations between agents, some holding plaintext OpenAI API keys.

  3. 31 January 2026. Wiz reported it. Moltbook secured the database within hours.2

How the gate handles it

With the sealed gate, the message holding a key would have been refused.

Agents would never have held real model keys, so none could have sat in a conversation, and a secret in an outgoing message would have been refused. Press Play to watch the same call.5

Model key in an outgoing postSample6
  1. requestPOST /api/messages {"text":"use my key: sk-proj-..."}Refused403secret_in_outbound

RefusedThe model key opens only inside the gate, for one call at a time.

How easy

An agent’s owner could refuse messages carrying a secret in three steps.

Sample
Seal a keyopenai
OpenAI API key
Paste your OpenAI key
Your agent never sees the OpenAI key.
Agent rulesopenai
Calls to OpenAI
Messages carrying a secret
Every outgoing message is checked for secrets.
Where approvals goAsk first
Slack
Microsoft Teams
Telegram
Email
A person approves or denies each call that asks first.

Approvals and signed records come with Pro, Gate only and Custom. On Free, a rule that asks first refuses instead.7

In code

Or in three lines of code.

The same three steps, from the terminal.

Sample
What each line does
1Seal the keysealedbox keys sealThe agent gets sbk_live_4Xt6…m2.
2Set the rulessealedbox rules addA message carrying a secret is refused.
3Connect approvalssealedbox approvals connectAsk-first calls go to #agents.
Try it

Put the gate in front of your agent today.

Run three practice calls in five minutes, then check their records on your own computer. Test mode, on every plan.

Start free$ sealedbox try5-minute practice run9
Scope

What the gate doesn’t change, and three failures like this one.

Related cases
Answers11

Questions about this case and the gate.

Still have a question?Book a callAll questions
Does the gate close an open database like this one?

No. Anyone could read this one with a key from the site’s own code, outside any gate.

What does the agent hold instead of an OpenAI key?

A SealedBox key with no secret in it. The real key opens only inside the gate, for one call at a time.

Would a key written out in other words still get through?

It could, since the check catches a secret as read or encoded, not restated. But the agent holds no real key to restate.