egress-url-entries

egress-url-entries is a cursor rule for Cursor from atlassian/forge-skills. It costs 9 tokens per session (1,076 once invoked), scanned A, original, Apache-2.0.

A security rule for checking whether Forge app network permissions name only domains, rather than misleading full URLs with protocols or paths.

In plain words
What is it for?
Reviewing the `permissions.external` section of a Forge manifest and finding entries that may allow unintended network requests.
Why use it?
It helps catch permission entries that behave more broadly on the backend than developers may expect, which can weaken protection against server-side request forgery (SSRF).

Cursor rule for Cursor ✓ vendor

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

Good fit Reviewing the permissions.external section of a Forge manifest and finding entries that may allow unintended network requests.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/atlassian/forge-skills/egress-url-entries
About the project

Atlassian Forge Skills supports Atlassian Forge, a platform for building and deploying apps that extend products such as Jira and Confluence. Its skills and MCP-backed tools help coding agents create Forge apps, review them before deployment, optimize usage, troubleshoot failures, and work with Forge APIs and the Atlassian Design System.

atlassian/forge-skills · 22 stars · on GitHub · developer.atlassian.com

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/atlassian/forge-skills

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 egress-url-entries

README.md
[![agentmods](https://agentmods.dev/badge/rules/atlassian/forge-skills/egress-url-entries/github.svg)](https://agentmods.dev/rules/atlassian/forge-skills/egress-url-entries)
Your own site
<a href="https://agentmods.dev/rules/atlassian/forge-skills/egress-url-entries"><img src="https://agentmods.dev/badge/rules/atlassian/forge-skills/egress-url-entries/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 egress-url-entries

Your own site · 80×15
<a href="https://agentmods.dev/rules/atlassian/forge-skills/egress-url-entries"><img src="https://agentmods.dev/badge/rules/atlassian/forge-skills/egress-url-entries.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 9 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,076 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.00009 $0.01076
Opus 5 $0.00005 $0.00538
Sonnet 5 $0.00002 $0.00215
Haiku 4.5 $0.00001 $0.00108

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

Security

Grade A, and why

egress-url-entries 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 11d 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.

skills/forge-security-review/assets/security-rules/forge-manifest-config/egress-url-entries.mdc · 109 lines

How it starts

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

Context

  • Forge apps are only permitted to fetch() or otherwise access domains declared in their manifest for this purpose
  • Network requests are actively blocked if the target domain does not match an entry in this list
  • The app manifest allows entries to specify not just a domain, but a full URI with protocol and path
  • There is divergent behavior between frontend and backend Forge app code:
    • On frontend: the target URI must fully match an entry in the list
    • On backend: the target domain, NOT the target URI, must match a domain in the list
      • Entries that specify a protocol and path will only match the domain, the rest is ignored
  • Some apps rely on this permission list to skip input validation when dynamically constructing URIs in a request
    • Since the behavior is unexpectedly less restrictive in the backend context, some network requests that the app expects are impossible may be allowed
  • This issue presents an easy way for an app to incorrectly prevent SSRF and SSRF-like VULNs

Scope & Signals

  • Manifest location: permissions.external
  • Risk indicators:
    • Any of the entries under this manifest key specify a URL protocol or URL path

Detection Process

1. Extract all `address` keys from any of the transitive subkeys of this manifest path
2. For each address:
  - Check if the address specifies a URI protocol string
  - Check if the address specifies a URI path
  - Check if the address specifies a URI query string
3. For each address that meets any of these conditions:
  - Check if the domain from this URI is mentioned in a `fetch()` call or other network access (i.e. referenced in an html or JSX/TSX element attribute, XMLHTTPRequest, etc.)
    - Check if this fetch call parameterizes the URI path
    - Check if the parameterization is demonstrably static or not
      - If static, this is safe. If there is ANY doubt if the parameterization originates from dynamic user input, this is not demonstrably safe.
4. Each address that meets any of the conditions in (3) is a likely detection

Analysis Patterns

permissions:
  external:
    images:
      - address: https://image.example.net/foo/commons/2/20/image.jpg
      - address: https://image.example.net/foo/commons/2/20/image1.jpg
    - address: ftp://an.example.domain.net/some/example/path.txt
    - address: example-proto://an.example.domain.net/some/example/path.txt
// Search for fetch calls relying on permissions entries with URI protocols or paths

// An example of a fetch call expecting the path to be checked
const result = await fetch(
  `https://image.example.net/foo/commons/2/20/${image_name}.jpg`
);

// An example of a fetch call that expects the protocol to be verified
const result = await fetch(
  `${selected_protocol}://an.example.domain.net/some/example/path.txt`
);

// An example of a SAFE parameterized fetch:
if (selected_protocol == 'ftp' || selected_protocol == 'http') {
  // The interpolated string has been explicitly checked, instead of relying on the manifest entries
  const result = await fetch(
    `${selected_protocol}://an.example.domain.net/some/example/path.txt`
  );
}

// This is also a safe usage
if (selected_protocol != 'ftp') {
  throw new Error('');
}

// Because if the selected_protocol is not 'ftp', an exception is thrown and this is never reached
const result = await fetch(
  `${selected_protocol}://an.example.domain.net/some/example/path.txt`
);

// If validation would not filter out at least one of the possible values disallowed by the manifest, then it is
// insufficient, and still indicates a likely reliance on the misunderstood behavior

// An example of a SAFE usage
// This usage is SAFE because no part of the protocol or path was parameterized, so the egress list is not
// relied on
// Note that this is not actually an interpolation, though it appears to be at first glance
() => {
  return (
    <>
      <img src={'https://image.example.net/foo/commons/2/20/${image_name}.jpg'}>
    </>
  );
};

Read the full file on GitHub · 109 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. 11d ago First seen · 109 lines · 9 tokens per session scan A 903c8d58497d

Subscribe to this mod's changes

egress-url-entries is a cursor rule published in the GitHub repository atlassian/forge-skills (22 stars, last pushed 2d ago), licensed Apache-2.0. It adds 9 tokens to every session and 1,076 once invoked, about $0.0000 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-08-30.