gen_evil
Generate an adversarial string that pumps a regex pattern and then fails to match, forcing worst-case backtracking to uncover ReDoS vulnerabilities.
Instructions
Generate an adversarial string that pumps pattern and then fails to match, forcing maximal backtracking. Returns the evil string and whether it fails to match (a timeout counts as failing -- it's the vulnerability).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| engine | No | python | |
| qlimit | No | ||
| pattern | Yes | ||
| timeout_ms | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||