Aegis is a lightweight VS Code extension designed to analyze PHP source code for critical security vulnerabilities in real-time, such as SQL Injection and AI Prompt Injection.
Features
- Real-time Static Analysis: Scans your PHP files instantly upon saving or modifying code.
- SQL Injection Detection: Spots unsafe string concatenations inside raw SQL queries (
SELECT,INSERT,UPDATE,DELETE). - Prompt Injection Defense: Detects potentially vulnerable LLM prompt compositions paired with unsanitized user inputs (
$_GET,$_POST). - One-Click Quick Fixes (Code Actions): Press
Ctrl + .on any highlighted warning to automatically secure your queries with PDO Prepared Statements or sanitize prompt inputs usinghtmlspecialchars.
Installation (Local VSIX)
- Download the
.vsixpackage. - Open VS Code, go to the Extensions tab (
Ctrl + Shift + X). - Click on the three dots (
...) in the top right corner of the extensions panel. - Select Install from VSIX... and choose the
aegis-0.0.1.vsixfile.
Technologies Used
- TypeScript
- VS Code Extension API
- Node.js
- Regex-based Security Tokenization