
When anyone can build an app, who decides what's safe to run?
AI lets millions of people ship software they have never read. The checks meant to protect users were built for a slower world, and the data shows the gap.
October 10, 2026 | 13 min read
In early February 2026, a social network for AI agents called Moltbook went viral. Within days, security researchers at Wiz found its production database wide open: a key in the website's JavaScript and no access rules behind it. Anyone could read and write 1.5 million API tokens, around 35,000 email addresses and thousands of private messages, some containing plaintext OpenAI keys. The founder had said publicly that he did not write a single line of the code himself.
It would be easy to turn this into a morality tale about lazy founders. That would miss the point. Moltbook is what happens when building software becomes nearly free and checking it does not. The question it raises is bigger than one app: if anyone can now ship software they have never read, who decides what is safe to run?
"It works" has become cheap
The research on AI-written code has a consistent finding, and it is not "AI writes terrible code". It is that AI writes code that works far more often than it writes code that is safe.
Veracode has tested more than 150 language models on the same security tasks since 2023. Over that time, the share of generated code that compiles rose from about half to more than 95 percent. The share that passes security tests has stayed at roughly 55 percent. Its July 2026 report put the average at 56 percent and called the result nearly unchanged. Bigger and newer models got better at producing running code, not at avoiding injection flaws or broken cryptography.
The gap is wider when an AI agent works on real projects instead of benchmark snippets. In the SusVibes study, a coding agent built features for 186 real open-source tasks. Fifty-seven percent of its solutions worked. Only 11.8 percent were also secure.
The most uncomfortable result is older and about people, not models. In a Stanford study published at ACM CCS 2023, participants with an AI assistant wrote less secure code on four of five tasks than those without one, and were more likely to believe their code was secure. The participants who trusted the assistant less and kept rewriting their prompts produced fewer vulnerabilities.
These numbers need context. Veracode sells code scanners and tests only four classes of vulnerabilities. The Stanford study used an older model and mostly students. And there is no human baseline for the Veracode tasks, so "45 percent insecure" does not mean "worse than a human". One study that did compare found that Copilot reproduced a real, human-introduced vulnerability about a third of the time, and its authors concluded it was "not as bad as human developers". Humans were never good at this. What changed is the volume, and who is writing.
The new attack surface is not the code you write
Most of the code in a modern app was not written by its author, human or AI. It comes from packages. This is where AI introduces a genuinely new risk.
A USENIX Security 2025 paper analysed 576,000 code samples from 16 models and found that 19.7 percent of the packages they recommended did not exist. That added up to 205,474 invented package names, and 43 percent of them came back every time the same question was asked. Predictable fake names are an invitation: an attacker registers the name and waits. In 2024, a researcher registered one such name, huggingface-cli, as an empty package. It was downloaded more than 30,000 times in three months.
The registries themselves are under strain. Sonatype counted more than 454,600 new malicious open-source packages in 2025 alone, over 99 percent of them on npm. In August 2025, a compromised version of the popular build tool Nx went a step further: its install script tried to use the AI command-line tools on developers' machines to search for secrets. And when people look for AI tools themselves, they are the bait. Sophos reviewed a year of incidents involving AI brands and found that in 26 of 38 confirmed cases, the lure was a fake download of Claude. The malware was old-fashioned; only the packaging was new.
The gatekeepers check identity, not safety
So who stands between a user and a dangerous program today? On the desktop, mostly mechanisms that answer a different question.
- Apple notarization is an automated scan plus a developer identity. It is not a human review, and Apple does not disclose what it checks. Notarized malware has repeatedly slipped through, from Shlayer in 2020 to an infostealer posing as a crash reporter in July 2026. Its real strength is revoking apps after the fact.
- Microsoft SmartScreen is reputation: how often a file or certificate has been downloaded without complaints. Microsoft's own documentation says a new signed app can need "several weeks and hundreds of clean installs" before the warning goes away. Popular malware with a good reputation passes; a new honest app gets a scary dialog.
- Smart App Control on Windows 11 blocks unsigned software outright, with no option to allow a single app.
- Linux stores rely on human review and minimal permissions (Flathub) or, after a wave of fake crypto wallets, manual review of new publishers (Snap Store). In January 2026, attackers found a way around that: they re-registered expired domains of established Snap publishers, reset their passwords and pushed malicious updates to apps installed years ago.
Even a trusted update channel is not safe by definition. For months in 2025, attackers who had compromised the hosting provider of Notepad++ redirected selected users' update requests to a backdoor.
Put together, today's system manages to fail in both directions. It lets well-funded criminals through, because a certificate or a good download history can be bought, stolen or built up. And it punishes newcomers, because a first-time developer looks exactly like an attacker to a reputation system. In a world with millions of new, small, AI-assisted apps, that second failure becomes the norm.
AI is not behind every incident, and it also defends
A critical article should not stop at the scary numbers, so here are the strongest objections.
Many headline incidents have nothing to do with AI. The 2025 leak of the Tea dating app, often cited as a vibe-coding disaster, came from a misconfigured storage bucket in an app launched in 2023. The claim that it was AI-built is an allegation the company reportedly denied. Notepad++, Shlayer and the Snap Store takeovers were classic attacks.
AI is also becoming a strong defender. In DARPA's AI Cyber Challenge final in August 2025, autonomous systems found 54 of 63 planted vulnerabilities in real open-source code and 18 real ones nobody had known about, at around 152 dollars per task. Google's Big Sleep agent found an exploitable SQLite bug before release. Anthropic reported in February 2026 that one of its models found and validated more than 500 high-severity vulnerabilities in open-source projects.
But automation cuts both ways for defenders too. The curl project ended its bug bounty in January 2026 because AI-generated junk reports had pushed the share of genuine findings below one in twenty.
The honest conclusion is not "AI makes software unsafe". It is that the cost of producing software collapsed while the cost of verifying it did not, and responsibility has quietly gone missing in between. When researchers reported that 170 of 1,645 showcased apps on the vibe-coding platform Lovable exposed user data, the company disputed the vulnerability report, arguing that each customer accepts responsibility for their own app. The customer, meanwhile, often cannot read the code. Europe's Cyber Resilience Act will soon force the question: from 11 September 2026, manufacturers must report actively exploited vulnerabilities within 24 hours, and from 11 December 2027, most of its obligations apply. Who exactly the "manufacturer" of a prompted app is remains unclear.
Six habits that can no longer be optional
None of the following is new. What is new is that it can no longer be optional.
- Secure defaults on the platforms that generate apps. A scan that checks whether access rules exist is not the same as checking that they work. Private-by-default projects, as Lovable introduced after its second incident, should be the baseline everywhere.
- Least privilege for apps and agents. Software should only reach what it needs. For AI agents, Simon Willison's "lethal trifecta" is a useful rule: never combine private data, untrusted content and a way to send data out in one place.
- Know what is inside. A software bill of materials (SBOM) lists every component of a build. Paired with a vulnerability database, it turns "is this safe?" into a question that can be re-asked every day, not just once at release.
- Verify every new dependency name. If a package was suggested by an AI and is a few weeks old, that is a red flag, not a shortcut.
- Review every version, not just the first. Update channels are an attack path. A check that happened two years ago says little about the update that arrived last night.
- Honest labels. "Reviewed" means nothing without saying what was checked and what was not.
Developers blame the habits more than the tools
On Hacker News, a forum popular with programmers, the reaction to these incidents is less panic than impatience. When a founder posted in June 2025 that their vibe-coded app had been hacked twice within days of launch, the discussion split. Some argued that AI tools make security holes the default; others said the real mistake, a database exposed with misconfigured access rules, is one that hand-written apps make too. After Replit's agent deleted a database in July 2025, most commenters blamed the people who gave an AI write access to production without backups. When Wiz published its Moltbook findings, the dominant tone was that nobody should be surprised. Hacker News leans technical and sceptical, so these are voices, not evidence. But they point at the same gap as the data: the tools moved faster than the habits around them.
Crela reviews every build, and the review has limits
Crela is a marketplace for desktop software, so this question is our business, and we should be measured by the same standard. Every build and every update goes through the same automated review before it reaches buyers: file integrity against the signed build manifest, malware and threat-intelligence scans, a pattern scan that includes leaked secrets, an SBOM of the whole build checked against a public vulnerability database, a short test run on a review machine without network access, and an AI review of all findings. After release, the SBOM of every live build is checked again daily. If a new high-severity vulnerability appears, the creator has 14 days to ship a fix before sales are paused. In the Crela launcher, apps can only reach the servers their creator declared.
The limits matter just as much. The test run depends on an available review machine; if it is offline, that phase is skipped and repeated later. macOS builds get no test run at all. Our binary inspection parses Windows executables only. There is no full behavioral analysis. We cannot see a creator's servers, so a backend with broken access rules, like the cases above, is outside what we check. And an AI review can be wrong. A review is a filter, not a guarantee, and anyone who sells it as more is part of the problem this article describes.
Sources
- Wiz Research, "Hacking Moltbook: The AI Social Network Any Human Can Control" (2 Feb 2026). wiz.io
- Veracode, "2025 GenAI Code Security Report" (30 Jul 2025). veracode.com
- Veracode, "Spring 2026 GenAI Code Security Update" (Mar 2026). veracode.com
- SD Times, "Veracode finds AI-generated code security has barely improved since last year" (Jul 2026). sdtimes.com
- Zhao et al., "Is Vibe Coding Safe? Benchmarking Vulnerability of Agent-Generated Code in Real-World Tasks", arXiv (Dec 2025). arxiv.org
- Perry, Srivastava, Kumar, Boneh, "Do Users Write More Insecure Code with AI Assistants?", ACM CCS 2023. arxiv.org
- Asare, Nagappan, Asokan, "Is GitHub's Copilot as Bad as Humans at Introducing Vulnerabilities in Code?", Empirical Software Engineering (2024). arxiv.org
- Spracklen et al., "We Have a Package for You! A Comprehensive Analysis of Package Hallucinations by Code Generating LLMs", USENIX Security 2025. arxiv.org
- Bar Lanyado, Lasso Security, "Diving into AI Package Hallucinations" (28 Mar 2024). lasso.security
- Sonatype, "2026 State of the Software Supply Chain: Open Source Malware". sonatype.com
- Nx, "s1ngularity postmortem" (Sep 2025). nx.dev
- Sophos X-Ops, "Fake AI, real malware: Attackers impersonating AI brands" (2026). sophos.com
- Microsoft Learn, "SmartScreen reputation for Windows app developers" (updated Aug 2026). learn.microsoft.com
- Microsoft Support, "What is Smart App Control?". support.microsoft.com
- Howard Oakley, "Notarization: is a notarized app safe to use?" (5 Jan 2021). eclecticlight.co
- Kaspersky, "CrashStealer: notarized malware for macOS" (2026). kaspersky.com
- Flathub, "Requirements". docs.flathub.org
- Alan Pope, "Malware Peddlers Are Now Hijacking Snap Publisher Domains" (17 Jan 2026). blog.popey.com
- Unit 42, Palo Alto Networks, analysis of the Notepad++ update infrastructure compromise (2026). unit42.paloaltonetworks.com
- TechCrunch, "Tea app's data breach gets much worse, exposing over a million private messages" (29 Jul 2025). techcrunch.com
- DARPA, "AIxCC final competition results" (8 Aug 2025). darpa.mil
- Google Project Zero, "From Naptime to Big Sleep" (Nov 2024). projectzero.google
- Anthropic, "Zero-days" (5 Feb 2026). anthropic.com
- Daniel Stenberg, "The end of the curl bug-bounty" (26 Jan 2026). daniel.haxx.se
- Matt Palmer et al., "Statement on CVE-2025-48757" (29 May 2025). mattpalmer.io
- The Register, "Lovable denies data leak, cites 'intentional behavior'" (21 Apr 2026). theregister.com
- European Commission, "Cyber Resilience Act: reporting obligations". digital-strategy.ec.europa.eu
- European Commission, "Cyber Resilience Act: summary of the legislative text". digital-strategy.ec.europa.eu
- Simon Willison, "The lethal trifecta for AI agents" (16 Jun 2025). simonwillison.net
- Hacker News discussion: "I vibe coded and shipped an app in three days. It got hacked. Twice." (2 Jun 2025). news.ycombinator.com
- Hacker News discussion: "Replit's CEO apologizes after its AI agent wiped a company's code base" (22 Jul 2025). news.ycombinator.com
- Hacker News discussion: "Hacking Moltbook" (2 Feb 2026). news.ycombinator.com




