Installation
CodePhreak can be installed via pip or from source. Additional security tools are automatically installed.
Requirements
- โข Python 3.9 or higher
- โข pip (Python package manager)
- โข Git (for source installation)
- โข macOS, Linux, or Windows (WSL recommended)
Quick Install (pip)
# Install from PyPI
pip install codephreak
# Verify installation
codephreak --version
codephreak doctorInstall from Source
# Clone the repository
git clone https://github.com/singularity99/codephreak-security-auditor
cd codephreak-security-auditor
# Create virtual environment (recommended)
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install in development mode
pip install -e .
# Install security tools
./install.shBundled Security Tools
CodePhreak bundles several security tools. The installer automatically sets these up:
Python Tools (pip)
- โข Semgrep - Static analysis
- โข Bandit - Python security linter
- โข Checkov - IaC scanning
- โข Prowler - Cloud security
- โข pip-audit - Dependency audit
- โข detect-secrets - Secret detection
Binary Tools
- โข Trivy - Vulnerability scanner
- โข GitLeaks - Secret scanner
- โข Syft - SBOM generator
- โข Grype - Image scanner
- โข Hadolint - Dockerfile linter
- โข Nuclei - DAST scanner
Manual Tool Installation
If the automatic installer doesn't work, install tools manually:
# macOS (Homebrew)
brew install trivy gitleaks syft grype hadolint nuclei
# Ubuntu/Debian
curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin
# Verify tools are available
codephreak doctorVerify Installation
Run the doctor command to check all tools are properly installed:
$ codephreak doctor
CodePhreak Security Auditor - System Check
โโโโโโโโโโโโโโโโโโโโโณโโโโโโโโโโโโโ
โ Tool โ Status โ
โกโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฉ
โ semgrep โ โ v1.45.0 โ
โ bandit โ โ v1.7.6 โ
โ trivy โ โ v0.48.0 โ
โ gitleaks โ โ v8.18.0 โ
โ syft โ โ v0.98.0 โ
โ grype โ โ v0.73.0 โ
โ hadolint โ โ v2.12.0 โ
โ prowler โ โ v5.0.0 โ
โ nuclei โ โ v3.1.0 โ
โโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโ
โ
All tools availableTroubleshooting
Tool not found
If a tool shows as missing, ensure it is in your PATH or install it manually using the commands above.
Permission denied
On Linux, you may need to run chmod +x install.sh before running the installer.
Python version error
CodePhreak requires Python 3.9+. Check your version with python --version.