On June 9, Replit launched Package Firewall, built with the supply-chain security company Socket. It blocks malicious and compromised packages from being installed into a project, even while you’re building, and it’s on by default. Replit says that since rolling out a week earlier, it had been blocking around 8,000 packages per day across builders on the platform. That count includes known-bad versions of real packages, not only hallucinated names. One of the risks behind this kind of tool has a memorable name: slopsquatting, where attackers publish packages under names that AI coding assistants tend to invent.
What slopsquatting is
When you ask an AI assistant to add a feature, it often installs open-source packages to do the heavy lifting. Most of the time it picks real, popular ones. Sometimes it suggests a package name that sounds right but doesn’t exist, or that’s one letter off from the real thing. Attackers have noticed. If they register those names and fill them with malware, the next assistant that suggests the same name installs their code.
Typosquatting, registering misspelled package names, has been around for years. What’s different now is volume. AI assistants install packages constantly, often without anyone reading the name, and builders who are new to software may not know what a suspicious package looks like.
Why this matters for vibe-coded apps
A malicious package runs with the same access as your app. During development, that can mean your machine or your cloud workspace, with your keys and code. In production, it can mean your users’ data. And because packages pull in other packages, one bad dependency can hide several layers down.
Replit’s approach is to block known-bad packages at install time, before they reach the project. That’s a good layer to have. It isn’t the only layer you need.
Slopsquatting defenses you can use on any platform
- Read the install list. Before accepting an AI change, look at which packages it added. If you don’t recognize one, look it up: weekly downloads, age, maintainer, repository link.
- Be suspicious of new and obscure packages, especially ones with names very close to popular libraries.
- Use a lockfile. Commit the lockfile so every install uses the exact versions you tested.
- Turn on dependency scanning. Most platforms and code hosts can alert you to known-vulnerable or malicious packages.
- Prefer fewer dependencies. If a package does one small thing, it may be better to write those few lines yourself.
- Keep secrets out of reach during development. Use the platform’s secret store, and don’t keep production keys in your development environment.
What to do if you find a bad package
If you discover a package you don’t trust in your project, remove it, then assume anything it could reach may be exposed. Rotate the API keys and passwords that were available in that environment, check your repository for unexpected changes, and review recent deploys. It’s tedious, but it’s far cheaper than finding out later.
A habit worth building
The most effective change is small: treat dependency changes as something to review, not something to accept automatically. When your AI assistant proposes a change, the list of new packages deserves the same attention as the code itself.
I’ve written about related habits in my vibe coded app security checklist and in why security scans are a start, not a finish.
Where this fits in finishing an app
Supply-chain hygiene is part of the last 20% of an app: the work that doesn’t show up in a demo but decides whether the app is safe to put in front of users. It’s also work that gets easier once it’s set up, because lockfiles, scanners and a review habit keep paying off with every change.
If you’ve built an app quickly and want someone to review its dependencies, secrets and release setup before real users arrive, here’s how I approach Prototype to Production. We’ll make a short list of what to fix, in order of risk.