Python static analysis rules
41 Python rules as of 2026-11-19, 16 of them taint rules that follow web request input to a dangerous call. They run once static analysis is turned on.
41 checks
- SQL injection (Python)
PythonSeverity: High
trustowl-python-sql-injection - SQL injection from request input (Python)
PythonSeverity: High
trustivan-python-taint-sql-injection - Command injection from request input (Python)
PythonSeverity: High
trustivan-python-taint-command-injection - Path traversal from request input (Python)
PythonSeverity: High
trustivan-python-taint-path-traversal - SSRF from request input (Python)
PythonSeverity: High
trustivan-python-taint-ssrf - XSS from request input (Python)
PythonSeverity: High
trustivan-python-taint-xss - Deserialization from request input (Python)
PythonSeverity: High
trustivan-python-taint-deserialization - Template injection from request input (Python)
PythonSeverity: High
trustivan-python-taint-template-injection - Code injection from request input (Python)
PythonSeverity: High
trustivan-python-taint-code-injection - Open redirect from request input (Python)
PythonSeverity: Medium
trustivan-python-taint-open-redirect - YAML unsafe load (Python)
PythonSeverity: High
trustivan-python-yaml-unsafe-load - Subprocess shell true (Python)
PythonSeverity: Medium
trustivan-python-subprocess-shell-true - Weak hash (Python)
PythonSeverity: Medium
trustivan-python-weak-hash - TLS verification disabled (Python)
PythonSeverity: High
trustivan-python-tls-verification-disabled - SSL unverified context (Python)
PythonSeverity: High
trustivan-python-ssl-unverified-context - Flask debug enabled (Python)
PythonSeverity: High
trustivan-python-flask-debug-enabled - JWT verification disabled (Python)
PythonSeverity: High
trustivan-python-jwt-verification-disabled - Insecure random secret (Python)
PythonSeverity: Medium
trustivan-python-insecure-random-secret - Tempfile mktemp (Python)
PythonSeverity: Medium
trustivan-python-tempfile-mktemp - XML external entities (Python)
PythonSeverity: Medium
trustivan-python-xml-external-entities - Tarfile extractall (Python)
PythonSeverity: Medium
trustivan-python-tarfile-extractall - Django CSRF exempt (Python)
PythonSeverity: Medium
trustivan-python-django-csrf-exempt - Weak cipher (Python)
PythonSeverity: High
trustivan-python-weak-cipher - SSH host key not verified (Python)
PythonSeverity: High
trustivan-python-ssh-host-key-not-verified - Bind all interfaces debug server (Python)
PythonSeverity: Medium
trustivan-python-bind-all-interfaces-debug-server - Eval non literal (Python)
PythonSeverity: Medium
trustivan-python-eval-non-literal - LDAP injection from request input (Python)
PythonSeverity: High
trustivan-python-taint-ldap-injection - XPath injection from request input (Python)
PythonSeverity: High
trustivan-python-taint-xpath-injection - Regex injection from request input (Python)
PythonSeverity: Medium
trustivan-python-taint-regex-injection - NoSQL injection from request input (Python)
PythonSeverity: High
trustivan-python-taint-nosql-injection - Mass assignment from request input (Python)
PythonSeverity: Medium
trustivan-python-taint-mass-assignment - Django mark safe non literal (Python)
PythonSeverity: Medium
trustivan-python-django-mark-safe-non-literal - Flask hardcoded secret key (Python)
PythonSeverity: High
trustivan-python-flask-hardcoded-secret-key - JWT hardcoded secret (Python)
PythonSeverity: High
trustivan-python-jwt-hardcoded-secret - Weak RSA key (Python)
PythonSeverity: Medium
trustivan-python-weak-rsa-key - CORS wildcard credentials (Python)
PythonSeverity: High
trustivan-python-cors-wildcard-credentials - Ai sdk use (Python)
PythonSeverity: Low
trustivan-python-ai-sdk-use - Llm output to sink from request input (Python)
PythonSeverity: High
trustivan-python-taint-llm-output-to-sink - Llm prompt injection system from request input (Python)
PythonSeverity: Medium
trustivan-python-taint-llm-prompt-injection-system - Llm tool shell execution (Python)
PythonSeverity: Medium
trustivan-python-llm-tool-shell-execution - Llm unbounded output tokens (Python)
PythonSeverity: Low
trustivan-python-llm-unbounded-output-tokens
Other languages: C# rules, Go rules, Java rules, JavaScript rules, Kotlin rules, PHP rules, Ruby rules, TypeScript rules. All static analysis (SAST) checks.