Semgrep developed metavariable analysis to support several metavariable inspection techniques that are difficult to express with existing rules, but have “simple” binary classifier behavior. Currently, this syntax supports two analyzers:Documentation Index
Fetch the complete documentation index at: https://docs.semgrep.dev/llms.txt
Use this file to discover all available pages before exploring further.
redos and entropy.
ReDoS
redos analyzer uses known RegEx anti-patterns to determine if the target expression is potentially vulnerable to catastrophic backtracking.
Entropy
true if a metavariable has high entropy, or randomness, relative to the English language.