scope-attack-path-analysis

A method for assembling candidate cloud attack paths from security-audit evidence. Each path must show progress from an entry point through changed execution or permission contexts to an impact, while a separate validation step decides which candidates are final.

In plain words
What is it for?
Use it to analyze AWS public entry points, IAM relationships, resource access, role chaining, lateral movement, and other evidence-based attacker progressions.
Why use it?
It filters out isolated exposures and weak links that do not demonstrate an attacker moving toward a meaningful result.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/tayontech/scope/scope-attack-path-analysis
Any agent
npx skills add tayontech/SCOPE --skill scope-attack-path-analysis
Clone the repo
git clone --depth 1 https://github.com/tayontech/SCOPE

Made for: Claude Code, Codex.

Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,420 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00028 $0.01420
Opus 5 $0.00014 $0.00710
Sonnet 5 $0.00006 $0.00284
Haiku 4.5 $0.00003 $0.00142

Measured 2d ago against content hash 61ae20ba7656, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

scope-attack-path-analysis 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 2d 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/scope-attack-path-analysis/SKILL.md · 72 lines

How it starts

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

SCOPE Attack Path Analysis

Use this skill inside scope-attack-analyze to build candidate_attack_paths[]. This skill does not validate or promote final paths. Do not write final attack_paths[]; scope-attack-validate owns promotion after validation.

Chain Quality Bar

A candidate path must satisfy this bar:

entry point -> new execution context -> new permission set -> impact

Each hop must change position, principal context, capability, reachable resource, permission set, execution context, or impact. A hop can represent role chaining, lateral movement between principals/resources, a policy-controlled transition, or a resource access transition, but it must move the attacker forward.

When public_entrypoints[] exists, treat it as the source of public-start candidates. Only records with attack_path_seed: true can start starting_position.type: "public_endpoint" candidates. Set starting_position.id to the exact public_entrypoints[].id. Keep attack_path_seed: false records as exposure context unless another collected graph, IAM, or resource-policy fact creates a separate attacker-controlled transition.

Accept As Candidate Chains

  • Public endpoint with AWS-level proof: a public_entrypoints[] seed reaches compute or a service integration, and collected AWS evidence proves a resource-policy grant, event source, identity issuance path, or concrete data transition. Do not treat backend role permissions alone as public caller access.
  • Public service-connected role path: graph evidence reaches an executes_as role from the public entrypoint and the role can reach a concrete impact. Keep backend application behavior as a runtime assumption when the run does not prove the application calls the impact action.
  • EC2 public ingress role path: graph evidence connects public security group ingress to an attached EC2 instance and instance-profile role with concrete impact. Standalone open ports remain exposure observations.
  • DNS/CDN service path: Route 53 or CloudFront can participate in a candidate only when graph evidence correlates DNS/CDN targets to collected AWS resources. Unresolved DNS targets remain exposure observations.
  • Assume-role then stronger action: the starting principal can assume another role, and the resulting role has a stronger action that changes the permission set or reachable resource set.
  • Pass-role into compute: the principal can pass a role into a compute or execution service, creating a new execution context with that role's permissions.
  • Existing CodeBuild project execution: the principal can start a collected CodeBuild project, graph evidence maps the project to a service role, and that role reaches concrete impact.
  • Identity issuance: a collected identity provider such as an unauthenticated Cognito identity pool can issue AWS credentials for a role, and the role reaches concrete impact.
  • Concrete data impact: a reachable role can read collected Secrets Manager, S3, DynamoDB, or SSM resource ARNs. SecureString SSM, SSE-KMS S3, and CMK-encrypted Secrets Manager reads need KMS evidence when graph edges record a key dependency.
  • Resource policy external access to impact: a bucket, queue, key, secret, function, or other resource policy grants external access that leads to a concrete impact action on a target resource.
  • Event-source policy access: a resource such as S3 emits an event through a service principal and the target resource policy allows that service principal with matching SourceArn, SourceAccount, or SourceOwner context.
  • SNS/SQS event-source path: graph evidence shows a collected SNS subscription or Lambda event source mapping from the source queue/topic to the consumer.
  • Wildcard-principal resource policy access: Principal: "*" grants the service, external, or account principal only when action, resource, and conditions match the candidate context.
  • Lambda Function URL policy access: a function policy grants lambda:InvokeFunctionUrl and collected Function URL configuration satisfies lambda:FunctionUrlAuthType or lambda:InvokedViaFunctionUrl conditions.
  • KMS-protected data access: the path reaches SSE-KMS S3 data or a CMK-encrypted secret, and KMS authorization exists through direct key-policy principal allow, account-root delegation plus identity kms:Decrypt, or a matching KMS grant.

Read the full file on GitHub · 72 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. 2d ago First seen · 72 lines · 28 tokens per session scan A 61ae20ba7656

Subscribe to this mod's changes

scope-attack-path-analysis is a skill published in the GitHub repository tayontech/SCOPE (54 stars, last pushed 2mo ago), licensed MIT. It adds 28 tokens to every session and 1,420 once invoked, about $0.0001 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.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

babysit-pr

Babysit a GitHub pull request after creation by continuously polling review comments, CI checks/workflow runs, and mergeability state until the PR is merged/closed or user help is required. Diagnose failures, retry likely flaky failures up to 3 times, auto-fix/push branch-related issues when appropriate, and keep…

openai/codex · 114 tokens

imagegen

Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output…

openai/codex · 113 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

next-cache-components-optimizer

Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…

vercel/next.js · 170 tokens