Socket
Book a DemoInstallSign in
Socket

vibe-guard

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vibe-guard

██ Vibe-Guard Security Scanner - 25 essential security rules to catch vulnerabilities before they catch you! Zero dependencies, instant setup, works everywhere, optimized performance. Detects SQL injection, XSS, exposed secrets, CSRF, CORS issues, and mor

1.1.5
latest
Source
npmnpm
Version published
Weekly downloads
81
710%
Maintainers
1
Weekly downloads
 
Created
Source

██ Vibe-Guard Security Scanner

Security Scanner - Zero dependencies, instant setup, works everywhere. Optimized performance for security scanning. Current ruleset: 25 essential security rules.

npm version Downloads (total) License

🚀 Quick Start

# Install globally
npm install -g vibe-guard

# Scan your project
vibe-guard scan .

# Learn about security concepts
vibe-guard learn xss-detection

# Try with demo files
vibe-guard demo

Learning Security

Vibe-Guard is more than a scanner, it's an educational tool that teaches you about web security:

Understanding Vulnerabilities

XSS (Cross-Site Scripting):

// ❌ Vulnerable code
app.get('/user', (req, res) => {
  const userInput = req.query.name;
  res.send('<h1>Hello ' + userInput + '</h1>'); // XSS!
});

// ✅ Secure code
app.get('/user', (req, res) => {
  const userInput = req.query.name;
  res.send('<h1>Hello ' + escapeHtml(userInput) + '</h1>');
});

SQL Injection:

// ❌ Vulnerable code
const query = 'SELECT * FROM users WHERE id = ' + userId; // SQL injection!

// ✅ Secure code
const query = 'SELECT * FROM users WHERE id = ?';
db.query(query, [userId]);

Exposed Secrets:

// ❌ Vulnerable code
const API_KEY = 'sk-1234567890abcdef'; // Exposed in code!

// ✅ Secure code
const API_KEY = process.env.API_KEY; // Environment variable

Security Best Practices

  • Input Validation - Always validate and sanitize user input
  • Output Encoding - Encode output to prevent XSS
  • Parameterized Queries - Use prepared statements for SQL
  • Environment Variables - Never hardcode secrets
  • Security Headers - Implement proper HTTP security headers

Security Rules

Vibe-Guard detects 25 types of vulnerabilities:

  • Authentication & Authorization: Missing authentication, broken access control
  • Input Validation: SQL injection, XSS, unvalidated input
  • Data Protection: Exposed secrets, hardcoded sensitive data
  • Configuration: Insecure configuration, missing security headers
  • Session Management: Insecure session handling
  • Error Handling: Information disclosure through errors
  • File Operations: Directory traversal, insecure file uploads
  • Dependencies: Insecure dependencies, outdated packages
  • AI/ML Security: AI-generated code validation, prompt injection
  • Modern Threats: CSRF, CORS issues, insecure logging

Use Cases

CI/CD Integration:

# GitHub Actions
- name: Security Scan
  run: vibe-guard scan . --format sarif --output-file security-report.sarif

Pre-commit Hook:

# .git/hooks/pre-commit
#!/bin/sh
vibe-guard scan . || exit 1

Educational Tool:

# Learn about security concepts
vibe-guard learn sql-injection
vibe-guard learn xss-detection

# Practice with demo files
vibe-guard demo

Installation

NPM:

npm install -g vibe-guard

Homebrew:

brew install devjosef/tap/vibe-guard

Direct Download:

# Linux
curl -L https://github.com/Devjosef/vibe-guard/releases/latest/download/vibe-guard-linux-x64 -o vibe-guard
chmod +x vibe-guard

# macOS
curl -L https://github.com/Devjosef/vibe-guard/releases/latest/download/vibe-guard-macos-x64 -o vibe-guard
chmod +x vibe-guard

# Windows
curl -L https://github.com/Devjosef/vibe-guard/releases/latest/download/vibe-guard-windows-x64.exe -o vibe-guard.exe

Documentation

🤝 Community

Join us in making the web more secure:

  • Learn: vibe-guard learn [topic] - Understand security concepts
  • Demo: vibe-guard demo - Try with example vulnerabilities
  • Stats: vibe-guard stats - See your security impact
  • Discuss: GitHub Discussions
  • Report: GitHub Issues
  • Star: GitHub Repository

Why Vibe-Guard?

Built for developers who code fast and need security that keeps up:

  • Zero dependencies - Lightweight and fast
  • 25 security rules - Comprehensive coverage
  • Cross-platform - Works everywhere
  • Educational - Learn while you scan
  • OWASP aligned - Industry best practices
  • Developer-friendly - Simple CLI interface

Impact

Every scan makes the web a little more secure:

  • 600+ total downloads on NPM
  • 25 security rules covering modern threats
  • Cross-platform support (Linux, macOS, Windows)
  • Zero dependencies for maximum compatibility
  • Educational focus - teaching security concepts

License

MIT License - see LICENSE for details.

Built for the greater good, like curl for security scanning.

Keywords

security

FAQs

Package last updated on 03 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.