mcpbeat Sign in

Forge Security Review Agent Skill

> Performs a white-box security review of Atlassian Forge apps using structured, Forge-specific security rules and evidence-driven reporting. Use when the user asks for a Forge security review, security audit, vuln assessment, pentest-style code review, authz review, tenant isolation analysis, web trigger hardening, or static analysis execution for a Forge app.

40k tokens
context cost
the whole folder, loaded on every use
36
files
ships runnable scripts
0
copies elsewhere
how many repositories repackaged it
111 d ago
last touched
this folder, not the whole repository

Install

one command, takes just this skill from the repository
npx skills add https://github.com/atlassian/forge-skills --skill forge-security-review

What comes with it

151 824 bytes besides the instruction
README.md
assets/security-rules/_global-forge.mdc
assets/security-rules/forge-auditing/_index-auditing.mdc
assets/security-rules/forge-auditing/static-analysis-forge.mdc
assets/security-rules/forge-authn-authz/_index-authn-authz.mdc
assets/security-rules/forge-authn-authz/asapp-privilege-escalation.mdc
assets/security-rules/forge-authn-authz/display-conditions-bypass.mdc
assets/security-rules/forge-authn-authz/missing-resolver-authz.mdc
assets/security-rules/forge-authn-authz/prefer-context-authz.mdc
assets/security-rules/forge-egress-remotes/_index-egress-remotes.mdc
assets/security-rules/forge-egress-remotes/data-egress-redirects.mdc
assets/security-rules/forge-egress-remotes/wildcard-permissions.mdc
assets/security-rules/forge-injection/_index-injection.mdc
assets/security-rules/forge-injection/prototype-pollution.mdc
assets/security-rules/forge-injection/rce-code-execution.mdc
assets/security-rules/forge-injection/sql-injection.mdc
assets/security-rules/forge-injection/ssrf.mdc
assets/security-rules/forge-injection/xss.mdc
assets/security-rules/forge-manifest-config/_index-manifest-config.mdc
assets/security-rules/forge-manifest-config/content-security-policy.mdc
assets/security-rules/forge-manifest-config/egress-url-entries.mdc
assets/security-rules/forge-manifest-config/permission-scopes.mdc
assets/security-rules/forge-misc/_index-misc.mdc
assets/security-rules/forge-misc/software-composition.mdc
assets/security-rules/forge-rovo-agents/_index-rovo-agents.mdc
assets/security-rules/forge-rovo-agents/agent-privilege-escalation.mdc
assets/security-rules/forge-secrets-storage/_index-secrets-storage.mdc
assets/security-rules/forge-secrets-storage/hardcoded-secrets.mdc
assets/security-rules/forge-tenant-isolation/_index-tenant-isolation.mdc
assets/security-rules/forge-tenant-isolation/global-state-warmstart.mdc
assets/security-rules/forge-webtrigger-entrypoints/_index-webtrigger-entrypoints.mdc
assets/security-rules/forge-webtrigger-entrypoints/webtrigger-security.mdc
scripts/.gitignore
scripts/run_static_analysis.ps1
scripts/run_static_analysis.sh

The instruction itself

13 sections, as written by the author

Forge Security Review

Runs a Forge-focused white-box security review and reports validated findings with exploitability, impact, evidence, and remediation guidance.

Token-Efficient Default

Use manifest-driven routing by default to reduce token usage. Do not load every rule file up front.

Rule Assets

The review rules are packaged with this skill under assets/security-rules/:

  • Global baseline: assets/security-rules/_global-forge.mdc
  • Category indexes: assets/security-rules/forge-*/_index-*.mdc
  • Category deep checks: assets/security-rules/forge-*/*.mdc

Execution Mandate

When this skill is triggered:

  • Run static analysis first from this skill directory:
  • scripts/run_static_analysis.sh <forge-project-root-directory>
  • use .ps1 script for windows
  • Read manifest.yml first before any deep code review.
  • Load assets/security-rules/_global-forge.mdc first.
  • Load only relevant category index rules based on manifest and code signals.
  • Load deep subrules only when the matching detection heuristics are triggered by real code patterns.
  • Perform an evidence-based security review across:
  • AuthN/AuthZ
  • Injection and input validation
  • Tenant isolation and cross-tenant leakage
  • Secrets and storage
  • Egress/remotes/CSP and manifest permissions
  • Public entry points (web triggers)
  • Agent and miscellaneous Forge security risks
  • Do not modify app code unless the user explicitly requests fixes.
  • Write all scan outputs and generated artifacts to security-audit-artifacts/.

Rule Routing Workflow

Phase 1: Reconnaissance (Mandatory)

Read manifest.yml first and extract:

  • permissions.scopes
  • permissions.external.fetch
  • permissions.content.scripts
  • modules (resolver/webtrigger/scheduledTrigger/rovo/etc.)
  • remotes
  • app.runtime.name

Build an execution map:

  • UI modules -> bridge calls -> resolvers/functions
  • External entry points (web triggers, events, schedules)
  • api.asUser() vs api.asApp() paths
  • Outbound fetch destinations

Phase 2: Index Rule Selection (Two-Tier Loading)

Always load first:

  • assets/security-rules/_global-forge.mdc

Then load only relevant category index rules:

| Signal | Load |

| --------------------------------------------------------- | -------------------------------------------------------------------------------------- |

| Any meaningful scope usage, mutations, or asApp() usage | assets/security-rules/forge-authn-authz/_index-authn-authz.mdc |

| webtrigger or scheduledTrigger modules | assets/security-rules/forge-webtrigger-entrypoints/_index-webtrigger-entrypoints.mdc |

| permissions.external.fetch or remotes | assets/security-rules/forge-egress-remotes/_index-egress-remotes.mdc |

| SQL APIs or untrusted input reaching resolver sinks | assets/security-rules/forge-injection/_index-injection.mdc |

| Multi-tenant patterns, module/global state, cache reuse | assets/security-rules/forge-tenant-isolation/_index-tenant-isolation.mdc |

| Credentials/tokens/secrets handling | assets/security-rules/forge-secrets-storage/_index-secrets-storage.mdc |

| Unsafe CSP or likely scope/config misconfiguration | assets/security-rules/forge-manifest-config/_index-manifest-config.mdc |

| Rovo modules/actions | assets/security-rules/forge-rovo-agents/_index-rovo-agents.mdc |

| Baseline logging/error/static analysis concerns | assets/security-rules/forge-auditing/_index-auditing.mdc |

| Dependency/package risk review | assets/security-rules/forge-misc/_index-misc.mdc |

Subrule policy:

  • After reading an index, load only the subrules that match the detection heuristics observed in code.
  • Do not pre-load every subrule in a category.

Phase 3: Analysis and Verification

For each loaded category:

  • Enumerate reachable entry points.
  • Trace source -> validation/authz -> sink.
  • Confirm exploitability with evidence.
  • Score confirmed findings with CVSS v3.1.

Focused Review Mode

If the user asks for a narrow review (for example, only authz), load:

  • Global baseline
  • Requested category index
  • Only matching subrules in that category

Still mention any obvious critical findings observed outside scope.

Review Workflow

  • Build an execution map:
  • UI Kit/Custom UI entry points
  • Bridge invocations and resolver handlers
  • api.asUser() / api.asApp() call paths
  • External egress/remotes and trigger entry points
  • For each finding, trace source -> validation/authz -> sink.
  • Validate exploitability before classifying as a confirmed vulnerability.
  • Keep non-exploitable hardening observations in a separate "needs validation" section.
  • Provide file-level evidence and practical test leads for each issue.

Static Analysis Mode

If the user asks for a full scan, run the complete workflow from:

  • assets/security-rules/forge-auditing/static-analysis-forge.mdc

Expected tools (when available): Semgrep, npm audit, Snyk, gitleaks.

Output Requirements

  • Provide a markdown security audit report.
  • Order confirmed exploitable findings by CVSS v3.1 severity and impact.
  • Include for each confirmed finding:
  • CVSS vector and base score
  • Severity band
  • Exploitability and impact
  • File evidence and source-to-sink trace
  • CWE mapping
  • Reproducible PoC/test steps with concrete commands
  • Include assumptions and evidence gaps.
  • Do not report scanner counts only when vulnerabilities exist.

Example Trigger Phrases

  • "Review this Forge app for security"
  • "Do a white-box security audit of my Forge app"
  • "Check this app for authz bypass and tenant isolation issues"
  • "Run full static analysis for this Forge codebase"

Other skills for the same job

different authors, same section of the catalogue
Backend Security Coder
by ComeOnOliver
×2

Expert in secure backend coding practices specializing in input validation, authentication, and API security. Use PROACTIVELY for backend security implementations or security code reviews.

5k tokens
Mobile Security Coder
by ComeOnOliver
×2

Expert in secure mobile coding practices specializing in input validation, WebView security, and mobile-specific security patterns. Use PROACTIVELY for mobile security implementations or mobile security code reviews.

6k tokens
Frontend Security Coder
by ComeOnOliver
×1

Expert in secure frontend coding practices specializing in XSS prevention, output sanitization, and client-side security patterns. Use PROACTIVELY for frontend security implementations or client-side security code reviews.

5k tokens
Github Actions Hardening
by github
vendor

Security hardening reviewer for GitHub Actions workflow files (.github/workflows/*.yml). Reasons about the Actions threat model that pattern matchers and general code linters miss — untrusted-input script injection, privileged triggers running fork code, mutable action references, and over-scoped tokens. Use this skill when asked to review, audit, harden, or secure a GitHub Actions workflow, when writing a new workflow, or for any request like "is this workflow safe?", "review my CI for security issues", "why is pull_request_target dangerous here?", "pin my actions", or "lock down GITHUB_TOKEN permissions". Covers script injection via ${{ }} interpolation, pull_request_target / workflow_run privilege escalation, SHA-pinning of third-party actions, least-privilege permissions, GITHUB_ENV/GITHUB_OUTPUT injection, secret exposure, OIDC over long-lived credentials, and self-hosted runner exposure on public repositories.

6k tokens
Nemoclaw Maintainer Security Code Review
by NVIDIA
vendor

Review a PR, or a PR linked to an issue, for security risks. Check nine categories and report PASS, WARNING, or FAIL. Use when reviewing code for vulnerabilities, secrets, injection, authorization bypasses, or unsafe configuration. Trigger keywords - security review, code review, appsec, vulnerability assessment, security audit, review PR security.

2k tokens
Semgrep
by trailofbits

>- Run Semgrep static analysis scan on a codebase using parallel subagents. Supports two scan modes — "run all" (full ruleset coverage) and "important only" (high-confidence security vulnerabilities). Automatically detects and uses Semgrep Pro for cross-file taint analysis when available. Use when asked to scan code for vulnerabilities, run a security audit with Semgrep, find bugs, or perform static analysis. Spawns parallel workers for multi-language codebases.

12k tokens scripts
Trailmark Variant Neighborhood
by trailofbits

Expands one confirmed or suspected vulnerability into a Trailmark graph neighborhood of variant candidates by finding sibling functions, shared callers and callees, common sensitive sinks, common entrypoint paths, interface implementations, override relationships, type/reference neighbors, and structurally similar nodes. Use after one issue is found to seed variant-analysis, semgrep-rule-creator, static-analysis, or manual review with graph-derived candidate locations.

3k tokens
Best Practices
by tech-leads-club

Apply modern web development best practices for security, compatibility, and code quality. Use when asked to "apply best practices", "security audit", "modernize code", "code quality review", or "check for vulnerabilities". Do NOT use for accessibility (use web-accessibility), SEO (use seo), performance (use core-web-vitals), or comprehensive multi-area audits (use web-quality-audit).

3k tokens

How to use it

Copy the folder

Take atlassian/forge-security-review from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.