๐ Vibe Security AI - A professional CLI tool for security analysis using Claude 4
Project description
๐ 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 ๐ก๏ธ
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vibe_security_ai-1.0.1.tar.gz.
File metadata
- Download URL: vibe_security_ai-1.0.1.tar.gz
- Upload date:
- Size: 14.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
baae86cc0cbc6245cf9f9f17fb3bef29e982eb9d9f80bb3b77271879afa9963c
|
|
| MD5 |
0d05d8e77ba6127a139caf57f312db7f
|
|
| BLAKE2b-256 |
25a07f611f47f3e48d79dfed6264c095ce3cfae0e551f59d17245b62f15f6598
|
File details
Details for the file vibe_security_ai-1.0.1-py3-none-any.whl.
File metadata
- Download URL: vibe_security_ai-1.0.1-py3-none-any.whl
- Upload date:
- Size: 11.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db08fd5b6fb5ff4c21b56d99edefb0f056cc231504b128545da6074500946b05
|
|
| MD5 |
70bb0d9511336e381cc6cc6fdc88a294
|
|
| BLAKE2b-256 |
58a6e8ab847c71acb1d083e64b2ee3ff6fdf3ed4302f146e3409dc0ebf4bae33
|