Download for MacApple silicon, macOS 14+
Skill

redos

@thejefflarson Updated 2026-07-31

Detects regex patterns vulnerable to catastrophic backtracking on crafted inputs. Use when writing regular expressions that will be applied to user- supplied input. Also invoke when compiling regexes from external configuration, building input validation patterns, or parsing untrusted strings with regex.

llmssecurityskills

Install

With your agent

Install OMGSkills skill "thejefflarson/soundcheck:.claude/skills/redos" into this agent's normal skills directory: call the OMGSkills MCP get_install_plan tool for your agent and run the script it returns (it installs only the pinned commit and verifies SKILL.md), and stop if MCP or the pin is unavailable. Do not overwrite or change existing skills without asking me.

Manual command

git clone https://github.com/thejefflarson/soundcheck /tmp/soundcheck && ln -s /tmp/soundcheck/.claude/skills/redos ~/.claude/skills/redos

From README

ReDoS Security Check (CWE-1333) What this checks Protects against Regular Expression Denial of Service where a crafted input causes catastrophic backtracking in regex engines. A single malicious string can pin a CPU core for minutes or hours, taking down the service. Vulnerable patterns Nested quantifiers applied to user input — a quantified group whose body is itself quantified produces exponential state Overlapping alternation inside repetition — alternatives that can match the same prefix multiply backtracking work Common "email" or "URL" regexes built from quantified character classes wrapped in further repetition Regexes compiled from external configuration or user input where the pattern shape itself is attacker-controlled Fix immediately Flag the vulnerable regex, explain the risk, and suggest a fix establishing these properties. Translate the principle to the language and engine of the audited file — do not echo examples from another stack. No nested quantifiers on user input.