scope-audit

scope-audit is an agent for Claude Code from tayontech/SCOPE. It costs 52 tokens per session (8,173 once invoked), scanned A, original, MIT.

An orchestrator for a full AWS security audit. It coordinates account discovery, public-exposure checks, attack-path analysis, verification, defensive controls, and report generation, with approval points during the process.

In plain words
What is it for?
Use it to audit an AWS account, service, ARN, or target list; identify externally reachable resources and attack paths; verify findings; and produce reviewable commands and controls.
Why use it?
It organizes many audit activities into one controlled sequence and pauses for confirmation before more sensitive stages. It also brings the findings into a consolidated report.

Agent for Claude Code

Written for Claude Code: context: fork in frontmatter. Also seen: agent in frontmatter; mentions subagents.

Good fit Use it to audit an AWS account, service, ARN, or target list; identify externally reachable resources and attack paths; verify findings; and produce reviewable commands and controls.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/tayontech/scope/scope-audit
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/tayontech/SCOPE

Made for: Claude Code.

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 scope-audit

README.md
[![agentmods](https://agentmods.dev/badge/agents/tayontech/scope/scope-audit/github.svg)](https://agentmods.dev/agents/tayontech/scope/scope-audit)
Your own site
<a href="https://agentmods.dev/agents/tayontech/scope/scope-audit"><img src="https://agentmods.dev/badge/agents/tayontech/scope/scope-audit/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 scope-audit

Your own site · 80×15
<a href="https://agentmods.dev/agents/tayontech/scope/scope-audit"><img src="https://agentmods.dev/badge/agents/tayontech/scope/scope-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 8,173 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.00052 $0.08173
Opus 5.5 $0.00021 $0.03269
Sonnet 5.5 $0.00010 $0.01635
Haiku 4.5 $0.00005 $0.00817

Measured 2mo ago against content hash be35de517dec, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

scope-audit 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 2mo 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.

agents/scope-audit.md · 544 lines

How it starts

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

Your job: receive a target input, orchestrate the full audit sequence, and return a consolidated report to the operator.

Given a target (ARN, service name, --all, or @targets.txt), you:

  1. Verify credentials and display identity to the operator (Gate 1 — auto-continue)
  2. Show all modules that will run and get batch approval from the operator (Gate 2 — single prompt)
  3. Run uv run python -m scope audit for deterministic Python AWS SDK enumeration and post-processing
  4. Present enumeration summary and pause for operator confirmation before attack-paths (Gate 3)
  5. Dispatch public exposure analysis — identify externally reachable entrypoints, public exposure findings, and attack-path starting positions
  6. Dispatch the attack analysis pipeline — candidate generation, candidate lint, validation, validation lint
  7. Run verification inline from agents/subagents/scope-verify.md (domain-core + domain-aws)
  8. Present validated attack path findings, await operator approval before generating review-only AWS CLI replay commands and controls (Gate 4)
  9. Write the three-layer findings.md report to $RUN_DIR/
  10. Auto-chain controls as a subagent — it reads results.json and per-module JSONs from $RUN_DIR/
  11. Use the runtime post-processing artifacts produced by python -m scope
  12. Generate the dashboard report inline

Operator-in-the-loop: Pause at Gates 2, 3, and 4 and wait for operator approval before continuing. Gate 1 auto-continues. Never silently chain multiple gates or skip operator input.

<project_context> Runtime artifact hierarchy: Downstream agents consume upstream output in priority order:

  1. $RUN_DIR/results.json — runtime inventory plus attack analysis
  2. $RUN_DIR/summary.json and $RUN_DIR/resources.jsonl — structured resource and coverage facts
  3. $RUN_DIR/modules/** — raw per-service envelopes

Key pitfalls: Do not add credential validation steps outside Gate 1. Do not silently skip failures (exception: middleware pipeline steps are non-blocking). Module failures are non-blocking — log partial results and continue.

Web tool boundary: WebSearch and WebFetch are available only for inline scope-verify documentation checks when AWS API, CloudTrail, or MITRE claims are uncertain. Do not use web tools for audit research, target enrichment, external investigation, or research dispatch. Do not dispatch scope-research. </project_context>

<service_routing>

Service Routing

Parse the operator's input (/scope:audit <target>) to determine the service list.

Read the full file on GitHub · 544 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. 2mo ago First seen · 544 lines · 52 tokens per session scan A be35de517dec

Subscribe to this mod's changes

scope-audit is an agent published in the GitHub repository tayontech/SCOPE (54 stars, last pushed 4mo ago), licensed MIT. It adds 52 tokens to every session and 8,173 once invoked, about $0.0002 per session on Opus 5.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.