Trail of Bits Semgrep Scan skill
A planned, approved Semgrep scan with SARIF output, from the Trail of Bits team.
Official vendorby Trail of BitsChecked November 18, 2026
Install Trail of Bits Semgrep Scan free
Leave your email and the install steps open right here: one prompt to paste into your AI tool. Works for all 151 skills.
From the security firm Trail of Bits, this skill runs Semgrep the way an auditor would. It detects your languages, shows the exact rulesets for your approval, runs them in batches with telemetry off, merges the results into SARIF and lists anything that did not get scanned.
Who is Trail of Bits Semgrep Scan for?
- Security engineers
- Developers
- Auditors
What's inside Trail of Bits Semgrep Scan
Unlike instruction-only skills, this one ships code: a 786-line shell script runs the scans and a Python script merges results, beside a 273-line SKILL.md. It needs Semgrep (a scanner for known bug patterns), jq and uv on your computer.
When it switches on
It switches on when you ask for a vulnerability scan, a Semgrep audit, bug hunting or static analysis (checking code without running it). It is not for compiled binaries, projects that already run Semgrep automatically, or writing new rules.
What the instructions cover
- A hard stop: Claude shows the exact rulesets, target and mode, then waits for your yes
- Two modes: run all, or important only, keeping security findings of medium or high confidence and impact
- Extra rule sets from Trail of Bits, 0xdea and Decurity whenever your languages match
- Files up to 20 MB get scanned (Semgrep's own default skips anything over 1 MB without saying so), and any larger file is named in the report
- Listing scans that failed or were skipped, so a partial scan never reads as complete
- Since October 23, 2026, a report note when your project has no .semgrepignore file: Semgrep's defaults then skip vendored, minified, build and test folders, so a clean result does not cover them
What it needs
- Semgrep (Pro optional, for cross-file analysis)
- jq (a JSON tool), git and uv (a Python runner) with Python 3.11 or newer
| File | What it is |
|---|---|
SKILL.md | 273 lines: principles, the five steps, output layout, success checklist |
workflows/scan-workflow.md | 478 lines: the five steps in detail, including the report notes on skipped files |
references/ | Ruleset catalog by language and the important-only filters |
scripts/ | run-scans.sh, merge_sarif.py (339 lines, output in SARIF, a standard findings format) and its tests |
Watch out: Unless you name a folder, results land in static_analysis_semgrep_1 inside the folder you run it from, and rule sets cloned during a run must be deleted afterwards, or they pile up in your workspace.
How to use Trail of Bits Semgrep Scan: which prompts work?
Scan this codebase for vulnerabilities with SemgrepRun only the important Semgrep security rules on this repoDo a static analysis pass before our security reviewHow do you install Trail of Bits Semgrep Scan?
Skills follow the open Agent Skills standard, so this one is not tied to one company. Pick the AI tool you use. Not sure? The first tab covers most of them in one step. New to this? Our guide on how to install Claude skills walks through it, and Anthropic's plugin guide covers the Claude app.
Install this skill for me so it works in every project: run `npx skills add https://github.com/trailofbits/skills/tree/main/plugins/static-analysis/skills/semgrep -g -y` in my terminal. If Node.js is missing, tell me how to install it first. When it's done, confirm the skill is installed and tell me how to start using it.Or do it yourself:
One command installs the skill: it finds the AI tools on your computer and asks which ones should get it.
npx skills add https://github.com/trailofbits/skills/tree/main/plugins/static-analysis/skills/semgrep -gYou need Node.js installed (free, from nodejs.org). The -g flag makes the skill available in every project.
Good to know: The static-analysis plugin also includes CodeQL and SARIF parsing skills.
Unlock the install steps
Free. Leave your email once to open the install steps for all 151 skills, and get the best new skills each month.
How did we check Trail of Bits Semgrep Scan?
On November 8, 2026 we read all 9 files in the skill's folder, starting with its 273-line SKILL.md. The section on what's inside comes from those files. Its license is CC-BY-SA-4.0. Its files were last changed in October 2026. We have not run it on a test task yet.
Not a developer? You can still use Trail of Bits Semgrep Scan: you say in plain words what should work, Claude Code does the technical part and shows you what it checked. Working that way, from the first install to reading the result, is what our Claude Code course teaches (early access).
More skills worth a look
- Trail of Bits Differential ReviewSecurity review of a PR or diff: blast radius, regressions and untested changes
- Trail of Bits Supply Chain Risk AuditorAudit dependencies for advisories, abandoned packages and risky install scripts
- Trail of Bits Agentic Actions AuditorFind prompt injection risks in GitHub Actions that run Claude or other AI agents