SnehithInfraSnehith Infra

Insights & case files

What the research actually says about AI-written code — and what happened when real teams trusted it too far.

Research digest

The evidence behind our work

Independent studies, industry reports and developer surveys. Most are from 2025–2026 and show that AI makes code faster to write and easier to get subtly wrong. Two older benchmarks on maintenance and technical debt are included, labelled with their year.

Case files

When AI was trusted too far

Public incidents from founder post-mortems, security disclosures, a tribunal ruling and news reporting. For each: what happened, why, and where we would have stepped in.

Jump to: PocketOS · Moltbook · SaaStr, building on Replit · Lovable (CVE-2025-48757) · Deloitte Australia · Air Canada

April 2026

A car-rental software company

PocketOS

Nine seconds to lose a production database

While fixing a credential mismatch in staging, a Cursor agent running Claude Opus 4.6 went looking for an API token, found one in an unrelated file and called the hosting provider's delete endpoint on a volume it assumed was staging. It was production, and the volume's backups were stored on it. The provider, Railway, later recovered the data from its own off-site disaster backups and changed its API so deletes can be undone for 48 hours.

Why it happened
A token created to manage domains had account-wide power and sat where the agent could read it. Staging and production weren't separated at the credential level, backups shared the blast radius, and nothing required a human to approve a destructive call.
Where we'd come in
A secrets and permissions audit: scoped, short-lived tokens kept out of the repo; production credentials an agent simply can't reach; backups outside the blast radius, restored on a schedule to prove they work; and agent rules enforced by tooling — allow-listed commands and human approval for anything destructive.

How we help: Technical Consultancy

How we know: The founder's public post-mortem, confirmed and followed up by the hosting provider. Sources: The Register (Apr 2026) (opens in a new tab), Tom's Hardware (Apr 2026) (opens in a new tab)

January 2026

A fast-growing social network for AI agents

Moltbook

1.5 million API keys behind one public key

Security researchers at Wiz inspected Moltbook's front-end code and found its Supabase connection key, which is designed to be public. Row Level Security wasn't configured, so that key gave anyone full read and write access: about 1.5 million agent API tokens, 35,000 email addresses and private messages. Moltbook fixed it within hours of disclosure.

Why it happened
A public key is only safe when the database checks who is asking. Nobody verified those rules before launch — and Wiz notes that secrets in front-end code are a recurring pattern in vibe-coded apps.
Where we'd come in
A pre-launch security review that tests the app the way an anonymous attacker would: database access policies checked table by table, front-end bundles scanned for secrets, and authorisation tests added to CI so the hole can't quietly reopen.

How we help: Code Review & Audit

How we know: A responsible-disclosure write-up by the security firm that found it. Sources: Wiz Research (Feb 2026) (opens in a new tab)

July 2025

A SaaS community building its app by vibe coding

SaaStr, building on Replit

The code freeze the AI didn't honour

SaaStr founder Jason Lemkin was building an app with Replit's AI agent. Despite repeated instructions to freeze changes, the agent ran commands that wiped a production database holding records for roughly 1,200 executives and 1,190 companies, then told him rollback couldn't restore it. He rolled back anyway, and it did. Replit responded with automatic separation of development and production databases and a planning-only mode.

Why it happened
Development and production shared one database, and the freeze existed only as words in a chat. Instructions to an AI are requests, not controls.
Where we'd come in
Separate environments by default, change freezes enforced by permissions rather than prompts, tested backups with a written rollback runbook, and a review gate so no agent-made change reaches production without a person signing off.

How we help: Project Maintenance & Takeover

How we know: Documented publicly by the founder as it happened, covered by Fortune and The Register, with a response from Replit's CEO. Sources: Fortune (Jul 2025) (opens in a new tab), The Register (Jul 2025) (opens in a new tab)

March 2025

Apps generated by a popular AI app builder

Lovable (CVE-2025-48757)

170 apps, one missing access rule

Researcher Matt Palmer found that apps generated on Lovable often shipped with missing or incorrect Row Level Security. Scanning 1,645 apps from the platform's showcase, he found 303 exposed endpoints across 170 projects — about 10% — including user tables, transactions and API keys. The issue was published as CVE-2025-48757.

Why it happened
Security lived in the app's front end while the database trusted everyone. A checkbox-style scan confirmed policies existed without testing whether they matched the app's logic.
Where we'd come in
We read the access rules rather than count them: each policy tested against who should see what, plus automated checks that try to read another user's data before every release.

How we help: Product & Application Development · Code Review & Audit

How we know: The researcher's public statement and the published CVE record. Sources: Matt Palmer, statement on CVE-2025-48757 (opens in a new tab), NVD: CVE-2025-48757 (opens in a new tab)

October 2025

A Big Four firm's report to a government department

Deloitte Australia

A government report citing sources that don't exist

A university researcher noticed that a report Deloitte produced for Australia's Department of Employment and Workplace Relations cited non-existent academic papers and misquoted a court judgment. A revised version disclosed that generative AI had been used, and Deloitte agreed to refund part of its A$440,000 fee.

Why it happened
AI output went out under a trusted name without anyone checking each claim against its source.
Where we'd come in
The same rule we apply to code: nothing AI-generated ships until a qualified person has verified it. In software, that means review, tests and evidence — not confidence.

How we know: Reported by AP News and Ars Technica. Sources: AP News (Oct 2025) (opens in a new tab), Ars Technica (Oct 2025) (opens in a new tab)

February 2024

A national airline's website chatbot

Air Canada

The chatbot said yes. The tribunal agreed.

Air Canada's support chatbot told a customer he could apply for a bereavement fare after travelling; the airline's own policy page said otherwise. When he claimed the difference, the airline argued it wasn't responsible for information from its chatbot. British Columbia's Civil Resolution Tribunal disagreed, found negligent misrepresentation and ordered the airline to pay.

Why it happened
The bot's answers weren't tied to the source-of-truth policy, and nothing checked its advice before it reached a customer. An AI on your site speaks for your company.
Where we'd come in
For AI features in your product: answers grounded in your actual policies and data, guardrails on what the model may promise, evaluation sets that catch wrong answers before release, and a clear hand-off to a person.

How we help: Technical Consultancy

How we know: The published tribunal decision (Moffatt v. Air Canada, 2024 BCCRT 149), reported by CBC. Sources: Civil Resolution Tribunal decision (opens in a new tab), CBC News (Feb 2024) (opens in a new tab)

Summaries are written by Snehith Infrafrom the public sources linked, which remain the authoritative accounts. The companies named are not our clients; “Where we'd come in” describes the safeguards we would put in place, not work we performed.

Stay ahead of AI code risks

New research and incident breakdowns when they matter. No spam — unsubscribe anytime.

Worried one of these could be you?

Get a second pair of eyes on your code before an incident does.