SAST Hook (Static Analysis)
SAST scans tool handler source code for vulnerabilities. Scans are triggered when handler code changes (detected via source hashing) and results are cached by handler hash.Enabling the SAST Hook
Snippets on this page focus on SAST/DAST options. Keep base middleware options (
policy, signer, otel, sec0) in your actual configuration.SAST Scan Hook (onScan)
The onScan function receives:
SAST Findings
Semgrep Integration
Sec0 includes a built-in Semgrep adapter:DAST Hook (Dynamic Analysis)
DAST scans tool servers at runtime for vulnerabilities. Scans target a sandbox URL and can generate dynamic block rules with TTL.Enabling the DAST Hook
DAST Scan Hook (onScan)
The onScan function receives: