open-sast-ai
v0.0.11
Published
AI-powered Static Application Security Testing
Readme
Open SAST AI
A powerful Static Application Security Testing (SAST) tool that uses OpenAI to analyze code changes for potential security vulnerabilities.
Features
- Analyzes changed files in your git repository
- Uses OpenAI's models to identify potential security issues
- Provides detailed security analysis with severity levels and recommended fixes
- Easy to integrate into your development workflow
Usage
You can run the tool directly without installation using npx and supplying your own OpenAPI key:
OPENAI_API_KEY=your-api-key-here npx open-sast-aiFor comparing changes against a specific branch (defaults to 'master' if not specified):
OPENAI_API_KEY=your-api-key-here COMPARE_TO=main npx open-sast-aiDevelopment
Install dependencies:
yarn installConfiguration
Create a .env file in the root directory with your OpenAI API key:
OPENAI_API_KEY=your-api-key-here
COMPARE_TO=branch-name # Optional: Compare changes against a specific branch (default: 'master')Usage
Run the security scan on your changed files:
yarn startThe tool will:
- Detect changed files in your git repository
- Send the changes to OpenAI for security analysis
- Display the results in your terminal
Security Analysis
The tool checks for various security concerns including:
- Security vulnerabilities
- Potential injection points
- Authentication/Authorization issues
- Data exposure risks
- Cryptographic failures
- Security misconfigurations
- Insecure design patterns
- Software and data integrity failures
- Security logging and monitoring failures
- Server-side request forgery (SSRF)
License
ISC
