PHP static analysis rules
34 PHP rules as of 2026-11-19, 14 of them taint rules that follow web request input to a dangerous call. They run once static analysis is turned on.
34 checks
- SQL injection from request input (PHP)
PHPSeverity: High
trustivan-php-taint-sql-injection - Command injection from request input (PHP)
PHPSeverity: High
trustivan-php-taint-command-injection - Path traversal from request input (PHP)
PHPSeverity: High
trustivan-php-taint-path-traversal - File inclusion from request input (PHP)
PHPSeverity: High
trustivan-php-taint-file-inclusion - SSRF from request input (PHP)
PHPSeverity: High
trustivan-php-taint-ssrf - XSS from request input (PHP)
PHPSeverity: High
trustivan-php-taint-xss - Deserialization from request input (PHP)
PHPSeverity: High
trustivan-php-taint-deserialization - Open redirect from request input (PHP)
PHPSeverity: Medium
trustivan-php-taint-open-redirect - LDAP injection from request input (PHP)
PHPSeverity: High
trustivan-php-taint-ldap-injection - XPath injection from request input (PHP)
PHPSeverity: High
trustivan-php-taint-xpath-injection - Code injection from request input (PHP)
PHPSeverity: High
trustivan-php-taint-code-injection - Regex injection from request input (PHP)
PHPSeverity: Medium
trustivan-php-taint-regex-injection - Template injection from request input (PHP)
PHPSeverity: High
trustivan-php-taint-template-injection - NoSQL injection from request input (PHP)
PHPSeverity: High
trustivan-php-taint-nosql-injection - SQL string concatenation (PHP)
PHPSeverity: Medium
trustivan-php-sql-string-concatenation - Weak password hash (PHP)
PHPSeverity: High
trustivan-php-weak-password-hash - Insecure random secret (PHP)
PHPSeverity: Medium
trustivan-php-insecure-random-secret - Weak cipher (PHP)
PHPSeverity: High
trustivan-php-weak-cipher - Mcrypt use (PHP)
PHPSeverity: Medium
trustivan-php-mcrypt-use - TLS verification disabled (PHP)
PHPSeverity: High
trustivan-php-tls-verification-disabled - Unserialize without allowed classes (PHP)
PHPSeverity: Medium
trustivan-php-unserialize-without-allowed-classes - XXE libxml NOENT (PHP)
PHPSeverity: High
trustivan-php-xxe-libxml-noent - Extract request data (PHP)
PHPSeverity: High
trustivan-php-extract-request-data - Hardcoded password database connection (PHP)
PHPSeverity: High
trustivan-php-hardcoded-password-database-connection - JWT hardcoded secret (PHP)
PHPSeverity: High
trustivan-php-jwt-hardcoded-secret - Laravel CSRF except all (PHP)
PHPSeverity: Medium
trustivan-php-laravel-csrf-except-all - Phpinfo call (PHP)
PHPSeverity: Medium
trustivan-php-phpinfo-call - Display errors enabled (PHP)
PHPSeverity: Medium
trustivan-php-display-errors-enabled - Cookie HttpOnly disabled (PHP)
PHPSeverity: Medium
trustivan-php-cookie-httponly-disabled - Upload original filename (PHP)
PHPSeverity: High
trustivan-php-upload-original-filename - Laravel mass assignment request all (PHP)
PHPSeverity: Medium
trustivan-php-laravel-mass-assignment-request-all - Laravel guarded empty (PHP)
PHPSeverity: Medium
trustivan-php-laravel-guarded-empty - Preg replace eval modifier (PHP)
PHPSeverity: High
trustivan-php-preg-replace-eval-modifier - CORS reflected origin (PHP)
PHPSeverity: Medium
trustivan-php-cors-reflected-origin
Other languages: C# rules, Go rules, Java rules, JavaScript rules, Kotlin rules, Python rules, Ruby rules, TypeScript rules. All static analysis (SAST) checks.