Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/matank001/cursor-security-rulesWrote 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.
[](https://agentmods.dev/rules/matank001/cursor-security-rules/ssrf-prevention)<a href="https://agentmods.dev/rules/matank001/cursor-security-rules/ssrf-prevention"><img src="https://agentmods.dev/badge/rules/matank001/cursor-security-rules/ssrf-prevention/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.
<a href="https://agentmods.dev/rules/matank001/cursor-security-rules/ssrf-prevention"><img src="https://agentmods.dev/badge/rules/matank001/cursor-security-rules/ssrf-prevention.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00351 | $0.00351 |
| Opus 5.5 | $0.00140 | $0.00140 |
| Sonnet 5.5 | $0.00070 | $0.00070 |
| Haiku 4.5 | $0.00035 | $0.00035 |
Grade A, and why
ssrf-prevention scanned grade A with 1 finding 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 3mo 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
requests.get(request.args["url"]) Copies of this mod
2 near-identical copies found in the catalogue:
- security-global-ssrf-prevention — 94% identical, 5 lines differ
- security-global-ssrf-prevention — 94% identical, 5 lines differ
What it actually says
SSRF Prevention
These rules apply to all code that performs outbound network requests, regardless of language or framework, including generated code.
All violations must include a clear explanation of which rule was triggered and why, to help developers understand and fix the issue effectively.
Generated code must not violate these rules. If a rule is violated, a comment must be added explaining the issue and suggesting a correction.
1. Do Not Allow User Input to Control Target URLs
- Rule: Never use raw or unchecked user input as the destination for outbound HTTP requests.
- Example (unsafe):
requests.get(request.args["url"])
2. Block Access to Private/Internal IP Ranges
- Rule: Outbound requests must not be allowed to reach
localhost,127.0.0.1,169.254.0.0/16,192.168.0.0/16,10.0.0.0/8, or other internal/reserved ranges.
3. Resolve and Validate Hostnames Before Use
- Rule: Perform DNS resolution and validate that the resolved IP is in an allowed range before initiating a request.
4. Restrict Allowed Protocols and Ports
- Rule: Only allow HTTP/HTTPS protocols and known-safe ports (e.g., 80, 443). Block access to file URLs, gopher, FTP, or custom handlers.
5. Do Not Forward Authorization Headers Automatically
- Rule: Never pass internal tokens, cookies, or auth headers when proxying or forwarding outbound requests unless explicitly scoped and audited.
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.
- 3mo ago First seen · 31 lines · 351 tokens per session scan A 2a7f1d2004fa
ssrf-prevention is a cursor rule published in the GitHub repository matank001/cursor-security-rules (384 stars, last pushed 1y ago), licensed MIT. It adds 351 tokens to every session, about $0.0014 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
ssrf-prevention compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ssrf-preventionmatank001/cursor-security-rules | Cursor rule | 384 | 1y ago | MIT | A | 351 | Cursor |
| convex-cursorrules-prompt-filePatrickJS/awesome-cursorrules | Cursor rule | 41k | 6mo ago | CC0-1.0 | A | 6,270 | Cursor |
| momen-cursurrules-prompt-filePatrickJS/awesome-cursorrules | Cursor rule | 41k | 6mo ago | CC0-1.0 | A | 3,732 | Cursor |
| kotlin-ktor-development-cursorrules-prompt-filePatrickJS/awesome-cursorrules | Cursor rule | 41k | 6mo ago | CC0-1.0 | A | 2,078 | Cursor |
| kotlin-springboot-best-practices-cursorrules-prompt-filePatrickJS/awesome-cursorrules | Cursor rule | 41k | 6mo ago | CC0-1.0 | A | 1,518 | Cursor |
| nestjs-anti-hallucination-cursorrules-prompt-filePatrickJS/awesome-cursorrules | Cursor rule | 41k | 6mo ago | CC0-1.0 | A | 1,738 | Cursor |
| cloudflare-workers-hono-angular-saas-cursorrules-prompt-filePatrickJS/awesome-cursorrules | Cursor rule | 41k | 6mo ago | CC0-1.0 | A | 1,335 | Cursor |