Skill: CodeQL Security Analysis
by Trail of Bits
Trail of Bits' CodeQL skill: build databases, run taint-tracking and data-flow queries across eight languages, and model project-specific sources and sinks.
Trail of Bits' skill for writing production-quality Semgrep rules — pattern design, taint mode for data-flow bugs, and mandatory test-driven validation.
A security-engineering skill from Trail of Bits for the specific job of authoring custom Semgrep rules, as opposed to running someone else's ruleset.
Its value is less in Semgrep syntax — which a model half-knows — and more in the discipline it enforces around it. The skill lists the rationalisations that produce bad rules and rejects each one: "the pattern looks complete" still requires semgrep --test; "it matches the vulnerable case" is only half the job, because a rule that also fires on safe code destroys trust faster than no rule at all. Every rule is expected to ship with a test file covering both true and false cases before it is considered done.
It covers ordinary pattern rules, taint-mode rules for tracing untrusted data from source to sink, and rules that encode a team's own coding standards rather than a published CVE class. It deliberately hands off to the companion static-analysis skill when the task is running existing rulesets instead of writing new ones.
Worth reaching for when you have found a bug and want a detection that stops the whole class of it recurring, or when you are building an in-house ruleset and want it to hold up under review.
Once installed, ask your agent something like:
Write a Semgrep taint rule that catches user input reaching subprocess calls in this repo, with tests for both the vulnerable and the sanitised path.
The instructions your agent loads, as published by Trail of Bits.
by Trail of Bits
Trail of Bits' CodeQL skill: build databases, run taint-tracking and data-flow queries across eight languages, and model project-specific sources and sinks.
CodeQL, Semgrep and SARIF static-analysis toolkit from Trail of Bits: taint tracking, fast pattern scans and merged, deduplicated security findings for coding agents.
by Trail of Bits
Finds secrets left in memory in C, C++ and Rust — including wipes the compiler deleted — and requires IR or assembly evidence before calling one optimized away.
by Trail of Bits
Compiles cryptographic code and reads the emitted assembly for variable-time instructions, then triages which flagged operations actually touch secrets.