denial-of-service

denial-of-service is a cursor rule for Cursor from davidmatousek/tachi. It costs 43 tokens per session (1,664 once invoked), scanned A, original, Apache-2.0.

A security rule for detecting attacks that make a system slow, unavailable, or unable to process requests. It covers resource exhaustion, flooding, expensive algorithms, and failures that spread through dependencies.

In plain words
What is it for?
Use it to review processes, databases, and data flows for rate-limit, capacity, locking, dependency, and resource-consumption risks.
Why use it?
It helps find ways attackers can overwhelm processing, memory, storage, bandwidth, connections, or other shared resources.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is output_schema: ../../../schemas/finding.yaml.

Good fit Use it to review processes, databases, and data flows for rate-limit, capacity, locking, dependency, and resource-consumption risks.

Compare 6 cursor rules from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/davidmatousek/tachi
agentmods
npx agentmods add rules/davidmatousek/tachi/denial-of-service

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for denial-of-service

README.md
[![agentmods](https://agentmods.dev/badge/rules/davidmatousek/tachi/denial-of-service/github.svg)](https://agentmods.dev/rules/davidmatousek/tachi/denial-of-service)
Your own site
<a href="https://agentmods.dev/rules/davidmatousek/tachi/denial-of-service"><img src="https://agentmods.dev/badge/rules/davidmatousek/tachi/denial-of-service/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for denial-of-service

Your own site · 80×15
<a href="https://agentmods.dev/rules/davidmatousek/tachi/denial-of-service"><img src="https://agentmods.dev/badge/rules/davidmatousek/tachi/denial-of-service.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,664 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00043 $0.01664
Opus 5 $0.00022 $0.00832
Sonnet 5 $0.00009 $0.00333
Haiku 4.5 $0.00004 $0.00166

Measured 8d ago against content hash 31993413d744, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

denial-of-service scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

adapters/cursor/rules/denial-of-service.mdc · 138 lines

How it starts

The opening of the file, as written. The whole thing — 138 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Metadata

category: stride
threat_class: D
dfd_targets: [Process, Data Store, Data Flow]
owasp_references:
  - "OWASP Application Denial of Service Cheat Sheet"
  - "OWASP API Security 2023 API4 — Unrestricted Resource Consumption"
  - "CWE-400: Uncontrolled Resource Consumption"
  - "CWE-770: Allocation of Resources Without Limits or Throttling"
  - "CWE-502: Deserialization of Untrusted Data"
  - "MITRE ATT&CK T1498: Network Denial of Service"
  - "MITRE ATT&CK T1499: Endpoint Denial of Service"
output_schema: ../../../schemas/finding.yaml

Denial of Service Threat Agent

Purpose

Detects threats where an attacker degrades or eliminates system availability — through resource exhaustion, flooding, algorithmic complexity exploitation, or cascading dependency failures. Denial of service undermines availability guarantees, causing service outages, degraded performance, or data loss from overwhelmed storage. This agent targets Processes (where compute or memory exhaustion halts operations), Data Stores (where storage saturation or lock contention blocks access), and Data Flows (where bandwidth saturation or connection pool exhaustion prevents communication).

Detection Scope

Targeted DFD Element Types

  • Process: API endpoints, background workers, data processing pipelines, authentication services, webhook receivers
  • Data Store: Databases, caches, message queues, file storage, search indexes
  • Data Flow: Network connections, API calls, message bus channels, file upload streams, WebSocket connections

Patterns and Indicators

Resource Exhaustion

  • Endpoints accepting unbounded input sizes (request body, file uploads, query parameters)
  • Missing request size limits on API gateways or reverse proxies
  • Memory-intensive operations triggered by unauthenticated requests
  • CPU-intensive computations (regex, compression, encryption) on user-controlled input
  • Thread pool exhaustion from long-running synchronous operations

Algorithmic Complexity Attacks

  • Regular expressions vulnerable to ReDoS (catastrophic backtracking)
  • Hash collision attacks on hash table implementations
  • XML parsing vulnerable to billion laughs (entity expansion) or quadratic blowup
  • JSON parsing without depth or size limits
  • Recursive algorithms on user-controlled data without depth bounds

Read the full file on GitHub · 138 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 138 lines · 43 tokens per session scan A 31993413d744

Subscribe to this mod's changes

denial-of-service is a cursor rule published in the GitHub repository davidmatousek/tachi (92 stars, last pushed 29d ago), licensed Apache-2.0. It adds 43 tokens to every session and 1,664 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.