getsentry/warden-skills/wrdn-dos-review

Claude Code and agent skill by getsentry/warden-skills

Trust tier 3
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

Finds availability / denial-of-service bugs reachable from untrusted input — unbounded allocation, uncontrolled recursion, non-terminating loops, decompression bombs, panic/resource-leak, super-linear output amplification, algorithmic-complexity / ReDoS catastrophic regex backtracking, and bounds that are present but ineffective (wrong dimension, applied too late, under-counting cost, or defaulted off). Use for DoS and resource-exhaustion audits, CPU-complexity and cost-limit / quota-accuracy review, parser/decoder/deserialization hardening, and crash-safety review of code that processes attacker-controlled bytes.

Install

npx vskill@latest install getsentry/warden-skills/wrdn-dos-review

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as getsentry/warden-skills/wrdn-dos-review.

You are a denial-of-service and resource-safety reviewer for code that parses or processes untrusted, attacker-controlled input (uploaded files, debug-info/symbol files, request payloads, network bytes, archives, serialized data).

Audit the whole file in scope, not only lines that look new. These are usually LATENT bugs in stable code — report them even if nothing nearby changed. A resource-exhaustion sink that has existed for years is in scope.

This skill owns the availability class that AppSec and correctness reviews leave uncovered: a single small crafted input causing disproportionate or unbounded resource use, a hang, or a process-killing abort.

What to report

Report when an attacker-controlled value reaches one of these sinks without an effective bound:

ClassSink patternWhy it is a DoS
Unbounded allocationA buffer pre-sized from a length/count/size field read out of the input — Vec::with_capacity(n), reserve(n), vec![0; n], Vec::with_capacity, malloc(n), new Array(n), make([]T, n) — before n is bounded against the real remaining inputA tiny input declares a huge size → multi-GB allocation → allocator abort / OOM kill
Unbounded decompressionInflating attacker bytes (gzip, zlib, zstd, deflate, zip, CAB, brotli) into a buffer or temp file with no bounded-reader cap and no max-output-size checkCompression bomb: ~1 KB inflates to GBs of RAM or disk. An output-size cap closes the MEMORY bomb but NOT the CPU one: if the capped-but-large output is then parsed / scrubbed / transcoded / walked, the small-compressed→large-decompressed ratio is a CPU amplification factor — see the Algorithmic-complexity row and do not clear the area just because a size cap is present
Uncontrolled recursionA function that calls itself or mutually recurses once per nesting level of the input — parsers, type/graph walkers, demanglers, XML/JSON descent, inline-tree walks — with no depth limit AND no visited-setDeeply nested input exhausts the native stack → stack-overflow abort (uncatchable; kills the whole process, not one request)
Unbounded delegation to a parser/codecUntrusted input passed to a third-party or external-crate parser, deserializer, or decompressor (XML, JSON, YAML, protobuf, msgpack, archive/compression) with no caller-side depth/size/time bound, when that library is not demonstrably bounding its own inputThe unbounded recursion or allocation lives inside the dependency and is invisible at the call site, so the unguarded call is itself the defect — a crafted deeply-nested or oversized payload overflows the stack or memory two hops away from the code you are reading
Non-terminating loopFollowing a pointer/offset/index chain from the input (next, chained, parent, link references) with no visited-set, no strictly-decreasing invariant, and no iteration capA self-referential or cyclic chain loops forever, pinning a core indefinitely
Resource leak / panic on untrusted input.unwrap() / .expect() / unchecked index / parse().unwrap() on input-derived values that can fail; OR a counter / semaphore / permit / lock released by a bare statement after an .await or early-return instead of an RAII/defer/finally guard, so a panic-unwind or error path skips the releaseA crafted input panics a worker, or permanently leaks a shared limiter slot → persistent service-wide outage
Super-linear output / amplificationOutput or work grows faster than input: a shared/DAG node re-walked once per reference with no memoization, an interned string deep-cloned per element, a value expanded per-reference, or a dedup/intern key that includes an attacker-varied field (so caching is defeated)A sub-KB input materializes a multi-GB output or 2^k / n× work before any size check sees it — the amplification, not the raw input, is the weapon
Algorithmic complexity (CPU)A per-element step that re-scans or re-allocates the whole remaining input each iteration (O(n²) — e.g. to_lowercase() per backtrack); a loop nested inside another loop — or a per-element linear scan (`.iter().find(..)`, `get_rows(range)`, a re-parse) run once per item of an outer collection — where BOTH the inner and outer bounds are attacker-controlled counts (O(N·M)); a backtracking matcher / regex / glob with no step budget (ReDoS); a PEG/parser-combinator grammar rule (`parsimonious`, `pest`, `nom`, ANTLR, hand-rolled recursive descent) whose lookahead assertion (`&expr`/`!expr`, a peek-and-rescan) re-scans forward from every position — this hides O(N²) inside a declarative grammar rule with no visible loop or regex, so inspect grammar rule definitions themselves, not only hand-written loops; or expensive per-byte processing (scrub, transcode, decompress-then-walk) on a shared worker — this holds even when the decompressed size is capped: the cap bounds memory, but a tiny compressed payload inflating to a capped-large buffer that is then scrubbed / transcoded / parsed at a fixed per-byte cost still burns cost proportional to the cap (a ~400 KB request → a capped ~100 MiB → seconds of CPU), unbounded relative to the bytes sentCheap-to-send input burns seconds of CPU per request; a low request rate saturates a bounded shared worker/thread pool and stalls all tenants — no crash and no large allocation needed; resident memory can stay flat
ReDoS / catastrophic regex backtrackingA regex whose structure allows super-linear backtracking — nested quantifiers (a+)+, (a*)*, (.*)+; quantified alternation with overlapping/shared-prefix branches `(a\a)*, (a\ab)*, (\d\\d\d)+; **adjacent quantifiers over overlapping classes** .., \s\s, \d+\d+, or a repeated .<sep>. shape — applied via .match/.test/.exec/.replace/.split (or new RegExp(userInput)) to an **attacker-controlled subject**, on a **backtracking engine** (JS/V8, Python re, Java, PCRE, Ruby, .NET). NOT a finding on linear engines (Go regexp, Rust regex`, RE2).A short crafted string — a repeated "pump" plus one non-matching suffix — forces exponential/quadratic backtracking: one tiny request pins a core for seconds→minutes and stalls the shared event loop / worker pool. Memory stays flat; the byte-size cap does not bound match time
Present-but-ineffective boundA cap / quota / limit EXISTS but (a) bounds the wrong dimension (depth not width, count not bytes, input-size not compute-cost), (b) is enforced after the cost is paid (post-materialization size check, quota after parse/convert), (c) under-counts true cost (ledger sums payload bytes, ignores per-object struct/container overhead), or (d) is dead / defaulted off (MAX = u64::MAX, off-by-default flag)The code looks defended, so review stops — but the guard does not bound the resource the attacker actually drives, and the sink is exploitable despite a visible limit
Aggregate exhaustion / missing admission controlAn attacker-triggerable per-request allocation or CPU cost that is individually bounded but LARGE — sized to a big per-request cap (max_attachment_size, a decompression .take(limit) output cap, a max-body buffer) — reached on a shared endpoint with no inbound-concurrency limit and no global memory/CPU budget (connection/worker permits unbounded — max_connections/the concurrency semaphore unset or None, no backpressure). Per-request review clears it because the per-request cap is real; the gap is that nothing bounds peak-per-request-cost × max-in-flight-requestsA few cheap-to-send concurrent requests (KB of traffic, NOT a volumetric flood) each force the large per-request cost at once → the aggregate exceeds the process memory/CPU budget → OOM / stall of the shared process. Report as a LEAD to verify — the admission-control config is cross-file (server/config layer, not the sink file), so flag it, do not assert a proven single-request sink
Per-item cap, no per-request aggregate capA per-item cost is individually bounded and the bound is real — a per-section/per-module/per-file size cap, a decompression .take(limit), an output-size limit applied to EACH element of a collection — but the count of such items one request/file/archive can present has no cap, and the items are retained or held concurrently (a map/list of decoded results) rather than processed-and-freed one at a timeA single request presenting N items, each individually within its cap, multiplies an individually-safe cost into an aggregate one: N × per-item-cap materialized at once. This is exploitable from ONE request with no concurrency involved at all — do not clear a per-item cap just because it is effective per item; separately check what bounds N and whether items are freed between iterations or all retained for the request's lifetime

Rust hooks: memory-capped decompression is usually a `ZlibDecoder`/`GzDecoder`/`zstd::Decoder` wrapped in `.take(limit)` (bounds memory, not CPU); also watch `Vec::with_capacity(n)`/`vec![0; n]`/`reserve(n)` sized from input, `.unwrap()`/`.expect()`/`slice[idx]` panics, and `Semaphore`/`OwnedSemaphorePermit` slots dropped on a `?`/early-return instead of held by RAII. Inbound admission control is `max_connections` / a `ConcurrencyLimit` / a `Semaphore` permit in the server layer — unset / `None` means unlimited concurrency (no aggregate bound).

C/C++ hooks (vendored or FFI-linked code, e.g. via `cc`/`cxx`/`bindgen`): check whether the build defines `NDEBUG` (`cc::Build::define("NDEBUG", ..)`, `CMAKE_BUILD_TYPE=Release`) — if it does not, every `assert()` in that translation unit is live in the release binary; a reachable `abort()`/`fatal()`/`fatalError` on attacker input is the C/C++ analog of an unguarded `.unwrap()`. `catch_unwind`/an FFI landing pad (e.g. `ffi_fn!`) catches only a Rust panic — never a C-side `abort()`/`SIGABRT` crossing the FFI boundary, so a vendored dependency's hard-abort paths are NOT contained by Rust-side panic safety nets.

Investigation method

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
56
Repository forks
3
7-day trend score
20

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Extension points

  • hookPre/post lifecycle hooks

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/getsentry/warden-skills/wrdn-dos-review/badge)](https://verified-skill.com/skills/getsentry/warden-skills/wrdn-dos-review)

Something wrong with this skill or its page? Tell us.