agent-privilege-escalation

agent-privilege-escalation is a cursor rule for Cursor from atlassian/forge-skills. It costs 11 tokens per session (1,366 once invoked), scanned A, original, Apache-2.0.

Security review rules for Forge Rovo agents and actions, which are Atlassian automation components that can perform tasks. They focus on actions running with application-level permissions instead of the requesting user's permissions.

In plain words
What is it for?
Use it to review authorization checks before agents access restricted content, call Forge functions, or perform actions such as deleting issues.
Why use it?
An agent or action may perform restricted operations without first checking what the user is allowed to do, creating a privilege-escalation risk.

Cursor rule for Cursor ✓ vendor

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

Good fit Use it to review authorization checks before agents access restricted content, call Forge functions, or perform actions such as deleting issues.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/atlassian/forge-skills/agent-privilege-escalation
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 agent-privilege-escalation

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

Your own site · 80×15
<a href="https://agentmods.dev/rules/atlassian/forge-skills/agent-privilege-escalation"><img src="https://agentmods.dev/badge/rules/atlassian/forge-skills/agent-privilege-escalation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 11 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,366 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 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.00011 $0.01366
Opus 5.5 $0.00004 $0.00546
Sonnet 5.5 $0.00002 $0.00273
Haiku 4.5 $0.00001 $0.00137

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

Security

Grade A, and why

agent-privilege-escalation 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 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

const data = await fetch(resourceUrl); // SSRF risk
skills/forge-security-review/assets/security-rules/forge-rovo-agents/agent-privilege-escalation.mdc · 179 lines

How it starts

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

Context

  • Forge Rovo agents can execute actions with elevated privileges via asApp(). An action can therefore perform more than the requesting user is allowed to.
  • Related CWE: CWE-269 (Improper Privilege Management), CWE-862 (Missing Authorization).

Scope & Signals

  • Manifest: rovo:agent and rovo:action modules.
  • Risk patterns:
    • Actions using asApp() without user permission verification.
    • Missing authorization checks before invoking Forge functions.
    • LLM-influenced actions without validation.
    • Actions on restricted content without access verification.

Rovo-Specific Concerns

  • Rovo Forge Actions documentation lacks asUser vs asApp guidance (unlike regular Forge Actions).
  • Convo AI should prevent unauthorized actions but gaps exist.
  • Forge agents may not respect app access rules for restrictions.
  • Browser context URLs consumed by agents are user-controlled.

Vulnerable Patterns

// VULNERABLE - asApp without authorization check
export async function deleteIssueAction({ issueId }) {
  const api = asApp();
  
  // No check if user can delete this issue!
  await api.requestJira(route`/rest/api/3/issue/${issueId}`, {
    method: 'DELETE'
  });
  
  return { success: true };
}

// VULNERABLE - Trusting LLM-provided identifiers
export async function updateContentAction({ pageId, content }) {
  const api = asApp();
  
  // pageId comes from LLM, could reference any page
  await api.requestConfluence(route`/wiki/api/v2/pages/${pageId}`, {
    method: 'PUT',
    body: JSON.stringify({ body: content })
  });
}

// VULNERABLE - No validation of agent-provided context
export async function accessResourceAction({ resourceUrl }) {
  // resourceUrl from browser context - user controlled!
  const data = await fetch(resourceUrl);  // SSRF risk
  return processData(data);
}

Secure Patterns

// SECURE - Verify user permission before asApp action
export async function deleteIssueAction({ issueId }, context) {
  // First verify user has permission
  const userApi = asUser();
  const permissions = await userApi.requestJira(
    route`/rest/api/3/mypermissions?issueId=${issueId}&permissions=DELETE_ISSUES`
  );
  
  if (!permissions.permissions.DELETE_ISSUES.havePermission) {
    throw new Error('You do not have permission to delete this issue');
  }
  
  // Now safe to use asApp
  const api = asApp();
  await api.requestJira(route`/rest/api/3/issue/${issueId}`, {
    method: 'DELETE'
  });
  
  return { success: true };
}

// SECURE - Validate and constrain LLM inputs
export async function updateContentAction({ pageId, content }, context) {
  // Validate pageId format
  if (!isValidPageId(pageId)) {
    throw new Error('Invalid page ID');
  }
  
  // Verify user has access to this page
  const userApi = asUser();
  try {
    await userApi.requestConfluence(route`/wiki/api/v2/pages/${pageId}`);
  } catch (e) {
    throw new Error('You do not have access to this page');
  }
  
  // Sanitize content from LLM
  const sanitizedContent = sanitizeContent(content);
  
  const api = asApp();
  await api.requestConfluence(route`/wiki/api/v2/pages/${pageId}`, {
    method: 'PUT',
    body: JSON.stringify({ body: sanitizedContent })
  });
}

// SECURE - Validate URLs from browser context
export async function processUrlAction({ url }, context) {
  // Allowlist of acceptable URL patterns
  const ALLOWED_PATTERNS = [
    /^https:\/\/.*\.atlassian\.net\//,
  ];
  
  if (!ALLOWED_PATTERNS.some(p => p.test(url))) {
    throw new Error('Invalid URL');
  }
  
  // Process validated URL
}

Detection Checklist

  • Identify all rovo:agent and rovo:action modules in manifest.
  • Review each action function for asApp() usage.
  • Verify authorization checks precede all asApp() operations.
  • Check for user permission validation on sensitive actions.
  • Look for LLM-provided input used without validation.
  • Assess browser context URL handling.
  • Verify actions respect content restrictions.

Read the full file on GitHub · 179 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. 20d ago Changed · +3 lines 200ac6223eff
  2. 3mo ago First seen · 176 lines · 11 tokens per session scan A 50cadeaa55b4

Subscribe to this mod's changes

agent-privilege-escalation is a cursor rule published in the GitHub repository atlassian/forge-skills (35 stars, last pushed 4d ago), licensed Apache-2.0. It adds 11 tokens to every session and 1,366 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

agent-privilege-escalation compared with cursor rules from other repositories

agent-privilege-escalation next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agent-privilege-escalationatlassian/forge-skillsCursor rule354d agoApache-2.0A11Cursor
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