Secure Your AI-Powered Installs: Introducing `secure-install` for VibeSafe MCP!

By Justin Mendez on 5/13/2025

Product Updates

Never Trust a Hallucinated Package Again: secure-install for VibeSafe MCP is Here!

AI coding assistants are transforming the way we build software, accelerating development and unlocking new potentials. However, this speed can introduce new risks. What happens when your AI agent confidently suggests installing an npm package that doesn't exist, is a cleverly disguised malicious package (typosquatting/slopsquatting), or is simply a hallucination? The consequences can range from wasted time to severe security breaches.

At VibeSafe, we're committed to making your AI-powered development workflow not just faster, but safer. That's why we're thrilled to announce a powerful new tool for the VibeSafe MCP Server: secure-install!

What is secure-install?

secure-install is a new callable function within the VibeSafe MCP Server framework. When your AI coding agent (like Cursor) decides to install an npm package, it can now invoke secure-install before the actual npm install command is executed. This tool acts as a crucial gatekeeper, analyzing package metadata to flag potentially suspicious or non-existent packages, effectively preventing your agentβ€”or youβ€”from installing them blindly.

It's designed to combat:

  • Typosquatting/Slopsquatting: Catching packages with names deceptively similar to legitimate ones.
  • AI Hallucinations: Preventing attempts to install packages that your AI agent might have invented.
  • Brand New Risky Packages: Flagging packages that are too new or have too little community validation to be trusted implicitly.

How secure-install Protects Your Workflow

Leveraging the robust checks inspired by our vibesafe install CLI command, the secure-install MCP tool performs several heuristic analyses on the target npm package before installation:

  • πŸ†• Package Age: Is the package suspiciously new? Packages published very recently (e.g., within the last month) are flagged, as they might be quickly registered to exploit an AI hallucination or a new vulnerability trend.
  • πŸ“‰ Download Count: Does the package have an extremely low download count? Very few downloads (e.g., less than a configurable threshold like 50 last month) can be a red flag for obscurity or a malicious new entry.
  • πŸ“– README Presence: Is there a proper README file? Missing or placeholder READMEs often indicate a low-effort or potentially suspicious package.
  • πŸ“œ License Field: Is a license specified? Most legitimate open-source packages include one. Its absence can be a warning sign.
  • πŸ”— Repository URL: Is there a link to a source code repository or homepage? A lack of transparency here can also be a signal.

If secure-install detects any of these warning signs, it can alert the AI agent (and by extension, the user), allowing for an informed decision before any potentially harmful code is introduced to your project.

Key Benefits for Your AI-Assisted Development

  • πŸ›‘οΈ Enhanced Supply Chain Security: Directly mitigates the risk of installing compromised or fake npm packages.
  • πŸ€– AI Safety Net: Provides a critical validation layer for packages suggested or automatically installed by AI coding assistants.
  • ⏱️ Proactive Protection: Identifies risks before installation, saving you from potential headaches and security incidents down the line.
  • πŸ’» Seamless Integration: As part of the VibeSafe MCP Server, secure-install works smoothly within your existing AI-powered IDE workflow.
  • 😌 Peace of Mind: Code faster and smarter with your AI assistant, knowing that VibeSafe is helping to watch your back on package installations.

How Your AI Agent Uses secure-install

Conceptually, when your AI agent (e.g., in Cursor) determines a need to install a package like express or some-new-utility:

  1. Instead of directly running npm install some-new-utility, the agent first calls the secure-install function from the VibeSafe MCP Server with some-new-utility as an argument.
  2. The VibeSafe MCP Server executes the secure-install logic, analyzing the package against the npm registry.
  3. If the package passes the checks, secure-install signals success, and the agent can proceed with the actual npm install.
  4. If warnings are raised, secure-install returns this information, allowing the agent (and you) to decide whether to abort or proceed with caution.

This interaction happens quickly and efficiently, adding a layer of security without significantly disrupting your flow.

Another Powerful Tool in the VibeSafe OSS Stack

secure-install joins a growing list of capabilities offered by the VibeSafe MCP Server, all designed to empower developers and their AI partners to code securely. It complements other tools like secret-scan, vuln-scan, and config-scan, making the VibeSafe ecosystem an indispensable part of your DevSecOps toolkit.

Get Started with secure-install!

If you're already using the VibeSafe MCP Server, ensure it's updated to the latest version to access the secure-install tool. If you're new to VibeSafe MCP, now is the perfect time to integrate it into your AI-powered IDE!

We're excited to hear your feedback on secure-install! How is it improving your workflow? What other security tools would you like to see your AI agent leverage?

Let's continue to build a more secure development future, together. Ship fast, stay safe!

Quick Start

npm i -g vibesafe
vibesafe scan