OpenSecurity Logolibsast

libsast is a generic SAST library for security engineers. Build your own static analysis tools with tree-sitter AST, regex and semgrep pattern matchers.

Starred
140
Forked
24

GitHub Docs Donate

  • Tree-sitter AST matcher for 165+ languages
  • Regex based pattern matcher
  • Semantic code search with semgrep
  • Cross-platform: Windows, macOS and Linux
  • Powers njsscan, mobsfscan and MobSF
  • Python API to write your own SAST tool

Get started

pip

pip install libsast
libsast -p /path/to/rules /path/to/source