XploitScan for VS Code
Find security problems in your code as you write it. The extension scans each file when you save it and lists what it finds in VS Code's Problems panel.
Install from the Visual Studio Marketplace, or open the Extensions view in VS Code (Cmd+Shift+X / Ctrl+Shift+X), search for "XploitScan", and click Install.
What it does
- Scans a file every time you save it. Scanning on open is available in settings.
- Lists findings in the Problems panel (Cmd+Shift+M / Ctrl+Shift+M), each linking to the rule's explanation at xploitscan.com/rules.
- Shows a count of findings for the current file in the status bar, next to which rule set is running.
- Scans the saved files in your project, skipping lockfiles, source maps, minified bundles, images, fonts and files over 1 MB.
It does not give a letter grade. It lists findings only. For a grade, run the CLI (npx xploitscan@latest scan .) or use the website scanner.
Commands (Cmd+Shift+P / Ctrl+Shift+P)
- XploitScan: Scan Current File
- XploitScan: Scan Workspace: scans the documents you have open. For a whole repository, use the CLI.
- XploitScan: Clear Diagnostics
- XploitScan: Enter API Key / Remove API Key
- XploitScan: Show Plan: which rules are running, and why.
Free rules and paid rules
Without an API key, the extension runs the free rules bundled with it. With an API key from a paid XploitScan plan, it downloads the paid rules and runs them locally. If it can't download them, for example when you're offline, it keeps using the paid rules it downloaded within the last 7 days; after that it falls back to the free rules and tells you. Create a key in Settings → API Keys. See pricing for which plans include API keys.
Settings
| Setting | Default | What it does |
|---|---|---|
| xploitscan.scanOnSave | on | Scan when you save |
| xploitscan.scanOnOpen | off | Scan when you open a file |
| xploitscan.severityThreshold | low | Hide findings below this severity |
| xploitscan.showStatusBar | on | Show the status-bar items |
Privacy
Scans run inside VS Code on your machine, and the extension doesn't upload your source code. Without an API key, the extension doesn't connect to XploitScan's servers. With an API key, it connects only to verify the key and download the paid rules. See the privacy policy.