Why AI-Built Apps Break · For business owners

Moltbook exposed database: what one missing setting cost

Short answer Moltbook, an app whose founder says AI wrote its code, exposed about 1.5 million secret access codes and 35,000 emails in January 2026. Researchers found it and it was fixed within hours. If AI built your app, sign in as two test users: neither should see the other’s data.

Moltbook is a website built for AI agents to talk to each other: they post, reply and vote, much like humans on a social network. Its founder said he had not written a line of its code; AI, he said, had. At the end of January 2026 a security firm found that anyone on the internet could read, and change, almost everything the app stored. That means exposed, not proven stolen. The firm reported it and the holes were closed within hours.

The cause was not a clever attack. The database (the place an app keeps its customers’ records) had one safety setting switched off. If you have built an app with an AI coding tool, or paid someone who did, the same setting may be off in your app too.

The one thing to do: sign in to your app as two different test users and check that neither can see the other’s data. The rest of this post explains why that test matters and gives you a prompt and a checklist.

What was exposed, and who found it

Wiz, a cloud-security company, published its findings on 2 February 2026Source 1. Wiz reports that the exposed data included about 1.5 million tokens (secret access codes, also called API keys, that prove an agent is who it says it is), about 35,000 email addresses, and 4,060 private conversations between agentsSource 1. Some of those conversations contained other companies’ keys, such as keys for OpenAI, the maker of ChatGPT, that people had pasted in. Wiz counts about 4.75 million records in totalSource 1. Its headline says about 35,000 emails, but its detailed section also lists 29,631 early-access sign-ups in a separate table, so the real count depends on how you countSource 1.

Wiz also reports that the data could be changed, not only read. Posts could be edited, and AI agents read those posts. Changing what an agent reads is a way of steering it, and Wiz argues write access was the greater risk. Wiz says it changed one live post to prove the point, that Moltbook’s team fixed the holes with Wiz’s help and thanked it, and that the data Wiz accessed has since been deletedSource 1.

Wiz’s own account says it contacted Moltbook’s maintainer on 31 January at 21:48 UTC and reported the problem at 22:06. The first tables were secured at 23:29. Then Wiz found the write problem, which was blocked at 00:44 on 1 February. Further exposed tables turned up at 00:50, and the last fix landed at 01:00Source 1. That is 2 hours 54 minutes from Wiz’s report to the last fix (about 3 hours 12 from first contact), in four rounds. Wiz does not say how long the database had been open before that, and notes that new issues kept surfacing after each fix.

A public key is normal. A database with no rules is not

Here is the mechanism in plain words. Supabase is a hosted database service that many AI coding tools can set up for an app’s back end. A web page cannot talk to a database without some credential, so the page carries a key. Supabase designs this key to be visible to anyone who views the page, the way a shop’s front door is visible from the street.

What keeps the shop safe is the lock on each room inside. In Supabase that lock is called Row Level Security, or RLS: a rule per table saying which rows each signed-in person may see. Supabase documents that once RLS is on, nothing is reachable through that public key until you write rules. Without it, a table is readable and writable by any role that has been granted accessSource 2.

Wiz found the public key in Moltbook’s website code and no rules behind it. Wiz puts it this way: “without RLS policies, this key grants full database access” to anyone who has itSource 1. Nobody had to break anything. The door the app showed to the street led straight to every room.

Switching RLS on is step one. A rule that says “everyone may read” defeats it, and views and Supabase’s private “service” key skip it. The two-user test below catches the first; ask your builder about the other two, and confirm the key in your web page is the public one, not the service key.

Four-panel strip: a public key sits in the website code, which is normal; the database has no access rules; so anyone holding the key could read and change data, including about 1.5 million tokens and 35,000 emails; the last fix came 2 hours 54 minutes after Wiz reported it, 31 January to 1 February 2026.
Image description

Title: One missing setting, not one clever attack. Subtitle: Moltbook, 31 January to 1 February 2026, as Wiz describes it. Step 1, A public key: the website code contained a Supabase key. That is normal; the key is designed to be visible. Step 2 (highlighted), No access rules: the database had no Row Level Security policies, the setting that says who may see which rows. Step 3, Open to anyone: anyone holding the key could read and change data. Wiz lists about 1.5 million API tokens, about 35,000 email addresses and 4,060 private agent conversations. Step 4, Fixed in hours: Wiz reported at 22:06 UTC on 31 January; the last tables were secured at 01:00 UTC on 1 February, 2 hours 54 minutes later, in four rounds. Wiz does not say how long the database was open before that. Green box, The check: sign in as a second test user and confirm you cannot see the first user’s data. Source: Wiz, 2 February 2026.

How one missing setting exposed Moltbook’s data, as Wiz describes it. Source: Wiz, 2 February 2026.

Why a working app can still be wide open

Moltbook’s founder said, as Wiz quotes him, “I didn’t write a single line of code”Source 1. That is the vibe-coding promise: describe what you want, get a working app. It mostly delivers. The app looked finished, and the leak sat in a place no screen shows.

That is the pattern worth learning, not a verdict on one founder. An AI tool is asked for features: sign-up, posts, a feed. It builds them, and they work, because working is easy to see. A missing safety rule produces no error and no broken button. Everything looks right until a stranger asks the database a question your screens never ask. We think a working screen and a safe app are different tests, and a tool asked to build features will not report a safety setting nobody asked about.

Wiz makes similar suggestions: AI tools that generate Supabase back ends could turn RLS on by default, deployment platforms could scan for exposed credentials, and a human should review configurationSource 1. It credits vibe coding with real speed, and said in February 2026 that AI tools did not yet reason about security settings on a builder’s behalf.

A second lesson is separate from the database one. Moltbook claimed 1.5 million agents, yet Wiz traced them to about 17,000 human owners, roughly 88 agents each, with no effective rate limit or check that an agent was really an AISource 1. Wiz calls this a sign of how early the category is, not a flaw, and concludes that such metrics are easily inflated without guardrails.

What is confirmed, and what is not

Confirmed by the researchers who found it: the key, the missing rules, the categories of data, and the fix timeline. All of that comes from Wiz, which reported it to the app’s maintainer and published afterwards. We could not read an independent post from Moltbook itself, so the counts are Wiz’s, not audited ones.

Not established: whether anyone besides researchers read or changed the data before the fix. Wiz’s post describes what was reachable, not who used it. Treat “exposed” as the accurate word and “stolen” as unproven. If you were a Moltbook user, treat any API key you pasted into a conversation there as seen, and replace it.

Wiz titled its post “Hacking Moltbook”, but describes the access as browsing with the key the site itself shipped. We read it as a configuration gap that the tool which wrote the app could have flagged, had anyone asked.

Check your own app in ten minutes

You do not need to read code. You need a second account and a few minutes.

  1. Create two test users. Add some data as the first one: a note, an order, a profile detail.
  2. Sign in as the second and look for the first user’s data. If you can see it anywhere, in a list, a search or by guessing a link, stop and fix that before anything else.
  3. Ask your builder, human or AI, one question. Is Row Level Security turned on for every table, and what does each table’s rule say? “We check in the app code” is not an answer: the key in your page reaches the database directly.
  4. List what lives in the database that should never be shared. Emails, tokens, API keys, private messages. Keys pasted by users are the worst case, so do not store them readable.
  5. Ask what stops one person from creating thousands of accounts. If nothing does, your user numbers and your costs can both be inflated.

If you build with an AI tool yourself, you can hand it the audit. Paste this and read the answer, not only the summary:

Try it yourself For Claude Code
Audit this app’s database access. For every table, tell me whether Row Level Security is enabled and show the policy in plain words. List any table the public client key can read or write without signing in, and any column holding emails, tokens, keys or messages. Do not change anything; give me a list of problems ranked by risk, then propose fixes one at a time.

A prompt is not an audit: AI review can miss problems, flag ones that aren't there, and answer differently each run. Don't point agents at code you don't trust; text hidden in it can steer them.

Then repeat the two-user test yourself. An AI audit can miss a table; a second account only passes when the data is really closed.

What we would change before launch

Turn rules on at the start, not after the first scare. Moltbook’s fixes came in rounds over a few hours, and each round revealed another exposed table. That is what a retrofit looks like. Switching RLS on when each table is created costs one line per table and makes every later feature safe by default.

Keep secrets out of what users can store. If your app lets people paste an API key, it holds something worth stealing. Wiz found such keys sitting in private messages. Encrypt them, or do not accept them.

Finally, schedule a repeat. A safe app today can be unsafe after the next AI edit adds a table. Run the two-user test whenever a new kind of data appears.

  1. Two test users, and neither sees the other’s data Repeat after any change that adds a table.
  2. Row Level Security on for every table, with real rules A rule saying everyone may read defeats it. Ask about views and the service key, and check the key in the page is the public one.
  3. No secrets stored readable Emails, tokens and user-pasted keys protected or not stored.
  4. Limits on sign-ups and a way to tell real users from scripts
  5. A named person who reviews configuration before launch Wiz says AI-generated configuration still benefits from human review.

Sources

  1. Wiz: Hacking Moltbook, the exposed database revealing millions of API keys (Gal Nagli, 2 Feb 2026). Retrieved . ↩ ↩ ↩ ↩ ↩ ↩ ↩ ↩ ↩ ↩
  2. Supabase docs: Row Level Security. Retrieved . ↩

Published · Updated Report an error (support@agentum.cloud)