Onlock Security Copilot helps you catch risky code in VS Code before it reaches review. It scans the current file as you type or save, highlights suspicious lines, explains the issue in plain language, and suggests a safer fix.
What It Does
Scans the current file automatically while you work
Highlights risky lines and adds editor diagnostics
Explains findings in plain language
Suggests safer code you can review and apply
How To Use It
Install the extension.
Open a code file in VS Code.
Type or save to run a scan.
Open a finding to read the explanation and review the suggested fix.
What It Commonly Flags
SQL injection
Command injection
Hardcoded secrets
Unsafe eval or exec
Path traversal
XSS, SSRF, and open redirects
Important Notes
The extension uses the hosted Onlock API for scanning, explanations, and fix suggestions.
The first request can be slow if the hosted service is waking up.