Algorithmic Complexity Defense
Identifies and prevents worst-case algorithmic complexity vulnerabilities like ReDoS, hash flooding, and parser amplification attacks.
This skill equips developers and security engineers with guidance to detect and neutralize algorithmic complexity attacks where minimal payloads trigger catastrophic CPU and memory consumption. It provides concrete remediation strategies for Regular Expression Denial of Service (ReDoS), hash collision floods, decompression bombs (Zip/Gzip), and XML/YAML/JSON parser amplifications (Billion Laughs, XXE). Perfect for code reviews, production post-mortems, and building secure parsers, this skill ensures systems withstand adversarial worst-case inputs at trust boundaries.
Características Principales
010 GitHub stars
02Detects catastrophic backtracking patterns (ReDoS) and guides safe regex rewriting or linear-time engine adoption
03Provides defenses against hash flooding through randomized seeding and safe collection usage
04Prevents parser amplification attacks including Zip bombs, XXE, YAML bombs, and deep JSON nesting
05Identifies quadratic string building, unbounded pagination, and GraphQL depth vulnerabilities
06Delivers a practical security review checklist for untrusted inputs and boundary parsers
Casos de Uso
01Auditing user-facing regular expressions during code reviews to prevent CPU starvation
02Diagnosing and resolving mysterious CPU spikes and timeout cascades caused by adversarial request payloads
03Securing file upload, archive extraction, and document parsing pipelines against decompression bombs