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.
npx agentmods add rules/adobe/aem-desktop/security-global-ssrf-preventiongit clone --depth 1 https://github.com/adobe/aem-desktopWrote 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/adobe/aem-desktop/security-global-ssrf-prevention)<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>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 | $0.00018 | $0.00365 |
| Opus 5 | $0.00009 | $0.00182 |
| Sonnet 5 | $0.00004 | $0.00073 |
| Haiku 4.5 | $0.00002 | $0.00036 |
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"]) 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.
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.
- 3d ago First seen · 30 lines · 18 tokens per session scan A 0aa1c358b7e8
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.
Other cursor rules, from other repositories
angular-20
This rule provides comprehensive best practices and coding standards for Angular development, focusing on modern TypeScript, standalone components, signals, and performance optimizations.
dev-standard
Apache Superset development standards and guidelines for Cursor IDE.
cli-error-handling
CLI command error handling patterns.
prefer-direct-imports-over-module-mocks
Prefer extracting a testable core over vi.mock / vi.resetModules when unit tests need to reach production logic entangled with config, env, or singletons.
control-plane-descriptors
Control plane descriptor and instance implementation patterns.
family-instance-domain-actions
Family instance domain action implementation patterns.