_index-tenant-isolation

_index-tenant-isolation is a cursor rule for Cursor from atlassian/forge-skills. It costs 0 tokens per session (527 once invoked), scanned A, original, Apache-2.0.

An index of security rules for tenant isolation in Forge applications, where one application serves multiple customers. It covers shared runtime state, storage keys, and cross-customer API access.

In plain words
What is it for?
Use it as a starting point when reviewing global state, caches, storage keys, scripts, and API calls in multi-tenant Forge applications.
Why use it?
It highlights ways that data or requests intended for one customer could become available to another, especially when AWS Lambda reuses runtime instances.

Cursor rule for Cursor ✓ vendor

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

Good fit Use it as a starting point when reviewing global state, caches, storage keys, scripts, and API calls in multi-tenant Forge applications.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/atlassian/forge-skills/_index-tenant-isolation
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 · 35 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 _index-tenant-isolation

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

Your own site · 80×15
<a href="https://agentmods.dev/rules/atlassian/forge-skills/_index-tenant-isolation"><img src="https://agentmods.dev/badge/rules/atlassian/forge-skills/_index-tenant-isolation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 527 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.00000 $0.00527
Opus 5.5 $0.00000 $0.00211
Sonnet 5.5 $0.00000 $0.00105
Haiku 4.5 $0.00000 $0.00053

Measured 20d ago against content hash 4f41990e3a44, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

_index-tenant-isolation 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 20d 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-tenant-isolation/_index-tenant-isolation.mdc · 48 lines

What it actually says

  • Scope: Multi-tenant data isolation, Lambda warm start risks, global state, and cross-tenant data leakage.
  • Priority: Critical for Marketplace apps serving multiple customers on shared infrastructure.

Key Forge Tenant Isolation Risks

  • Lambda warm start behavior: AWS Lambda reuses runtime instances; global variables persist across invocations from different tenants.
  • Module-level state pollution: Caches, feature flags, and configuration stored at module scope can leak between tenants.
  • Storage key collisions: Improperly scoped storage keys can allow cross-tenant data access.
  • Cross-tenant API calls: requestGraph and __requestAtlassian historically enabled cross-tenant access.

Subrules

  • Global State and Warm Start → @forge-tenant-isolation/global-state-warmstart.mdc

Detection Heuristics

  • Identify module-level variables (const cache = {}, let state = ...) outside handler functions.
  • Search for caches that don't include tenant/installation context in keys.
  • Review storage operations for tenant-scoped key prefixes.
  • Check for user script execution that can access/modify global scope.

Forge-Specific Caveats

  • RuntimeV2 uses AWS Lambda isolation instead of V1's custom sandbox, shifting tenant isolation responsibility to app developers.
  • User-supplied code execution (for example user-defined scripted fields) in shared global scope is high risk.

CWE References

  • CWE-668: Exposure of Resource to Wrong Sphere
  • CWE-200: Information Exposure
  • CWE-212: Improper Removal of Sensitive Information Before Storage or Transfer
  • CWE-1189: Improper Isolation of Shared Resources

Deterministic Signals (OpenGrep rules)

  • forge-module-state-holds-request-data (WARNING), forge-process-env-mutation (ERROR), forge-private-cross-tenant-api (ERROR): see @forge-tenant-isolation/global-state-warmstart.mdc.
  • forge-storage-key-user-controlled (ERROR) and forge-storage-tainted-key (WARNING): see @forge-authn-authz/missing-resolver-authz.mdc.
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. 20d ago Changed · +4 lines 4f41990e3a44
  2. 3mo ago First seen · 44 lines · 0 tokens per session scan A 2c94aac68811

Subscribe to this mod's changes

_index-tenant-isolation is a cursor rule published in the GitHub repository atlassian/forge-skills (35 stars, last pushed 4d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 527 tokens. 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.

Related

_index-tenant-isolation compared with cursor rules from other repositories

_index-tenant-isolation next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
_index-tenant-isolationatlassian/forge-skillsCursor rule354d agoApache-2.0A0Cursor
ponytailDietrichGebert/ponytailCursor rule201k8d agoMITA604Cursor
angular-20angular/angularCursor rule102k4d 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