🔒 Security Diagnostics

Real-time vulnerability detection as you code. Automatic issue highlighting with quick fixes.

How It Works

The extension analyzes your Python, TypeScript, and JavaScript files in real-time, highlighting potential security issues with squiggles and offering quick fixes.

Detected Security Issues

PatternRiskDescription
os.system()🔴 HighArbitrary command execution
eval()🔴 HighCode injection risk
exec()🔴 HighDynamic code execution
subprocess(shell=True)🟡 MediumShell injection risk
pickle.load()🟡 MediumDeserialization attacks
Hardcoded credentials🔴 HighSecret exposure
SQL concatenation🟡 MediumSQL injection risk

Example

import os

user_input = input("Enter command: ")

# ⚠️ Warning: os.system() can execute arbitrary commands
os.system(user_input)  # 🔴 Yellow squiggle appears

# ✅ Safe alternative (offered as quick fix):
import subprocess
subprocess.run(["ls", "-la"], check=True)

Quick Fixes

Click the lightbulb (💡) when hovering over a warning to see fixes: