sast — free, fast static application security testing for CI/CD. Installs a self-contained SAST engine on first run: native AST + cross-file taint across 16 languages (no external tools), secrets with live key validation, SCA, vulnerable JS libraries, CMS plugin/theme/core CVEs (WordPress/Joomla/Drupal/Magento), web-shell & malware detection, IaC; HTML/JSON/SARIF.
Project description
sast
Free, fast static application security testing for CI/CD.
sast is a tiny launcher. Installing it is instant; the first time you run it,
it downloads a self-contained SAST engine binary that matches your operating
system, verifies its checksum, and caches it. Every run after that is native
speed with no Python dependencies.
pip install sast
sast . # scan the current directory
sast ./src -f sarif -o out # write a SARIF report into ./out
sast . --fail-on high # exit non-zero on high+ findings (CI gating)
sast --help # full engine options
Coverage at a glance: 1,750+ FP-validated rules · native AST + cross-file taint on 16 languages (regex for 40+) · 230+ secret rule packs with live key validation · SCA across 8+ ecosystems + container/OS packages · ~24,000 CMS advisories · web-shell & malware signatures · IaC (Terraform/K8s/Docker/ CloudFormation) · SARIF / JSON / HTML.
Supports Linux, macOS and Windows (x86-64). On Apple Silicon the macOS binary runs under Rosetta.
Installing
pip install sast creates a sast command (Linux/macOS: <prefix>/bin/sast,
Windows: <prefix>\Scripts\sast.exe). For the command to be found, that
directory must be on your PATH. The most reliable options:
pipx install sast # recommended — isolated, always on PATH (all OSes)
or inside a virtual environment:
python -m venv .venv
# Linux/macOS:
source .venv/bin/activate
# Windows:
.venv\Scripts\activate
pip install sast
If sast is "not recognized" / "command not found" after a
pip install --user, the per-user scripts dir isn't on your PATH. Either
add it, or just run it as a module — this always works regardless of PATH:
python -m sast .
- Windows per-user scripts dir:
%APPDATA%\Python\Python3XX\Scripts - Linux/macOS per-user scripts dir:
~/.local/bin
What it scans
A single self-contained binary — no Python dependencies and no external tools shelled out (no semgrep / trivy / bandit; everything runs in-engine):
- Code vulnerabilities — a native tree-sitter AST + taint engine across
16 languages (Python, JavaScript, TypeScript, Java, Go, Ruby, PHP, C,
C++, C#, Rust, Kotlin, Scala, Swift, Lua, Shell) plus regex coverage for
40+, with intra- and cross-file taint that follows
include/require/importrelationships (source in one file → sink in another). - Secrets & API keys — entropy + 230+ vendor rule packs, with optional live validation that labels each secret validated / invalid / not validated against its provider.
- Vulnerable dependencies (SCA) — OSV / advisory matching across npm, pip,
Maven, Go, Composer, Cargo and more (covers
npm audit-style checks). - Vulnerable JS libraries — RetireJS-style detection of bundled jQuery, AngularJS, lodash, Bootstrap, Handlebars, … versions with known CVEs.
- CMS vulnerable components — WordPress / Joomla / Drupal / Magento plugins, themes and core matched against ~24,000 advisories.
- Web shells & malware — PHP / ASP(X) / JSP / shellcode signatures
(c99, r57, WSO, China Chopper, …), obfuscated payloads, reverse shells, and
suspicious double-extension uploads (
shell.php.jpg). - IaC / cloud misconfiguration — Terraform, Kubernetes, Docker, CloudFormation, …
- Output as HTML, TXT, JSON or SARIF 2.1.0 (drops straight into
GitHub code scanning), with CI exit-code gating via
--fail-on.
How it compares
Most free scanners do exactly one thing — Bandit is Python-only SAST,
Checkov is IaC-only, Gitleaks is secrets-only, Trivy is SCA/containers. The
all-in-one platforms (Semgrep, Snyk) put taint analysis, secrets and SCA behind
a paid tier. sast does the whole lot in a single free binary — no
external tools shelled out, runs offline.
| Capability | sast (Insomnia) | Semgrep | Snyk | Bandit | Checkov | Trivy | Gitleaks |
|---|---|---|---|---|---|---|---|
| Multi-language SAST + taint | ✅ 16 langs | ◑ taint = paid | ✅ | ◑ Python | ✗ | ✗ | ✗ |
| Cross-file taint (include/import) | ✅ | ◑ | ◑ | ✗ | ✗ | ✗ | ✗ |
| Secrets + live key validation | ✅ | ◑ paid | ◑ | ✗ | ✗ | ◑ | ◑ no val. |
| Dependencies / SCA (CVEs) | ✅ | ◑ paid | ✅ | ✗ | ◑ | ✅ | ✗ |
| Vulnerable JS libs (RetireJS) | ✅ | ✗ | ◑ | ✗ | ✗ | ✗ | ✗ |
| CMS CVEs (WordPress/Joomla/…) | ✅ ~24k | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ |
| Web-shell & malware detection | ✅ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ |
| IaC / cloud misconfig | ✅ | ✅ | ✅ | ✗ | ✅ | ✅ | ✗ |
| Container / OS-package CVEs | ✅ | ✗ | ✅ | ✗ | ✗ | ✅ | ✗ |
| SARIF output | ✅ | ✅ | ✅ | ◑ | ✅ | ✅ | ✅ |
| Editor plugins (VS Code/JetBrains) | ✅ | ✅ | ✅ | ✗ | ✗ | ✗ | ✗ |
| Git pre-push gate | ✅ | ◑ | ◑ | ✗ | ✗ | ✗ | ◑ |
| Single offline binary, no extra tools | ✅ | ✗ | ✗ | ✗ | ✗ | ✅ | ✅ |
| Free (no paywalled core) | ✅ | ◑ | ✗ | ✅ | ✅ | ✅ | ✅ |
✅ built-in · ◑ partial / paid tier · ✗ not offered
Reflects each tool's free/open-source offering as of mid-2026; paid platform tiers may add capabilities. In short: instead of stitching together Bandit + Gitleaks + Trivy + Checkov (and paying Semgrep/Snyk for taint + SCA), you get one free engine that covers all of it.
Editor & CI integrations
Same engine, everywhere:
- VS Code — the Insomnia SAST extension: inline hints as you type, a Vulnerabilities panel, an All Issues dashboard, mark-as-false-positive, and a git pre-push gate. Install from the VS Code Marketplace or https://insom.ai/plugin.
- JetBrains (PyCharm / PhpStorm / WebStorm / GoLand / IntelliJ) and Visual Studio 2022 — in beta.
- CI —
pip install sast && sast . -f sarif -o out --fail-on high, then uploadout/*.sarifto GitHub code scanning.
How it works
pip install sast lays down only a few KB of pure-Python launcher — no
download happens at install time (that keeps offline/CI installs reliable).
On first invocation the launcher:
- Detects your OS →
linux/macos/windows. - Fetches
https://insom.ai/static/downloads/plugin_manifest.jsonand reads itssast.<os>entry (filename + sha256 + version). - Downloads the matching binary and verifies its
sha256. - Caches it under your per-user cache directory and
execs it.
Because the engine lives on the server, new engine releases reach users without republishing the pip package.
Staying on the latest engine
After the first download the cached binary is reused for speed. At most once
per day (SAST_UPDATE_INTERVAL, default 86400 seconds) sast also asks
insom.ai whether a newer engine is published and, if so, upgrades itself
automatically. Update checks fail open — if you're offline or the server
is unreachable, the cached binary keeps working. Set SAST_UPDATE_INTERVAL=0
to pin the cached version, or run sast self-update to force the latest at
any time.
Launcher commands
| Command | What it does |
|---|---|
sast … |
Forward all args to the SAST engine |
sast self-update |
Re-download the latest engine binary |
sast self-version |
Show launcher + cached-engine versions |
sast self-where |
Print the cached binary path |
Environment variables
| Variable | Purpose |
|---|---|
SAST_MANIFEST_URL |
Override the manifest URL (staging / self-hosting) |
SAST_CACHE_DIR |
Override where the binary is cached |
SAST_UPDATE_INTERVAL |
Seconds between auto-update checks (default 86400; 0 disables) |
Default cache locations:
- Linux:
~/.cache/sast/bin - macOS:
~/Library/Application Support/sast/bin - Windows:
%LOCALAPPDATA%\sast\bin
Use in CI (GitHub Actions)
- run: pip install sast
- run: sast . -f sarif -o sarif-out --fail-on high
- uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: sarif-out # the action accepts a directory of .sarif files
sast exits non-zero when findings meet your --fail-on threshold, failing
the build.
Server-side manifest format
By default the launcher reads insom.ai's plugin_manifest.json, whose sast
section lists the latest per-OS build:
{
"sast": {
"windows": { "filename": "insomnia-sast-windows-x64.exe", "sha256": "<hex>", "version": "1.0.0", "uploaded": "<iso8601>" },
"linux": { "filename": "insomnia-sast-linux-x64", "sha256": "<hex>", "version": "1.0.0", "uploaded": "<iso8601>" },
"macos": null
}
}
filename is resolved relative to the manifest URL. The launcher also accepts
a simpler { "version", "platforms": { "<os>": { "url", "sha256" } } } shape if
you self-host via SAST_MANIFEST_URL. sha256 is enforced when present; a
null OS entry means that build isn't published yet.
© CQR Cybersecurity LLC. The sast launcher is open source; the SAST engine
binary it downloads is proprietary. See https://insom.ai.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sast-1.5.1.tar.gz.
File metadata
- Download URL: sast-1.5.1.tar.gz
- Upload date:
- Size: 15.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
50005e88ca5bec79d566f42a1991fba82068425f1d6ab2c091f1b947751bae42
|
|
| MD5 |
1937ae16d0520daa4cfd99cf5339f5f9
|
|
| BLAKE2b-256 |
a7ecfb25c687684437076de2f365b9a27d8030a34a7f3a2816f26a89281e4798
|
Provenance
The following attestation bundles were made for sast-1.5.1.tar.gz:
Publisher:
publish.yml on vulnz/sast
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sast-1.5.1.tar.gz -
Subject digest:
50005e88ca5bec79d566f42a1991fba82068425f1d6ab2c091f1b947751bae42 - Sigstore transparency entry: 1740384096
- Sigstore integration time:
-
Permalink:
vulnz/sast@0c1895bddf7a4f212ee7defdf69ab33e03197f95 -
Branch / Tag:
refs/tags/v1.5.1 - Owner: https://github.com/vulnz
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0c1895bddf7a4f212ee7defdf69ab33e03197f95 -
Trigger Event:
push
-
Statement type:
File details
Details for the file sast-1.5.1-py3-none-any.whl.
File metadata
- Download URL: sast-1.5.1-py3-none-any.whl
- Upload date:
- Size: 12.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
56209f9cf40519217082d027e7f781afc0265889494faeef3eb2e20f23b34ca9
|
|
| MD5 |
2ef00b1828ff531e5a7722e69733c9d4
|
|
| BLAKE2b-256 |
9f049cb30bb0d3323874240581b1db143705b5b9f6f4c50963294ab89b4de498
|
Provenance
The following attestation bundles were made for sast-1.5.1-py3-none-any.whl:
Publisher:
publish.yml on vulnz/sast
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sast-1.5.1-py3-none-any.whl -
Subject digest:
56209f9cf40519217082d027e7f781afc0265889494faeef3eb2e20f23b34ca9 - Sigstore transparency entry: 1740384098
- Sigstore integration time:
-
Permalink:
vulnz/sast@0c1895bddf7a4f212ee7defdf69ab33e03197f95 -
Branch / Tag:
refs/tags/v1.5.1 - Owner: https://github.com/vulnz
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0c1895bddf7a4f212ee7defdf69ab33e03197f95 -
Trigger Event:
push
-
Statement type: