security-global-ssrf-prevention

security-global-ssrf-prevention is a cursor rule for Cursor from adobe/aem-desktop. It costs 18 tokens per session (365 once invoked), scanned A, a copy of ssrf-prevention, Apache-2.0.

Um conjunto de regras para impedir SSRF, um ataque em que entradas do usuário fazem o servidor acessar endereços internos ou não autorizados.

In plain words
What is it for?
Serve para validar destinos, protocolos, portas e endereços antes de realizar requisições de saída.
Why use it?
Reduz o risco de requisições externas alcançarem serviços privados, localhost ou faixas de IP reservadas.

Cursor rule for Cursor

Install

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.

agentmods
npx agentmods add rules/adobe/aem-desktop/security-global-ssrf-prevention
Clone the repo
git clone --depth 1 https://github.com/adobe/aem-desktop

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 security-global-ssrf-prevention

README.md
[![agentmods](https://agentmods.dev/badge/rules/adobe/aem-desktop/security-global-ssrf-prevention.svg)](https://agentmods.dev/rules/adobe/aem-desktop/security-global-ssrf-prevention)
Your own site
<a href="https://agentmods.dev/rules/adobe/aem-desktop/security-global-ssrf-prevention"><img src="https://agentmods.dev/badge/rules/adobe/aem-desktop/security-global-ssrf-prevention.svg" alt="Measured on agentmods" height="20"></a>
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 365 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin 94% copy Near-identical to another mod 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 $0.00018 $0.00365
Opus 5 $0.00009 $0.00182
Sonnet 5 $0.00004 $0.00073
Haiku 4.5 $0.00002 $0.00036

Measured 3d ago against content hash 0aa1c358b7e8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

security-global-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 3d 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"])
Origin

This is a copy

94% identical to ssrf-prevention — 5 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.cursor/rules/security-global/security-global-ssrf-prevention.mdc · 30 lines

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.
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. 3d ago First seen · 30 lines · 18 tokens per session scan A 0aa1c358b7e8

Subscribe to this mod's changes

security-global-ssrf-prevention is a cursor rule published in the GitHub repository adobe/aem-desktop (2 stars, last pushed 8d ago), licensed Apache-2.0. It adds 18 tokens to every session and 365 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). It is 94% identical to ssrf-prevention, differing in 5 lines, and is treated as a copy.