sighthound
Tree-sitter based static application security testing (SAST) scanner
TLDR
SYNOPSIS
sighthound [options] <ROOTDIR> [LANGUAGE] [RULESPATH]
DESCRIPTION
Sighthound is a fast, AST-aware static vulnerability scanner. It supports pattern matching ("search" mode) and taint tracking ("taint" mode) across many languages using Tree-sitter parsers. Rules are written in RON and bundled by default for common languages (Python, JavaScript/TypeScript, Java, PHP, C#, Go, Ruby, HTML/Django templates).It can run in parallel, produces text/JSON/CSV/SARIF output, and supports custom rule packs.
PARAMETERS
--taint-analysis
Enable taint (source → sink) analysis in addition to or instead of pattern search.--output-format text|json|csv|sarif
Choose report format (default text). SARIF 2.1.0 is suitable for GitHub Code Scanning.--help
Show full option list.Language and custom rules path are optional positional arguments after the root directory.
CAVEATS
- Some runtime-only or heavily dynamic issues will be missed.- Multi-file taint is supported but may need tuning for complex codebases.- C/C++ and Razor (`.cshtml`) are not currently supported.- Best used as part of a broader security program.
SEE ALSO
semgrep(1)
