A pattern rule flags a call that looks dangerous wherever it appears. A taint rule flags it only when attacker-controlled data reaches it, which is how injection flaws (CWE-89 SQL injection, CWE-78 OS command injection and the like) are told apart from the same call fed a constant. Taint analysis can still miss flows that pass through code it cannot see, and it can report a flow a human knows is safe.
How TrustIvan relates to it
TrustIvan's first-party SAST ruleset includes taint rules that follow web request input to SQL, shell, file, network, HTML and deserialization sinks. The SAST rules pages say which rules are taint rules; the count is on the catalogue's static analysis page. Static analysis is off until an operator turns it on.
Related terms
- SAST (static application security testing) Static application security testing (SAST) analyzes an application's own source code, bytecode or binaries for security weaknesses without executing it, such as injection, unsafe deserialization or disabled certificate checks.
- CWE (Common Weakness Enumeration) The Common Weakness Enumeration (CWE) is a community catalogue, maintained by MITRE, of types of software and hardware weakness, each with a stable number such as CWE-79 (cross-site scripting) or CWE-798 (hard-coded credentials).
- OWASP Top 10 The OWASP Top 10 is a regularly updated awareness document from the Open Worldwide Application Security Project that ranks ten categories of web application security risk, such as A01 Broken Access Control and A03 Injection in the 2021 edition.
- Reachability analysis Reachability analysis is the practice of determining whether a known vulnerability in a dependency can actually be exercised by an application, for example because the vulnerable function is called on a path the application executes.
On the platform: Code Security. Checks: SAST rules. All glossary terms