security-global-ssrf-prevention

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

Security rules for code that makes outbound network requests, meaning requests from an application to another server. They restrict user-controlled destinations, private addresses, protocols, ports, and hostname resolution to help prevent SSRF.

In plain words
What is it for?
Use it when writing or reviewing HTTP clients, webhooks, URL fetchers, API integrations, or generated code that sends network requests.
Why use it?
They reduce the risk that attackers can make an application contact internal systems, cloud metadata services, local files, or other unintended destinations.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when writing or reviewing HTTP clients, webhooks, URL fetchers, API integrations, or generated code that sends network requests.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/adobedocs/ff-services-docs/security-global-ssrf-prevention
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.

Clone the repo
git clone --depth 1 https://github.com/AdobeDocs/ff-services-docs

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/adobedocs/ff-services-docs/security-global-ssrf-prevention/github.svg)](https://agentmods.dev/rules/adobedocs/ff-services-docs/security-global-ssrf-prevention)
Your own site
<a href="https://agentmods.dev/rules/adobedocs/ff-services-docs/security-global-ssrf-prevention"><img src="https://agentmods.dev/badge/rules/adobedocs/ff-services-docs/security-global-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.

agentmods 80×15 button for security-global-ssrf-prevention

Your own site · 80×15
<a href="https://agentmods.dev/rules/adobedocs/ff-services-docs/security-global-ssrf-prevention"><img src="https://agentmods.dev/badge/rules/adobedocs/ff-services-docs/security-global-ssrf-prevention.svg" alt="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00018 $0.00365
Opus 5.5 $0.00007 $0.00146
Sonnet 5.5 $0.00004 $0.00073
Haiku 4.5 $0.00002 $0.00036

Measured 3mo ago against content hash 0aa1c358b7e8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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"])
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. 3mo 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 AdobeDocs/ff-services-docs (5 stars, last pushed 17d ago), licensed Apache-2.0. It adds 18 tokens to every session and 365 once invoked, about $0.0001 per session on Opus 5.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.

Related

security-global-ssrf-prevention compared with cursor rules from other repositories

security-global-ssrf-prevention next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
security-global-ssrf-preventionAdobeDocs/ff-services-docsCursor rule517d agoApache-2.0A18Cursor
ponytailDietrichGebert/ponytailCursor rule201k8d agoMITA604Cursor
angular-20angular/angularCursor rule102k5d agoMITA0Cursor
dev-standardapache/supersetCursor rule76ktodayApache-2.0A1,147Cursor
prefer-assertions-over-defensive-checksprisma/ormCursor rule48ktodayApache-2.0A0Cursor
prefer-direct-imports-over-module-mocksprisma/ormCursor rule48ktodayApache-2.0A0Cursor
shared-plane-packagesprisma/ormCursor rule48ktodayApache-2.0A0Cursor