๐ Vibe Security AI - AI-Powered Security Analysis CLI
A professional command-line tool that leverages Claude 4 Sonnet to perform comprehensive security analysis on your code. Get detailed security reports with actionable recommendations to improve your code's security posture.
โจ Features
- ๐ค AI-Powered Analysis: Uses Claude 4 Sonnet for intelligent security vulnerability detection
- ๐ Comprehensive Reports: Generates detailed markdown reports with risk assessments
- ๐ฏ Multi-Language Support: Analyzes 20+ programming languages
- ๐ Professional CLI: Beautiful, rich terminal interface with progress indicators
- โก Fast & Efficient: Quick analysis with detailed feedback
- ๐ง Flexible Output: Custom output paths and automatic naming
- ๐ Structured Analysis: Executive summaries, detailed findings, and remediation roadmaps
- ๐ Privacy-Focused: Local report generation with secure API communication
๐ Quick Start
Installation
pip install vibe-security-ai
Setup
Configure your Anthropic API key (Get one here):
vibe-security-ai --setup
Analyze Your Code
vibe-security-ai path/to/your/code.py
That's it! Your security report will be generated in the security_reports/ folder.
๐ฆ Installation Options
Option 1: PyPI (Recommended)
pip install vibe-security-ai
Option 2: Development Installation
git clone https://github.com/colesmcintosh/vibe-check.git
cd vibe-check
pip install -e .
โ๏ธ Configuration
API Key Setup
Choose your preferred method:
Interactive Setup (Recommended)
vibe-security-ai --setup
Environment Variable
export ANTHROPIC_API_KEY="your_api_key_here"
.env File
echo "ANTHROPIC_API_KEY=your_api_key_here" > .env
๐ฏ Usage
Basic Commands
# Analyze a file
vibe-security-ai app.py
# Custom output location
vibe-security-ai app.js --output custom_report.md
vibe-security-ai app.js -o custom_report.md
# Specify API key directly
vibe-security-ai script.php --api-key sk-your-key-here
# Get help
vibe-security-ai --help
# Check version
vibe-security-ai --version
Real-World Examples
# Web application security audit
vibe-security-ai src/auth/login.py
# Frontend component analysis
vibe-security-ai components/UserProfile.tsx
# API endpoint security check
vibe-security-ai api/routes/users.js
# Database query analysis
vibe-security-ai models/user.sql
# Shell script security review
vibe-security-ai scripts/deploy.sh
๐ง Supported Languages
Vibe Security AI analyzes these file types:
| Category | Extensions |
|---|---|
| Web Frontend | .js, .ts, .jsx, .tsx, .html, .css, .scss, .vue, .svelte |
| Backend | .py, .java, .c, .cpp, .cs, .php, .rb, .go, .rs, .swift |
| Mobile | .kt, .scala, .dart, .m, .mm |
| Scripts | .sh, .bash, .zsh, .sql, .pl, .lua |
| Other | .r, .nim, .zig |
Note: Any text file can be analyzed, with confirmation for unrecognized extensions.
๐ Report Structure
Each security analysis includes:
๐ Executive Summary
- Overall security posture assessment
- Risk level classification (Critical/High/Medium/Low)
- Summary of findings by severity
๐ Detailed Security Findings
Critical Issues ๐จ
- Immediate security threats requiring urgent attention
- Potential for data breaches or system compromise
High Priority โ ๏ธ
- Important vulnerabilities to address soon
- Significant security risks
Medium Priority ๐
- Issues for next development cycle
- Security improvements and hardening
Low Priority ๐ก
- Best practice recommendations
- Code quality and maintainability improvements
๐ Analysis Details
For each finding:
- Clear vulnerability description
- Exact code location (file and line numbers)
- Risk assessment and impact analysis
- Step-by-step remediation instructions
- Code examples showing fixes
โ Security Recommendations
- Industry best practices
- Prevention strategies
- Compliance considerations (OWASP, CWE)
- Prioritized action plan
๐ฅ๏ธ CLI Output Examples
Successful Analysis
๐ VIBE SECURITY AI
Security Analysis Tool powered by Claude 4
๐ Analyzing: src/auth/login.py
๐ Report will be saved to: security_reports/login_security_report.md
๐ Analyzing code for security vulnerabilities...
โ
Analysis complete!
๐ Security report saved to: security_reports/login_security_report.md
โฑ๏ธ Analysis took: 2.34 seconds
๐ Found: 2 Critical, 1 High, 3 Medium, 2 Low priority issues
Sample Report Header
# Security Analysis Report
**File Analyzed:** `src/auth/login.py`
**Analysis Date:** 2024-01-15 14:30:22
**Analysis Duration:** 2.34 seconds
**Tool:** Vibe Security AI
---
## ๐ฏ Executive Summary
**Security Posture:** HIGH RISK โ ๏ธ
**Total Issues Found:** 8
- ๐จ Critical: 2
- โ ๏ธ High: 1
- ๐ Medium: 3
- ๐ก Low: 2
This analysis identified several critical security vulnerabilities...
๐ ๏ธ Troubleshooting
Common Issues
| Issue | Solution |
|---|---|
| "Anthropic API key not found" | Run vibe-security-ai --setup or set ANTHROPIC_API_KEY environment variable |
| "File not found" | Check file path and permissions |
| "API Error" | Verify internet connection and API key validity |
| "Permission denied" | Check file read permissions and output directory write access |
Getting Help
# Show detailed help
vibe-security-ai --help
# Check version
vibe-security-ai --version
# Test your setup
vibe-security-ai --setup
๐๏ธ Development
Project Structure
vibe-security-ai/
โโโ vibe_check/
โ โโโ __init__.py # Package metadata
โ โโโ cli.py # Main CLI application
โโโ pyproject.toml # Modern Python packaging
โโโ requirements.txt # Dependencies
โโโ README.md # This file
โโโ LICENSE # MIT License
โโโ CHANGELOG.md # Version history
โโโ PUBLISHING.md # Publishing guide
Dependencies
- click (>=8.1.0,<9.0.0): CLI framework
- anthropic (>=0.34.0,<1.0.0): Claude API client
- rich (>=13.0.0,<14.0.0): Terminal formatting
Building from Source
# Clone repository
git clone https://github.com/colesmcintosh/vibe-check.git
cd vibe-check
# Install in development mode
pip install -e .
# Run tests
python test_package.py
# Build package
python -m build
๐ Security & Privacy
- Secure Communication: All API calls use HTTPS encryption
- No Data Storage: Your code is not stored by the tool or Anthropic
- Local Reports: All analysis reports are saved locally only
- API Privacy: Review Anthropic's Privacy Policy for API data handling
- Open Source: Full source code available for security review
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ค Contributing
Contributions are welcome! Here are some areas for improvement:
- ๐ Additional programming language support
- ๐ Custom security rule definitions
- ๐ CI/CD pipeline integrations
- ๐ Batch file processing
- โ๏ธ Configuration file support
- ๐จ Custom report templates
How to Contribute
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
๐ Support
- ๐ Bug Reports: GitHub Issues
- ๐ Documentation: GitHub Repository
- ๐ฌ Questions: Open a GitHub Discussion
๐ท๏ธ Version History
See CHANGELOG.md for detailed version history.
๐ Acknowledgments
Made with โค๏ธ for secure coding practices
Vibe Security AI - Because security shouldn't be an afterthought ๐ก๏ธ
Metadata
Release files for vibe-security-ai 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| vibe_security_ai-1.0.2.tar.gz | 14.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| vibe_security_ai-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 25.4 kB
Release files / vibe_security_ai-1.0.2.tar.gz
| Download URL | vibe_security_ai-1.0.2.tar.gz |
|---|---|
| Size | 14.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bba3b98138a2a77c78988ad25c697ed4b1a035b07161f56ee45d8ef61cf710ab
|
|
BLAKE2b-256 checksum How to use checksums |
17d14af01f278609f940d0bb1d010ada30b6f70c5a1a1db9bbaea3dfced83c42
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.10
|
Release files / vibe_security_ai-1.0.2-py3-none-any.whl
| Download URL | vibe_security_ai-1.0.2-py3-none-any.whl |
|---|---|
| Size | 11.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3e3569ca4c51c7753615598a455dc363bbcb4305fea2a79b0a82cf2d76b8a396
|
|
BLAKE2b-256 checksum How to use checksums |
dc6aa3f83b1777013fb9956fde3e6877aed8f4f32bc495b267a113749385572d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.10
|