A VS Code extension that helps identify and fix security vulnerabilities in your code through static analysis and AI-powered code review.
- 🔍 Code Scanning: Scan selected code, entire files, or complete folders for security vulnerabilities
- 🔐 Multiple LLM Providers: Support for OpenAI, Anthropic, Google, and custom LLM providers
- 🛡️ Security Analysis: Detects various security issues including:
- Hardcoded cryptographic hashes
- Hardcoded credentials and secrets
- Insecure cryptographic implementations
- SQL injection vulnerabilities
- Cross-site scripting (XSS)
- Command injection
- Path traversal
- Insecure deserialization
- Insecure direct object references
- Security misconfiguration
- Open VS Code
- Go to the Extensions view (Ctrl+Shift+X)
- Search for "Secure Coding Assistant"
- Click Install
-
Set your preferred LLM provider in VS Code settings:
- Open Settings (Ctrl+,)
- Search for "Secure Coding Assistant"
- Select your preferred provider (OpenAI, Anthropic, Google, or Custom)
-
Add your API keys:
- Use the command palette (Ctrl+Shift+P)
- Search for "Secure Coding: Add [Provider] API Key"
- Enter your API key when prompted
- Scan Selection: Right-click selected code and choose "Secure Coding: Scan Selection"
- Scan File: Right-click a file in the explorer and choose "Secure Coding: Scan File"
- Scan Folder: Right-click a folder in the explorer and choose "Secure Coding: Scan Folder"
- Show Output: View detailed scan results in the output channel
- TypeScript/JavaScript (.ts, .js)
- Python (.py)
- Java (.java)
- C/C++ (.c, .cpp)
- Go (.go)
- Rust (.rs)
- PHP (.php)
- Ruby (.rb)
- C# (.cs)
- Swift (.swift)
- Kotlin (.kt)
- Objective-C (.m)
- Header files (.h, .hpp)
- Configuration files (.json, .yaml, .yml)
- Web files (.html, .css, .scss, .less)
- Shell scripts (.sh, .ps1, .bat)
- Visual Studio Code 1.85.0 or higher
- API keys for your chosen LLM provider(s)
secureCodingAssistant.preferredLlm: Choose your preferred LLM providersecureCodingAssistant.openai.model: Configure OpenAI modelsecureCodingAssistant.openai.systemPrompt: Customize system promptsecureCodingAssistant.openai.userPrompt: Customize user prompt
- Large files may take longer to scan
- Some complex security patterns may require manual review
- Custom LLM providers must follow OpenAI-compatible API format
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- OpenAI for GPT models
- Anthropic for Claude models
- Google for Gemini models
- VS Code team for the excellent extension API