Insomnia SAST for VS Code
Catch hardcoded secrets & code vulnerabilities before they leave your laptop.
Plugin home · SDLC pipeline · Manifest ▶ See it in action
InstallIn VS Code (recommended)Open Extensions (
On first scan the extension auto-downloads the matching Prefer the standalone CLI? (same engine, for CI/CD & the terminal)
Debian / Ubuntu — signed apt repo
Single-binary download (Fedora / Arch / Alpine / air-gapped)
Then run a scan anywhere:
Other editorsJetBrains (PyCharm / PhpStorm / WebStorm / GoLand / IntelliJ) and Visual Studio 2022 plugins are on the plugin page — same engine, same results. What it does
One engine, everything coveredMulti-language SAST + taint (16 languages), secrets with live key validation, dependency/SCA CVEs, container & OS-package CVEs, IaC misconfig, CMS advisories, and web-shell detection — exported as SARIF / JSON / HTML. See the full coverage & comparison → Commands (
|
| Command | Action |
|---|---|
Insomnia SAST: Scan… |
Pick a scope — file / open tabs / folder / project / changed |
Insomnia SAST: All Issues |
Open the dashboard (filter, search, group, dismiss) |
Insomnia SAST: Scan Current File |
Scan the active editor file (also on the right-click menu) |
Insomnia SAST: Mark as False Positive |
Dismiss a finding so it won't show again |
Insomnia SAST: Restore All False Positives |
Bring back everything you've dismissed |
Insomnia SAST: Pause / Resume Auto-Scan |
Stop / restart automatic scanning of opened & saved files |
Insomnia SAST: Enable Push Protection |
Install the git pre-push hook |
Insomnia SAST: Disable Push Protection |
Remove the hook (only if managed by this extension) |
Insomnia SAST: Preview Push Guard |
Run the gate now, report pass/block |
Insomnia SAST: Download / Update Scanner Binary |
Force a fresh SHA-256-verified engine download |
Insomnia SAST: Clear Findings |
Empty the Problems list |
Settings
Two independent axes — what to look for (Mode) and which files to cover (Scope) — and the
interactive scan and the push gate each have their own, so you can run a quick secrets-only scan while you
work but force a full repo scan before every push.
| Setting | Default | Meaning |
|---|---|---|
insomniaSast.language |
auto |
UI language: auto or en/ru/zh-cn/uk/tr/kk/es/de/fr. |
insomniaSast.binaryPath |
"" |
Path to sast/insomnia-sast(.exe). Empty = auto-detect. |
insomniaSast.autoDownloadBinary |
true |
Download the OS-matched engine from insom.ai (SHA-256 verified) if none is found locally. |
insomniaSast.manifestUrl |
https://insom.ai/api/plugin/manifest |
Per-OS binary manifest (filenames + SHA-256). |
insomniaSast.downloadBaseUrl |
https://insom.ai/latest/sast/ |
Base URL the binary is fetched from. |
insomniaSast.incrementalCache |
true |
Hash scanned files and skip unchanged ones on re-scan. |
insomniaSast.failOn |
high |
Push is blocked at/above this severity. |
insomniaSast.scanMode |
full |
Interactive: full (secrets+vulns+CVEs) or secrets-only (fast). |
insomniaSast.scanScope |
open-tabs |
Interactive: workspace / changed / open-tabs. |
insomniaSast.pushScanMode |
full |
Push gate: full or secrets-only. |
insomniaSast.pushScanScope |
workspace |
Push gate: workspace (full code) or changed (pushed commits only). |
insomniaSast.scanOnOpen |
true |
Scan & highlight a file the moment you open it. |
insomniaSast.scanOnSave |
true |
Re-scan a file on every save. |
insomniaSast.scanOnStartup |
true |
Scan open tabs once when the window opens. |
insomniaSast.codeLens |
true |
Inline hint above each flagged line (severity + rule + one-line fix). |
insomniaSast.highlightLines |
true |
Line background + scrollbar marker on flagged lines. |
insomniaSast.excludeGlobs |
[] |
Extra globs to skip (node_modules, .git, dist, vendor are always skipped). |
insomniaSast.autoScanDebounce |
400 |
Quiet period (ms) after a save/open before auto-scanning. |
insomniaSast.scanTimeoutSeconds |
180 |
Abort a single scan after N seconds (0 = no timeout). |
insomniaSast.pythonPath |
python |
Interpreter for the sast_cli.py source fallback. |
insomniaSast.cliScriptPath |
"" |
Path to sast_cli.py (fallback). Empty = workspace root. |
Want to stop continuous scanning? Flip
scanOnOpen/scanOnSaveoff, or click Pause Auto-Scan (sidebar / status bar) to disable all of it at once. After changingpushScanMode/pushScanScope/failOn, re-run Enable Push Protection to regenerate the hook.
How the scanner is located
insomniaSast.binaryPathif setdist_sast/sast(.exe)in the workspace- A previously auto-downloaded copy (extension global storage)
python sast_cli.py(workspace root orcliScriptPath)- Auto-download the OS-matched build from insom.ai (SHA-256 verified)
sast/insomnia-sastonPATH
insom.ai/en/plugin ·
insom.ai/en/sdlc
Free · same engine as the Insomnia CI pipeline · SHA-256 published in the manifest