Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Security intelligence for code analysis. Detects SQL injection, XSS, CSRF, authentication issues, crypto failures, and more. Actions: scan, analyze, fix, audit, check, review, secure, validate, sanitize, protect. Languages: JavaScript, TypeScript, Python, PHP, Java, Go, Ruby. Frameworks: Express, Django, Flask, Laravel, Spring, Rails. Vulnerabilities: SQL injection, XSS, CSRF, authentication bypass, authorization issues, command injection, path traversal, insecure deserialization, weak crypto, s
.claude/skills/aiskillstore-vibe-security/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-05 | ✗→✓ | ▲ Improved | 98% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 324% | 0% |
| case-14 | ✗→✓ | ▲ Improved | 143% | 0% |
| case-15 | ✗→✓ | ▲ Improved | 130% | 0% |
| case-17 | ✗→✓ | ▲ Improved | 247% | 0% |
Comprehensive security scanner and code analyzer for identifying vulnerabilities across multiple languages and frameworks.
Check if Node.js is installed:
bashnode --version
If Node.js is not installed, install it based on user's OS:
macOS:
bashbrew install node
Ubuntu/Debian:
bashsudo apt update && sudo apt install nodejs npm
Windows:
powershellwinget install OpenJS.NodeJS
We recommend using these AI models with Vibe Security for optimal security vulnerability detection and code fixing:
> Note: If you're not using one of the recommended models above, consider upgrading for better security analysis results. Lower-tier models may miss subtle vulnerabilities or provide less accurate fix suggestions.
When user requests security work (scan, analyze, fix, audit, check, review vulnerabilities), follow this workflow:
Extract key information from user request:
Advanced Analysis (Recommended):
bash# AST-based semantic analysis (90% fewer false positives) python3 .claude/skills/vibe-security/scripts/ast_analyzer.py "<file>" # Data flow analysis (tracks tainted data from sources to sinks) python3 .claude/skills/vibe-security/scripts/dataflow_analyzer.py "<file>" # CVE & dependency vulnerability scanning python3 .claude/skills/vibe-security/scripts/cve_integration.py . # Supply chain security (malicious packages, typosquatting) python3 .claude/skills/vibe-security/scripts/cve_integration.py . --ecosystem npm # Infrastructure as Code security grep -r "publicly_accessible.*=.*true" . --include="*.tf" grep -r "privileged:.*true" . --include="*.yaml"
Quick Pattern Scanning:
bash# Use search utility for specific patterns python3 .claude/skills/vibe-security/scripts/search.py "sql-injection" --domain pattern python3 .claude/skills/vibe-security/scripts/search.py "javascript" --domain pattern --severity critical
Critical (Fix immediately):
High (Fix soon):
Medium (Fix in sprint):
Low (Technical debt):
ML-Based Fix Engine:
bash# Get intelligent fix recommendations with test generation python3 .claude/skills/vibe-security/scripts/fix_engine.py \ --type sql-injection \ --language javascript \ --code "db.query(\`SELECT * FROM users WHERE id = \${userId}\`)" # Output includes: # - Fixed code with context-aware corrections # - Detailed explanation of the fix # - Auto-generated security test # - Additional recommendations # - Confidence score (0-100%)
Auto-Fix with Rollback Support:
bash# Apply fix with automatic backup python3 .claude/skills/vibe-security/scripts/autofix_engine.py apply \ --file src/database.js \ --line 45 \ --type sql-injection \ --original "db.query(\`SELECT * FROM users WHERE id = \${userId}\`)" \ --fixed "db.query('SELECT * FROM users WHERE id = $1', [userId])" # Test your changes npm test # Rollback if needed (safe to experiment!) python3 .claude/skills/vibe-security/scripts/autofix_engine.py rollback # View fix history python3 .claude/skills/vibe-security/scripts/autofix_engine.py history
Systematic Manual Fixes:
Multiple Report Formats:
bash# Beautiful HTML report with charts and statistics python3 .claude/skills/vibe-security/scripts/reporter.py scan-results.json \ --format html \ --output security-report.html # SARIF format for GitHub Code Scanning integration python3 .claude/skills/vibe-security/scripts/reporter.py scan-results.json \ --format sarif \ --output results.sarif # CSV for spreadsheet analysis python3 .claude/skills/vibe-security/scripts/reporter.py scan-results.json \ --format csv \ --output vulnerabilities.csv # JSON for CI/CD pipelines python3 .claude/skills/vibe-security/scripts/reporter.py scan-results.json \ --format json \ --output security-report.json
Uses Abstract Syntax Tree parsing for accurate vulnerability detection:
Tracks user input from sources to dangerous sinks:
Maps every vulnerability to industry standards:
Protects against malicious dependencies:
Scans cloud infrastructure configurations:
| Check Type | Detects | Example Issues | | ------------------- | ---------------------- | --------------------------------------------------- | | sql-injection | SQL/NoSQL injection | String concatenation in queries, unsanitized input | | xss | Cross-Site Scripting | innerHTML usage, unescaped output, DOM manipulation | | command-injection | OS command injection | shell=True, exec with user input | | path-traversal | Directory traversal | Unsanitized file paths, ../.. in paths | | auth-issues | Authentication flaws | Weak passwords, missing MFA, insecure sessions | | authz-issues | Authorization flaws | Missing access controls, IDOR, privilege escalation | | crypto-failures | Cryptographic issues | MD5/SHA1 usage, weak keys, insecure random | | sensitive-data | Data exposure | Logging passwords, exposing PII, hardcoded secrets | | deserialization | Unsafe deserialization | pickle, eval, unserialize on user input | | security-config | Misconfiguration | CORS, CSP, headers, error messages | | dependencies | Vulnerable packages | CVEs in npm/pip/composer packages |
javascript// ✅ SECURE: Parameterized query const user = await db.query("SELECT * FROM users WHERE id = $1", [userId]); // ❌ VULNERABLE: SQL injection const user = await db.query(`SELECT * FROM users WHERE id = ${userId}`); // ✅ SECURE: Escape output element.textContent = userInput; const clean = DOMPurify.sanitize(htmlContent); // ❌ VULNERABLE: XSS element.innerHTML = userInput; // ✅ SECURE: Input validation const email = validator.isEmail(input) ? input : null; // ❌ VULNERABLE: No validation const email = req.body.email;
python# ✅ SECURE: Parameterized query cursor.execute("SELECT * FROM users WHERE id = %s", (user_id,)) # ❌ VULNERABLE: SQL injection cursor.execute(f"SELECT * FROM users WHERE id = {user_id}") # ✅ SECURE: Password hashing import bcrypt hashed = bcrypt.hashpw(password.encode(), bcrypt.gensalt()) # ❌ VULNERABLE: Plain text user.password = password # ✅ SECURE: Safe subprocess subprocess.run(['ls', '-la', sanitized_dir]) # ❌ VULNERABLE: Command injection os.system(f'ls -la {user_dir}')
php// ✅ SECURE: Prepared statement $stmt = $pdo->prepare("SELECT * FROM users WHERE id = ?"); $stmt->execute([$userId]); // ❌ VULNERABLE: SQL injection $result = mysqli_query($conn, "SELECT * FROM users WHERE id = $userId"); // ✅ SECURE: Output escaping echo htmlspecialchars($input, ENT_QUOTES, 'UTF-8'); // ❌ VULNERABLE: XSS echo $userInput; // ✅ SECURE: Password hashing $hash = password_hash($password, PASSWORD_ARGON2ID); // ❌ VULNERABLE: MD5 $hash = md5($password);
User request: "Check my Express app for security vulnerabilities"
AI should:
bash# 1. Run security scan on the project python3 .claude/skills/vibe-security/scripts/scan.py "./src" --language javascript # 2. Analyze results by severity # Output might show: # CRITICAL: SQL Injection in src/controllers/user.js:45 # HIGH: XSS in src/views/profile.ejs:12 # MEDIUM: Missing rate limiting on /api/login # LOW: Console.log contains sensitive data # 3. Fix critical issues first # - Review src/controllers/user.js:45 # - Replace string concatenation with parameterized query # - Add input validation using validator library # 4. Fix high severity issues # - Review src/views/profile.ejs:12 # - Use <%- for HTML escaping or DOMPurify for rich content # - Implement Content Security Policy # 5. Fix medium severity issues # - Install express-rate-limit middleware # - Configure rate limiting on authentication endpoints # - Add helmet for security headers # 6. Fix low severity issues # - Remove or redact sensitive console.log statements # - Use proper logging library with log levels # 7. Generate security report python3 .claude/skills/vibe-security/scripts/report.py "./src"
bash#!/bin/bash # .git/hooks/pre-commit python3 .claude/skills/vibe-security/scripts/scan.py "." --fail-on critical
GitHub Actions:
yaml- name: Security Scan run: | python3 .claude/skills/vibe-security/scripts/scan.py "." --format json
GitLab CI:
yamlsecurity_scan: script: - python3 .claude/skills/vibe-security/scripts/scan.py "."
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | pass→pass | 7,786 | 3,832 | -51% | 1 | 1 | 0% | 1,336 | 4,164 | +212% | 0 | 0 | — |
case-02 | fail→fail | 10,773 | 8,369 | -22% | 1 | 1 | 0% | 1,007 | 4,410 | +338% | 0 | 0 | — |
case-03 | fail→fail | 11,117 | 8,474 | -24% | 1 | 1 | 0% | 1,270 | 4,419 | +248% | 0 | 0 | — |
case-04 | fail→fail | 17,211 | 9,309 | -46% | 1 | 1 | 0% | 2,513 | 4,434 | +76% | 0 | 0 | — |
case-05 | fail→pass | 12,356 | 6,805 | -45% | 1 | 1 | 0% | 1,904 | 3,762 | +98% | 0 | 0 | — |
case-06 | fail→fail | 10,289 | 11,326 | +10% | 1 | 1 | 0% | 929 | 4,118 | +343% | 0 | 0 | — |
case-07 | fail→pass | 5,834 | 1,666 | -71% | 1 | 1 | 0% | 883 | 3,745 | +324% | 0 | 0 | — |
case-08 | fail→fail | 4,193 | 5,276 | +26% | 1 | 1 | 0% | 430 | 3,776 | +778% | 0 | 0 | — |
case-09 | pass→fail | 12,472 | 5,009 | -60% | 1 | 1 | 0% | 2,042 | 4,004 | +96% | 0 | 0 | — |
case-10 | fail→fail | 12,132 | 7,404 | -39% | 1 | 1 | 0% | 2,166 | 3,814 | +76% | 0 | 0 | — |
case-11 | fail→fail | 17,514 | 5,510 | -69% | 1 | 1 | 0% | 3,071 | 3,727 | +21% | 0 | 0 | — |
case-12 | pass→pass | 12,372 | 8,092 | -35% | 1 | 1 | 0% | 2,090 | 4,293 | +105% | 0 | 0 | — |
case-13 | pass→pass | 17,184 | 8,527 | -50% | 1 | 1 | 0% | 2,275 | 4,947 | +117% | 0 | 0 | — |
case-14 | fail→pass | 9,144 | 4,152 | -55% | 1 | 1 | 0% | 1,538 | 3,739 | +143% | 0 | 0 | — |
case-15 | fail→pass | 13,231 | 10,108 | -24% | 1 | 1 | 0% | 2,086 | 4,796 | +130% | 0 | 0 | — |
case-16 | fail→fail | 12,069 | 11,997 | -1% | 1 | 1 | 0% | 2,229 | 3,891 | +75% | 0 | 0 | — |
case-17 | fail→pass | 7,634 | 4,274 | -44% | 1 | 1 | 0% | 1,073 | 3,719 | +247% | 0 | 0 | — |
case-18 | fail→pass | 17,202 | 2,855 | -83% | 1 | 1 | 0% | 2,162 | 3,976 | +84% | 0 | 0 | — |
case-19 | fail→fail | 16,379 | 9,547 | -42% | 1 | 1 | 0% | 2,046 | 3,793 | +85% | 0 | 0 | — |
case-20 | pass→pass | 5,729 | 6,691 | +17% | 1 | 1 | 0% | 410 | 3,963 | +867% | 0 | 0 | — |
case-21 | pass→pass | 7,935 | 4,971 | -37% | 1 | 1 | 0% | 1,408 | 4,395 | +212% | 0 | 0 | — |
case-22 | pass→pass | 7,739 | 7,874 | +2% | 1 | 1 | 0% | 1,430 | 4,845 | +239% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted, and 18 counted toward the lift figure. The other 4 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of +23 percentage points is the difference between those two pass rates over the 18 comparable cases. 1 case got worse with the skill loaded, and it is included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.