Command Palette

Search for a command to run...

Back to skills
skill № 92389

dos

This skill should be used when the user asks to "check for denial of service", "analyze availability risks", "find DoS vulnerabilities", or mentions "denial…

FreeNo executable scripts
florianbuetowby florianbuetow★ 22 GitHub stars

Install dos in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

About this skill

Denial of Service Analysis

Analyze source code for denial of service threats where attackers can disrupt or degrade service availability. Maps to STRIDE D -- violations of the Availability security property.

Supported Flags

Read ../../shared/schemas/flags.md for the full flag specification. This skill supports all cross-cutting flags including --scope, --depth, --severity, --format, --fix, --quiet, and --explain.

Framework Context

Read ../../shared/frameworks/stride.md, specifically the D - Denial of Service section, for the threat model backing this analysis. Key concerns: resource exhaustion (CPU, memory, disk, network), algorithmic complexity attacks, application crashes, zip bombs.

Workflow

1. Determine Scope

Parse flags and resolve the target file list per the flags spec. Filter to files handling external input processing:

  • API endpoints and route handlers (especially public/unauthenticated ones)
  • File upload and processing handlers
  • Search and query endpoints
  • WebSocket handlers and long-lived connections
  • Message queue consumers and event processors
  • Cron jobs and batch processors
  • Middleware configuration (body parsers, rate limiters)
  • Regular expressions applied to user input
  • Image/video/document processing pipelines

2. Analyze for Denial of Service Threats

For each in-scope file, apply the Analysis Checklist below. At --depth standard, examine resource consumption patterns in each file. At --depth deep, trace input from entry points through processing chains to identify amplification points, unbounded operations, and cascading failure paths.

3. Report Findings

Output findings per ../../shared/schemas/findings.md using the DOS ID prefix (e.g., DOS-001). Set references.stride to "D" on every finding.

Analysis Checklist

Work through these questions against the scoped code. Each "yes" may produce a finding.

  1. Missing rate limiting -- Are public-facing endpoints (login, search, signup, API) exposed without rate limiting or throttling middleware? Check route definitions for absence of rateLimit, throttle, @rate_limit, or API gateway quotas. Auth endpoints are especially critical -- brute force attacks are both a spoofing and DoS vector.
  2. Unbounded input size -- Are request body, file upload, or query parameter sizes unconstrained? Look for missing bodyParser.json({ limit: }), absent MAX_CONTENT_LENGTH, file upload handlers without size caps, or missing Content-Length checks. Multipart form handlers that buffer entire uploads into memory are high risk.
  3. ReDoS patterns -- Do regular expressions use nested quantifiers or overlapping alternations on user input? Search for regex patterns like (a+)+, (a|a)*, (\w+\s*)+, (.*a){x}, or ([a-zA-Z]+)* applied to request data. These cause exponential backtracking. Test suspicious patterns with a ReDoS analyzer.
  4. Algorithmic complexity -- Are user inputs fed into operations with super-linear worst-case complexity? Look for nested loops over user-controlled collections, quadratic string building (repeated concatenation in loops), unbounded recursion on user data, or hash collision-prone data structures.
  5. Uncontrolled resource allocation -- Can user input control how much memory, disk, or CPU is allocated? Look for array/buffer creation sized by request parameters, unbounded SELECT without LIMIT, pagination without maximum page size, or new Array(req.query.size).
  6. Zip/decompression bombs -- Are compressed files (zip, gzip, brotli, tar) decompressed without checking the expanded size or compression ratio? Look for unzip, gunzip, decompress, inflate, extractall calls without size monitoring, ratio limits, or file count caps.
  7. Missing timeouts -- Are external HTTP calls, database queries, or subprocess executions missing timeout configuration? Look for requests.get without timeout=, fetch without AbortController, database connections without statement_timeout, subprocess.run without timeout.
  8. Single point of failure -- Does the application crash entirely on unhandled exceptions? Check for missing global error handlers, uncaught promise rejections crashing the Node.js process (unhandledRejection), or process.exit / os._exit in error paths that kill the entire service.
  9. Synchronous blocking in async paths -- Are CPU-intensive or I/O-blocking operations running on the main event loop (Node.js, Python asyncio)? Look for fs.readFileSync, crypto.pbkdf2Sync, large JSON.parse, image processing, or PDF generation on the event loop without worker offloading.
  10. Unbounded fan-out -- Can a single request trigger an unbounded number of downstream operations (API calls, database queries, notifications, emails)? Look for loops over user-provided arrays that make externa
Full SKILL.md on GitHub

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

FAQ

What does the dos skill do?

This skill should be used when the user asks to "check for denial of service", "analyze availability risks", "find DoS vulnerabilities", or mentions "denial of service" or "DoS" in a security context. Maps to STRIDE category D.

How do I install the dos skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the dos skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare dos with