Skip to main content

Module sql_firewall

Module sql_firewall 

Source
Expand description

SQL Firewall — AST-level SQL injection detection.

Unlike regex-based approaches, this module parses SQL into an Abstract Syntax Tree using sqlparser and performs semantic analysis to detect injection patterns, dangerous functions, system table access, and tautology-based attacks.

Structs§

SqlAnalysis
Result of analyzing a SQL query for security threats.

Enums§

SqlViolation

Functions§

analyze_query
Analyze a SQL query string for injection patterns and security threats.