[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7A2T1ZB6S2M5KWM47E9VESW":3,"skill-same:01M7A2T1ZB6S2M5KWM47E9VESW":147},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":39,"commitSha":40,"skillDirectory":41,"forksCount":42,"repositoryHtmlUrl":43,"repositoryHomepageUrl":6,"ownerHtmlUrl":44,"ownerBlogUrl":6,"ownerDescription":45,"updatedAt":46,"install":47,"resources":60},"01M7A2T1ZB6S2M5KWM47E9VESW","accessanalyzer-finding-triage",null,"Triages IAM Access Analyzer findings (external access + unused access) into risk verdicts with remediation. Classifies each finding as real external exposure (EXTERNAL_ACCESS), stale credential or permission (UNUSED_ACCESS), expected cross-account or service integration (EXPECTED), or condition-bounded non-risk (SAFE). Evaluates the zone-of-trust model, principal type (public vs specific vs service), condition-key cryptographic strength, resource-type blast radius, and finding freshness. INVOKE DETERMINISTICALLY when the input contains an Access Analyzer finding JSON or finding reference — detection signal: findingType is ExternalAccess or starts with Unused, OR the input references isPublic, zone of trust, resource-based policy exposure, archive rule, or UnusedIAMRole\u002FUnusedIAMUserAccessKey. Use when reviewing Access Analyzer findings, triaging external-access or unused-access findings, prioritizing remediation, or validating archive-rule suppression decisions.","jhkchan\u002Faws-agent-skills","jhkchan","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1083902?v=4","01M7A2SVQYP9GQTPTDXP5JKYQ4","Jacky Chan","01M7A2SVS117YWCTZABB75HZR1",4,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Faccessanalyzer-finding-triage\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: accessanalyzer-finding-triage\ndescription: 'Triages IAM Access Analyzer findings (external access + unused access) into risk verdicts with remediation. Classifies each finding as real external exposure (EXTERNAL_ACCESS), stale credential or permission (UNUSED_ACCESS), expected cross-account or service integration (EXPECTED), or condition-bounded non-risk (SAFE). Evaluates the zone-of-trust model, principal type (public vs specific vs service), condition-key cryptographic strength, resource-type blast radius, and finding freshness. INVOKE DETERMINISTICALLY when the input contains an Access Analyzer finding JSON or finding reference — detection signal: findingType is ExternalAccess or starts with Unused, OR the input references isPublic, zone of trust, resource-based policy exposure, archive rule, or UnusedIAMRole\u002FUnusedIAMUserAccessKey. Use when reviewing Access Analyzer findings, triaging external-access or unused-access findings, prioritizing remediation, or validating archive-rule suppression decisions.'\nlicense: Apache-2.0\ncompatibility: Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf). No AWS CLI required for offline finding classification. Live-account triage uses aws accessanalyzer list-findings and aws accessanalyzer archive-rule (AWS CLI v2, SSO or key-based credentials).\nmetadata:\n  domain: aws-cloudops\n  complexity: high\n  requires_llm: 'true'\n  phase: '2'\n  supports_pipeline: 'true'\n  entry_point: 'false'\n  family: Security\n  verdict_shape: EXTERNAL_ACCESS | UNUSED_ACCESS | EXPECTED | SAFE\n  pattern: Mindset → Quick Triage → Expert Deltas → Process → Matrices → Anti-Patterns → Pre-flight Gate → Remediation\n  when_to_use: Reviewing IAM Access Analyzer findings, triaging external-access or unused-access findings, prioritizing which findings to remediate first, validating whether a finding can be archived, or deciding if a cross-account resource-policy grant is an expected integration or a security risk.\n  version: 0.2.0\n  author: Jacky Chan — AWS Community Builder\n  keywords: IAM Access Analyzer, external access, unused access, finding triage, zone of trust, isPublic, cross-account, resource-based policy, archive rule, UnusedIAMRole, unused access key, KMS key policy, S3 bucket policy, SQS queue policy, Secrets Manager, IAM role trust, condition strength, aws:SourceArn, aws:SourceAccount, service principal\n  tags: iam, security, access-analyzer, finding-triage, external-access, unused-access, zone-of-trust\n---\n\n# IAM Access Analyzer Finding Triage\n\n**Structural pattern:** Mindset → Quick Triage → Expert Deltas → Process → Matrices → Anti-Patterns → Pre-flight Gate → Remediation. Read top-to-bottom; the Quick Triage section is sufficient for 80% of findings. Descend into Process and Matrices only for edge cases.\n\n## Mindset\n\nFull framing (what Access Analyzer evaluates, real-risk vs expected-integration vs condition-bounded contrast): [Advanced patterns](references\u002Fadvanced-patterns.md).\n\nThe triage must distinguish:\n\n1. **Real risk** (EXTERNAL_ACCESS) — unconditional access to a principal\n   outside the zone of trust, or a public principal with no restrictive\n   condition.\n2. **Stale identity** (UNUSED_ACCESS) — an IAM role, user credential, or\n   permission grant that has not been used in the analysis period.\n3. **Expected integration** (EXPECTED) — a known cross-account or AWS-service\n   integration that Access Analyzer correctly flagged but the business has\n   accepted. These should be archived via an archive rule, not ignored.\n4. **Condition-bounded** (SAFE) — the finding is technically valid but a\n   cryptographic condition (`aws:SourceArn`, `aws:SourceAccount`) makes the\n   access non-exploitable by the external principal.\n\n## Quick triage (TL;DR decision flow)\n\nThis compact flow handles the majority of findings. For edge cases,\ndescend into the full Process section below.\n\n```\nINPUT: Access Analyzer finding JSON\n  │\n  ├─ findingType missing or unparseable? ──────────────────────► ERROR\n  │\n  ├─ findingType starts with \"Unused\"? ────────────────────────► Step 1B\n  │                                                              (unused-access path)\n  │\n  ├─ status is RESOLVED or ARCHIVED? ──────────────────────────► SAFE\n  │  (finding is no longer active — stop here)\n  │\n  ├─ CONDITION strength check (the primary verdict lever):\n  │  ├─ aws:SourceArn (concrete ARN, StringEquals)  ──────────► SAFE\n  │  ├─ aws:SourceArn (wildcard pattern, StringLike) ─────────► SAFE (note breadth)\n  │  ├─ aws:SourceAccount (specific account ID)     ──────────► SAFE\n  │  ├─ aws:PrincipalOrgID (own org)                ──────────► SAFE\n  │  ├─ aws:SourceVpce \u002F aws:SourceVpc (no IGW)     ──────────► SAFE\n  │  ├─ kms:ViaService                              ──────────► SAFE (KMS only)\n  │  ├─ aws:SourceIp = 0.0.0.0\u002F0                    ──────────► NOT SAFE (= no condition)\n  │  ├─ aws:Referer \u002F aws:UserAgent                 ──────────► NOT SAFE (forgeable)\n  │  └─ absent or {}                                ──────────► NOT SAFE (proceed to principal)\n  │\n  ├─ PRINCIPAL check (when condition is weak\u002Fabsent):\n  │  ├─ {\"Service\": \"xxx.amazonaws.com\"} + matches Expected table ─► EXPECTED\n  │  ├─ {\"Service\": \"xxx.amazonaws.com\"} + destructive actions     ─► EXTERNAL_ACCESS\n  │  ├─ {\"Federated\": same-account IdP}               ──────────► EXPECTED\n  │  ├─ {\"Federated\": external-account IdP}           ──────────► EXTERNAL_ACCESS (HIGH)\n  │  ├─ arn:aws:iam::EXTERNAL_ACCOUNT:root (no cond)  ──────────► EXTERNAL_ACCESS\n  │  └─ Principal \"*\" or {\"AWS\": \"*\"} (no cond)       ──────────► EXTERNAL_ACCESS\n  │\n  └─ RISK assigned via Resource-type severity matrix (Step 1A.5)\n```\n\n**Three rules that prevent the most common misclassifications:**\n\nFull wording of the three misclassification rules: [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n## Expert knowledge deltas (non-obvious thresholds)\n\nThese are insights that a senior CloudOps engineer learns from production\nincidents, not from the AWS documentation. Internalize them before triaging.\n\nAll eight expert deltas — identity-policy blind spot, `isPublic` algorithm, `StringEquals` vs `StringLike`, `kms:CreateGrant` chain, configurable analysis period, `analyzedAt` staleness, deprecated `aws:PrincipalAccount`, delegated-administrator archive rules: [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n## Zone of trust model (expert concept)\n\nAccess Analyzer defines a **zone of trust** based on the analyzer type. This\ndetermines what counts as \"external\" — the same resource-policy grant can be\nflagged or not flagged depending on which analyzer generated the finding:\n\nAccount-analyzer vs organization-analyzer zone-of-trust table (what each flags as external): [Advanced patterns](references\u002Fadvanced-patterns.md).\n\nAnalyzer-scope triage implication (account vs organization analyzer): [Advanced patterns](references\u002Fadvanced-patterns.md).\n\nWorked mini-example (same grant: EXPECTED under an account analyzer, unflagged under an org analyzer): [Worked examples](references\u002Fworked-examples.md).\n\n## Finding types\n\nAccess Analyzer generates two categories of findings. The skill handles both\nbut routes them through different classification paths:\n\nExternal-access finding schema (principal, `isPublic`, condition, action, resourceType), the analyzed resource-policy type catalog, and the unused-access finding-type table: [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n---\n\n## Process — Classification logic (apply in order)\n\n### Step 0: Validate input (AWS-specific field checks)\n\nField-by-field requirement table (routing target and default per missing field): [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n**Malformed `condition` object handling:**\nMalformed-condition cases — null\u002Fnon-dict, non-string values, nested operators: [Error handling](references\u002Ferror-handling.md).\n\nERROR-verdict output block for malformed\u002Funparseable findings: [Error handling](references\u002Ferror-handling.md).\n\nIf `findingType` is `ExternalAccess` → proceed to **Step 1A** (external access\nclassification).\n\nIf `findingType` starts with `Unused` → proceed to **Step 1B** (unused access\nclassification).\n\n### Step 1A: External access — classify by principal + condition\n\nApply these sub-steps in order. The **first match** determines the verdict.\nThe ordering is deliberate: status check first (fast-fail for resolved\nfindings — no point evaluating conditions on a finding that is already\nclosed), then condition strength (the primary verdict lever), then principal\ntype (only reached when the condition is weak or absent).\n\n#### Step 1A.1: Check finding status\n\nIf `status` is `RESOLVED` or `ARCHIVED`, the finding has already been\naddressed. Output:\n\n```text\nVERDICT: SAFE\nREASON: Finding status is \u003Cstatus> — no longer an active risk. Access Analyzer re-evaluated the resource and the external-access path no longer exists (or the finding was archived).\nREMEDIATION: None required. If ARCHIVED, verify an archive rule exists to suppress future instances of the same pattern.\n```\n\nIf `status` is `ACTIVE`, continue.\n\n#### Step 1A.2: Evaluate condition strength\n\nPer-category detail (cryptographic, account-scoped, org-scoped, network-scoped, service-coupled, weak\u002Fforgeable, absent); ranked quick reference in the matrix below: [Advanced patterns](references\u002Fadvanced-patterns.md).\n\nIf the condition is CRYPTOGRAPHIC, ACCOUNT-SCOPED, ORGANIZATION-SCOPED (own\norg), or NETWORK-SCOPED → go to **Step 1A.3** (SAFE).\n\nIf the condition is WEAK, FORGEABLE, or ABSENT → go to **Step 1A.4** (risk\nassessment).\n\n#### Step 1A.3: Condition-bounded → SAFE\n\nThe access is cryptographically or network-bounded. The finding is valid\n(Access Analyzer correctly detected the external principal), but the condition\nprevents exploitation. Output:\n\n```text\nVERDICT: SAFE\nRISK: LOW\nREASON: Finding is valid but the condition \u003Ckey> bounds access to \u003Cscope>. The external principal cannot exploit this access without the source condition being met.\nREMEDIATION: No remediation required. Optionally create an archive rule to suppress future instances: filter on the same condition key + resource type.\n```\n\n#### Step 1A.4: Evaluate principal type\n\nNo restrictive condition (or weak condition). Classify by principal:\n\n**AWS service principal** (`{\"Service\": \"xxx.amazonaws.com\"}`):\nPer-principal-type classification detail (service, federated, external-account, public — including the destructive-action and known-partner exceptions): [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n**Federated principal** (`{\"Federated\": \"arn:aws:iam::ACCOUNT:saml-provider\u002Fxxx\"}` or `{\"Federated\": \"arn:aws:iam::ACCOUNT:oidc-provider\u002Fxxx\"}`):\n\n**Specific external account principal** (`arn:aws:iam::EXTERNAL_ACCOUNT:root` or specific role\u002Fuser):\n\n**Public principal** (`\"*\"`, `{\"AWS\": \"*\"}`):\n\n#### Step 1A.5: Resource-type severity matrix\n\nFor EXTERNAL_ACCESS findings, assign risk based on resource type and actions:\n\n**Risk-level mapping (emit exactly one RISK per finding):**\n\n| Resource type | Read\u002FList actions | Write\u002FModify actions | Admin\u002Ftrust actions |\n|---|---|---|---|\n| `AWS::KMS::Key` | **CRITICAL** (decrypt = full data access) | **CRITICAL** | **CRITICAL** |\n| `AWS::SecretsManager::Secret` | **CRITICAL** (credential theft) | **CRITICAL** | **CRITICAL** |\n| `AWS::S3::Bucket` \u002F `AWS::S3::AccessPoint` | **HIGH** (data exfiltration) | **CRITICAL** (data destruction \u002F ransomware) | **CRITICAL** |\n| `AWS::IAM::Role` (trust policy) | — | — | **CRITICAL** (anyone can assume the role) |\n| `AWS::SQS::Queue` | **MODERATE** (message consumption) | **HIGH** (message injection \u002F queue poisoning) | **HIGH** |\n| `AWS::SNS::Topic` | **LOW** (topic metadata) | **MODERATE** (message injection) | **MODERATE** |\n| `AWS::Lambda::Function` | **MODERATE** (invoke = code execution) | **HIGH** | **HIGH** |\n| `AWS::EventBridge::EventBus` | **LOW** | **MODERATE** (event injection) | **MODERATE** |\n| `AWS::EFS::FileSystem` | **HIGH** (file read) | **CRITICAL** (file write \u002F ransomware) | **CRITICAL** |\n| `AWS::Backup::BackupVault` | **HIGH** (backup read) | **CRITICAL** (backup deletion) | **CRITICAL** |\n| Other (`AWS::OpenSearch::Domain`, `AWS::Glue::*`, etc.) | **MODERATE** | **HIGH** | **HIGH** |\n\n**Severity escalation rules:**\n- If the action set includes wildcard actions (`s3:*`, `kms:*`, `sqs:*`),\n  escalate to the column for **Admin\u002Ftrust actions** — wildcard includes\n  deletion and configuration changes.\nEscalation detail — isPublic + KMS\u002FSecrets\u002FS3-write → IMMEDIATE, specific-account one-level downgrade, `kms:CreateGrant` always CRITICAL: [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n#### Step 1A.6: Expected service integrations reference\n\nIf the principal is a service principal AND the resource type + actions match\na row below, classify as **EXPECTED**:\n\nFull 20-row integrations table (CloudTrail, logging, Config, Lambda, ECS, EC2, SSM, Backup, ELB, SNS, SQS, events, delivery.logs, Athena, States, GuardDuty, Security Hub, Firehose, VPN): [Advanced patterns](references\u002Fadvanced-patterns.md).\n\nIf the service principal is NOT in this table, classify as EXPECTED only if\nthe actions are read\u002Flist or standard delivery actions (`s3:PutObject`,\n`sns:Publish`, `sqs:SendMessage`, `sts:AssumeRole`). Flag for manual review\nin REMEDIATION: \"Unrecognized service principal — verify the AWS integration\nis intentional.\"\n\n### Step 1B: Unused access — classify by type and risk\n\n#### Step 1B.1: Check finding status\n\nSame as Step 1A.1 — if RESOLVED or ARCHIVED, output SAFE.\n\n#### Step 1B.2: Classify by finding type and risk\n\nApply the unused-access risk ranking:\n\n**UnusedIAMUserAccessKey → UNUSED_ACCESS \u002F HIGH:**\nRisk-ranking rationale for each unused-access type (credential-theft vector, MFA dependency, attack-surface expansion, scoping opportunity, governance cleanup): [Advanced patterns](references\u002Fadvanced-patterns.md).\n- If the user has admin-level policies attached, escalate to **CRITICAL**.\n\n**UnusedIAMUserPassword → UNUSED_ACCESS \u002F MODERATE:**\n- Risk is **MODERATE**. Escalate to **HIGH** if MFA is not enabled for the\n  user.\n\n**UnusedIAMRole → UNUSED_ACCESS \u002F MODERATE (default):**\n- Default risk is **MODERATE**. Adjust based on the role's attached policies:\n  - Role with `AdministratorAccess` or wildcard actions → **HIGH**\n  - Role with read-only or scoped permissions → **MODERATE**\n  - Role with write access to production resources → **HIGH**\n\n**UnusedIAMPermission → UNUSED_ACCESS \u002F LOW:**\n- Risk is **LOW**. The remediation is to generate a scoped policy from\n  CloudTrail activity (same workflow as `iam-least-privilege-advisor`).\n\n**UnusedServiceControlPolicy → UNUSED_ACCESS \u002F LOW:**\n- An SCP that does not affect any account is a **governance cleanup** item.\n- Risk is **LOW**. The SCP may be intentionally broad (deny-by-default) or\n  may be a leftover from a reorganization.\n\n#### Step 1B.3: Expected-unused patterns\n\nThe four expected-unused patterns — service-linked roles, break-glass\u002Femergency access, cross-account audit roles, AWS-managed job-function roles: [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n### Step 2: Aggregation\n\nWhen triaging multiple findings, the **highest-risk finding** determines the\noverall priority:\n\nEXTERNAL_ACCESS (CRITICAL) > EXTERNAL_ACCESS (HIGH) >\nUNUSED_ACCESS (HIGH) > EXTERNAL_ACCESS (MODERATE) >\nUNUSED_ACCESS (MODERATE) > EXPECTED > SAFE\n\nGroup findings by resource to avoid duplicate remediation steps for the same\nresource.\n\n## Condition strength matrix (quick reference)\n\nRanked from strongest (non-exploitable) to weakest (no restriction):\n\n| Rank | Condition key | Operator | Strength | Triage effect |\n|---|---|---|---|---|\n| 1 | `aws:SourceArn` (concrete ARN) | `StringEquals` | **Cryptographic** — AWS validates the source resource at the service layer | → SAFE |\n| 2 | `aws:SourceArn` (wildcard ARN pattern) | `StringLike` | **Strong** — scoped to an account + service + region | → SAFE (note breadth) |\n| 3 | `aws:SourceAccount` | any | **Account-scoped** — request must originate from the named account | → SAFE |\n| 4 | `aws:PrincipalOrgID` (own org) | any | **Organization-scoped** — any principal in the org | → SAFE |\n| 5 | `aws:SourceVpce` | any | **Network-scoped** — must traverse named VPC endpoint | → SAFE |\n| 6 | `aws:SourceVpc` | any | **Network-scoped** — must originate in named VPC | → SAFE |\n| 7 | `kms:ViaService` | any | **Service-coupled** — KMS access only through named service | → SAFE (KMS only) |\n| 8 | `aws:SourceIp` (RFC1918 CIDR, no IGW) | any | **Network-scoped** — restricts to private IP range | → SAFE (caveat) |\n| 9 | `aws:SourceArn` (account-level wildcard) | `StringLike` | **Weak** — `arn:aws:s3:*:*:*` has no account scoping | → NOT SAFE |\n| 10 | `aws:SourceIp` (`0.0.0.0\u002F0`) | any | **None** — entire internet | → NOT SAFE |\n| 11 | `aws:Referer`, `aws:UserAgent` | any | **Forgeable** — client-supplied headers | → NOT SAFE |\n| 12 | `aws:PrincipalAccount` (deprecated) | any | **Unreliable** — may not be present in all request contexts | → EXPECTED (not SAFE) |\n| 13 | (absent) | — | **None** | → NOT SAFE |\n\n## Output format (per finding)\n\n```text\nFINDING: \u003Cfinding-id>\nRESOURCE: \u003Cresource-arn>\nRESOURCE_TYPE: \u003CAWS::S3::Bucket | AWS::KMS::Key | AWS::IAM::Role | ...>\nFINDING_TYPE: ExternalAccess | UnusedIAMRole | UnusedIAMUserAccessKey | ...\nVERDICT: EXTERNAL_ACCESS | UNUSED_ACCESS | EXPECTED | SAFE\nRISK: CRITICAL | HIGH | MODERATE | LOW\nREASON: \u003C1-2 sentences citing the finding type, principal, condition, and the classification rule that fired>\nREMEDIATION: \u003Cspecific action, or \"None required\" if expected\u002Fsafe>\n```\n\n### Multi-finding triage example\n\n```text\nFINDING: external-access-kms-prod-key\nRESOURCE: arn:aws:kms:us-east-1:123456789012:key\u002Fabc123\nRESOURCE_TYPE: AWS::KMS::Key\nFINDING_TYPE: ExternalAccess\nVERDICT: EXTERNAL_ACCESS\nRISK: CRITICAL\nREASON: Principal \"*\" with no restrictive condition grants kms:Decrypt and kms:Encrypt on a KMS key. isPublic is true. KMS decrypt access is CRITICAL because it provides full data-access to anything encrypted with this key.\nREMEDIATION: IMMEDIATE — restrict the KMS key policy to named internal principals only. If cross-account decrypt is required (e.g., shared data lake), add aws:SourceAccount or aws:SourceArn condition. Capture current policy: aws kms get-key-policy --key-id abc123 --policy-name default > \u002Ftmp\u002Fkms-backup.json before modifying.\n\nFINDING: unused-role-legacy-etl\nRESOURCE: arn:aws:iam::123456789012:role\u002Flegacy-etl-role\nRESOURCE_TYPE: AWS::IAM::Role\nFINDING_TYPE: UnusedIAMRole\nVERDICT: UNUSED_ACCESS\nRISK: MODERATE\nREASON: Role unused for 95 days (last accessed 2024-10-01). Stale identity expands attack surface — the role has s3:GetObject and s3:PutObject on production buckets; if session tokens were cached before the role became inactive, they could still be valid.\nREMEDIATION: Validate no workload depends on this role (check CloudTrail for any AssumeRole events in the last 30 days). If confirmed unused: detach policies, then delete the role. If still needed: scope down the policy and set a permissions boundary.\n```\n\n### Organization-scoped analyzer example (intra-org cross-account)\n\nFull worked example (EXPECTED verdict with archive-rule remediation): [Worked examples](references\u002Fworked-examples.md).\n\n## Anti-Patterns — NEVER\n\n- NEVER classify a `Principal: \"*\"` finding with no condition (or a weak\n  condition like `aws:Referer`) as SAFE. Without a cryptographic or\n  network-scoped condition, the access is public or forgeable. `isPublic: true`\n  in the finding confirms this — Access Analyzer has already evaluated the\n  condition and determined the access is effectively public. Note: even\n  `aws:SourceIp` does not save you here — IP conditions do not flip\n  `isPublic` to false.\n\n- NEVER treat `isPublic: false` as automatically safe. This is the most\n  common triage error. `isPublic: false` ONLY means the principal is not\n  `\"*\"` — it says nothing about whether the external account principal is\n  trusted. An `isPublic: false` finding with an external account principal\n  and no condition is still EXTERNAL_ACCESS because the external account\n  could be compromised. The `isPublic` field answers \"is this public?\" —\n  not \"is this safe?\" Always evaluate the condition and principal type\n  independently of `isPublic`.\n\n- NEVER classify a `Principal: \"*\"` finding with `aws:SourceArn` or\n  `aws:SourceAccount` as EXTERNAL_ACCESS. These conditions are\n  cryptographically enforced at the AWS service layer — the external principal\n  cannot forge the source resource or account. Classifying these as\n  EXTERNAL_ACCESS creates false-positive tickets and erodes trust in the\n  triage process. The correct verdict is SAFE.\n\n- NEVER mis-use organization-scoped analyzer flags. An account-scoped\n  analyzer WILL flag intra-org cross-account access as external — this is\n  correct behavior, not a false positive. If the principal is in a member\n  account of the same org, the finding is EXPECTED (intra-org integration),\n  not EXTERNAL_ACCESS. Conversely, do NOT assume an org-scoped analyzer\n  finding is intra-org — an org analyzer only flags truly external\n  principals. Check the principal's account against the org membership before\n  applying the intra-org EXPECTED classification.\n\n- NEVER classify an unused access key as EXPECTED. Unlike unused roles (which\n  may be break-glass), unused access keys are static programmatic credentials\n  with no MFA. They are credential-theft vectors. The only exception is an\n  access key for a service user that is documented as intentionally rotated\n  on a long cycle — even then, UNUSED_ACCESS is the safer verdict.\n\n- NEVER recommend deleting a service-linked role (role name contains\n  `aws-service-role` or the path includes `\u002Fservice-role\u002F`). Service-linked\n  roles are managed by AWS services and will be recreated when the service\n  needs them. Deleting them can break the service. The correct remediation is\n  EXPECTED — \"service-linked role, do not delete.\"\n\n- NEVER archive a finding as \"expected\" without documenting the business\n  justification. Archiving without documentation hides real risks and makes\n  future audits impossible. Every archived finding should have an archive\n  rule with a comment naming the integration, the owner, and the ticket\n  reference.\n\n- NEVER treat all AWS service principals as automatically safe. While most\n  service principals are expected integrations, a service principal granting\n  destructive actions on an unrelated resource is suspicious (e.g.,\n  `lambda.amazonaws.com` granted `s3:DeleteObject` on a backup bucket — this\n  is not a standard integration and should be investigated). Cross-check the\n  service principal against the Expected service integrations table.\n\n- NEVER ignore the finding's `analyzedAt` timestamp. If the finding was last\n  analyzed more than 24 hours ago, the resource policy may have changed since\n  the analysis. Always recommend re-running `aws accessanalyzer\n  list-findings` before acting on a stale finding. A finding that appears\n  CRITICAL may already be resolved if the policy was updated.\n\n- NEVER recommend modifying a resource-based policy without first capturing\n  the current policy. Resource policies are load-bearing for application\n  access — removing a grant can break production workloads silently. Always\n  capture a backup before any modification (pre-flight safety below).\n\n- NEVER confuse an account-scoped analyzer with an organization-scoped\n  analyzer. With an account analyzer, cross-account access within the same\n  org IS flagged as external. With an org analyzer, it is NOT. The triage\n  verdict depends on which analyzer generated the finding — the same finding\n  can be EXPECTED (intra-org) or EXTERNAL_ACCESS (truly external) depending\n  on the analyzer scope.\n\n- NEVER treat `aws:SourceIp` with `0.0.0.0\u002F0` as a restrictive condition.\n  This CIDR covers the entire internet and provides zero restriction — it is\n  functionally equivalent to no condition.\n\n- NEVER treat `aws:PrincipalAccount` as equivalent to `aws:SourceAccount`.\n  `aws:PrincipalAccount` is deprecated and may not be present in all request\n  contexts. If a finding relies on it, classify as EXPECTED (not SAFE) and\n  note the migration need.\n\n## Pre-flight safety gate (run before ANY remediation CLI)\n\n**HARD GATE: NEVER issue a destructive CLI command (`delete-*`, `put-*` on a\nresource policy, `detach-*`, `deactivate-*`\u002F`update-access-key --status\nInactive`, `delete-access-key`, or any command that modifies a resource-based\npolicy) without completing ALL pre-flight checks below first. If any check\nfails or cannot be completed, STOP and report — do not proceed with the\nremediation.**\n\n- **Confirmation gate:** before executing any destructive CLI command, emit\n  a confirmation prompt in the output: \"CONFIRM: about to \u003Ccommand> on\n  \u003Cresource>. This is potentially disruptive. Type 'yes' to proceed.\" Do not\n  auto-execute destructive commands in a pipeline or script without this\n  gate.\n\n- Finding-freshness re-check command (list-findings ACTIVE filter): [Diagnostic commands](references\u002Fdiagnostic-commands.md).\n\n- **Capture current resource policy before modification.** Each resource type\n  has a different command:\n  Per-resource-type capture commands (S3, KMS, SQS, Secrets Manager, IAM role trust): [Diagnostic commands](references\u002Fdiagnostic-commands.md).\n\nAdditive-vs-destructive change guidance (Deny is reversible; removed Allow loses intent): [Advanced patterns](references\u002Fadvanced-patterns.md).\n\nPublic-write incident-response sequence (contain first, capture after — the one exception to capture-before-modify): [Advanced patterns](references\u002Fadvanced-patterns.md).\n\nDeactivate-before-delete procedure (update-access-key --status Inactive, 1-2 week observation): [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n## Remediation guidance\n\n### For EXTERNAL_ACCESS (public — Principal: \"*\", no condition)\n\nFive-step playbook (containment → root-cause → conditional grant → CloudTrail audit → CreateGrant revocation): [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n### For EXTERNAL_ACCESS (specific external account, no condition)\n\nFour-step playbook (verify partner → archive rule → restrict → bound with condition): [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n### For UNUSED_ACCESS (unused role)\n\nFour-step playbook (CloudTrail validation → delete → scope-down → service-linked-role exception): [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n### For UNUSED_ACCESS (unused access key)\n\nThree-step playbook (deactivate → 90-day CloudTrail audit → delete): [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n### For EXPECTED\n\nArchive-rule creation, justification documentation, quarterly review: [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n### For SAFE\n\nOptional archive rule and audit-note guidance: [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n## Archive-rule patterns\n\nArchive rules suppress findings that match a filter, so they do not clutter\nthe active finding list. The proper pattern is:\n\nArchive-rule JSON template, analyzer scoping (delegated administrator), and common patterns — log delivery, CI\u002FCD roles, KMS data-lake consumers, SNS\u002FSQS delivery: [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n## Recent AWS features (2024-2026)\n\nRecent features — unused-access GA, new resource types (S3 directory buckets, VPC endpoints, CloudWatch Logs), KMS\u002FSecrets Manager coverage, org-level archive-rule management: [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n## References (load on demand)\n\n- [Advanced patterns](references\u002Fadvanced-patterns.md) — expert deltas, finding-type schemas, condition\u002Fprincipal detail, escalation rules, integrations table, remediation playbooks, archive-rule patterns, recent features\n- [Worked examples](references\u002Fworked-examples.md) — zone-of-trust and organization-scoped analyzer worked examples\n- [Error handling](references\u002Ferror-handling.md) — malformed `condition` object handling\n- [Diagnostic commands](references\u002Fdiagnostic-commands.md) — pre-flight policy-capture commands per resource type\n\n## Domain\n\nAWS CloudOps \u002F IAM Access Analyzer Security & Compliance.\n\n## Related skills\n\nCompanion-skill usage detail: [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n## AWS documentation\n\n- **IAM Access Analyzer User Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002FIAM\u002Flatest\u002FUserGuide\u002Fwhat-is-access-analyzer.html\n- **IAM Access Analyzer API Reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Faccess-analyzer\u002Flatest\u002FAPIReference\u002F\n- **AWS CLI accessanalyzer command reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Freference\u002Faccessanalyzer\u002F\n- **AWS IAM Security Best Practices** — https:\u002F\u002Fdocs.aws.amazon.com\u002FIAM\u002Flatest\u002FUserGuide\u002Fbest-practices.html\n- **Unused access analysis** — https:\u002F\u002Fdocs.aws.amazon.com\u002FIAM\u002Flatest\u002FUserGuide\u002Faccess-analyzer-unused-access.html\n- **Blog: Identify unused IAM roles with IAM Access Analyzer** — https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fsecurity\u002Fidentify-unused-iam-roles-with-iam-access-analyzer-unused-access-analysis\u002F\n","# IAM Access Analyzer Finding Triage\n\n**Structural pattern:** Mindset → Quick Triage → Expert Deltas → Process → Matrices → Anti-Patterns → Pre-flight Gate → Remediation. Read top-to-bottom; the Quick Triage section is sufficient for 80% of findings. Descend into Process and Matrices only for edge cases.\n\n## Mindset\n\nFull framing (what Access Analyzer evaluates, real-risk vs expected-integration vs condition-bounded contrast): [Advanced patterns](references\u002Fadvanced-patterns.md).\n\nThe triage must distinguish:\n\n1. **Real risk** (EXTERNAL_ACCESS) — unconditional access to a principal\n   outside the zone of trust, or a public principal with no restrictive\n   condition.\n2. **Stale identity** (UNUSED_ACCESS) — an IAM role, user credential, or\n   permission grant that has not been used in the analysis period.\n3. **Expected integration** (EXPECTED) — a known cross-account or AWS-service\n   integration that Access Analyzer correctly flagged but the business has\n   accepted. These should be archived via an archive rule, not ignored.\n4. **Condition-bounded** (SAFE) — the finding is technically valid but a\n   cryptographic condition (`aws:SourceArn`, `aws:SourceAccount`) makes the\n   access non-exploitable by the external principal.\n\n## Quick triage (TL;DR decision flow)\n\nThis compact flow handles the majority of findings. For edge cases,\ndescend into the full Process section below.\n\n```\nINPUT: Access Analyzer finding JSON\n  │\n  ├─ findingType missing or unparseable? ──────────────────────► ERROR\n  │\n  ├─ findingType starts with \"Unused\"? ────────────────────────► Step 1B\n  │                                                              (unused-access path)\n  │\n  ├─ status is RESOLVED or ARCHIVED? ──────────────────────────► SAFE\n  │  (finding is no longer active — stop here)\n  │\n  ├─ CONDITION strength check (the primary verdict lever):\n  │  ├─ aws:SourceArn (concrete ARN, StringEquals)  ──────────► SAFE\n  │  ├─ aws:SourceArn (wildcard pattern, StringLike) ─────────► SAFE (note breadth)\n  │  ├─ aws:SourceAccount (specific account ID)     ──────────► SAFE\n  │  ├─ aws:PrincipalOrgID (own org)                ──────────► SAFE\n  │  ├─ aws:SourceVpce \u002F aws:SourceVpc (no IGW)     ──────────► SAFE\n  │  ├─ kms:ViaService                              ──────────► SAFE (KMS only)\n  │  ├─ aws:SourceIp = 0.0.0.0\u002F0                    ──────────► NOT SAFE (= no condition)\n  │  ├─ aws:Referer \u002F aws:UserAgent                 ──────────► NOT SAFE (forgeable)\n  │  └─ absent or {}                                ──────────► NOT SAFE (proceed to principal)\n  │\n  ├─ PRINCIPAL check (when condition is weak\u002Fabsent):\n  │  ├─ {\"Service\": \"xxx.amazonaws.com\"} + matches Expected table ─► EXPECTED\n  │  ├─ {\"Service\": \"xxx.amazonaws.com\"} + destructive actions     ─► EXTERNAL_ACCESS\n  │  ├─ {\"Federated\": same-account IdP}               ──────────► EXPECTED\n  │  ├─ {\"Federated\": external-account IdP}           ──────────► EXTERNAL_ACCESS (HIGH)\n  │  ├─ arn:aws:iam::EXTERNAL_ACCOUNT:root (no cond)  ──────────► EXTERNAL_ACCESS\n  │  └─ Principal \"*\" or {\"AWS\": \"*\"} (no cond)       ──────────► EXTERNAL_ACCESS\n  │\n  └─ RISK assigned via Resource-type severity matrix (Step 1A.5)\n```\n\n**Three rules that prevent the most common misclassifications:**\n\nFull wording of the three misclassification rules: [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n## Expert knowledge deltas (non-obvious thresholds)\n\nThese are insights that a senior CloudOps engineer learns from production\nincidents, not from the AWS documentation. Internalize them before triaging.\n\nAll eight expert deltas — identity-policy blind spot, `isPublic` algorithm, `StringEquals` vs `StringLike`, `kms:CreateGrant` chain, configurable analysis period, `analyzedAt` staleness, deprecated `aws:PrincipalAccount`, delegated-administrator archive rules: [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n## Zone of trust model (expert concept)\n\nAccess Analyzer defines a **zone of trust** based on the analyzer type. This\ndetermines what counts as \"external\" — the same resource-policy grant can be\nflagged or not flagged depending on which analyzer generated the finding:\n\nAccount-analyzer vs organization-analyzer zone-of-trust table (what each flags as external): [Advanced patterns](references\u002Fadvanced-patterns.md).\n\nAnalyzer-scope triage implication (account vs organization analyzer): [Advanced patterns](references\u002Fadvanced-patterns.md).\n\nWorked mini-example (same grant: EXPECTED under an account analyzer, unflagged under an org analyzer): [Worked examples](references\u002Fworked-examples.md).\n\n## Finding types\n\nAccess Analyzer generates two categories of findings. The skill handles both\nbut routes them through different classification paths:\n\nExternal-access finding schema (principal, `isPublic`, condition, action, resourceType), the analyzed resource-policy type catalog, and the unused-access finding-type table: [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n---\n\n## Process — Classification logic (apply in order)\n\n### Step 0: Validate input (AWS-specific field checks)\n\nField-by-field requirement table (routing target and default per missing field): [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n**Malformed `condition` object handling:**\nMalformed-condition cases — null\u002Fnon-dict, non-string values, nested operators: [Error handling](references\u002Ferror-handling.md).\n\nERROR-verdict output block for malformed\u002Funparseable findings: [Error handling](references\u002Ferror-handling.md).\n\nIf `findingType` is `ExternalAccess` → proceed to **Step 1A** (external access\nclassification).\n\nIf `findingType` starts with `Unused` → proceed to **Step 1B** (unused access\nclassification).\n\n### Step 1A: External access — classify by principal + condition\n\nApply these sub-steps in order. The **first match** determines the verdict.\nThe ordering is deliberate: status check first (fast-fail for resolved\nfindings — no point evaluating conditions on a finding that is already\nclosed), then condition strength (the primary verdict lever), then principal\ntype (only reached when the condition is weak or absent).\n\n#### Step 1A.1: Check finding status\n\nIf `status` is `RESOLVED` or `ARCHIVED`, the finding has already been\naddressed. Output:\n\n```text\nVERDICT: SAFE\nREASON: Finding status is \u003Cstatus> — no longer an active risk. Access Analyzer re-evaluated the resource and the external-access path no longer exists (or the finding was archived).\nREMEDIATION: None required. If ARCHIVED, verify an archive rule exists to suppress future instances of the same pattern.\n```\n\nIf `status` is `ACTIVE`, continue.\n\n#### Step 1A.2: Evaluate condition strength\n\nPer-category detail (cryptographic, account-scoped, org-scoped, network-scoped, service-coupled, weak\u002Fforgeable, absent); ranked quick reference in the matrix below: [Advanced patterns](references\u002Fadvanced-patterns.md).\n\nIf the condition is CRYPTOGRAPHIC, ACCOUNT-SCOPED, ORGANIZATION-SCOPED (own\norg), or NETWORK-SCOPED → go to **Step 1A.3** (SAFE).\n\nIf the condition is WEAK, FORGEABLE, or ABSENT → go to **Step 1A.4** (risk\nassessment).\n\n#### Step 1A.3: Condition-bounded → SAFE\n\nThe access is cryptographically or network-bounded. The finding is valid\n(Access Analyzer correctly detected the external principal), but the condition\nprevents exploitation. Output:\n\n```text\nVERDICT: SAFE\nRISK: LOW\nREASON: Finding is valid but the condition \u003Ckey> bounds access to \u003Cscope>. The external principal cannot exploit this access without the source condition being met.\nREMEDIATION: No remediation required. Optionally create an archive rule to suppress future instances: filter on the same condition key + resource type.\n```\n\n#### Step 1A.4: Evaluate principal type\n\nNo restrictive condition (or weak condition). Classify by principal:\n\n**AWS service principal** (`{\"Service\": \"xxx.amazonaws.com\"}`):\nPer-principal-type classification detail (service, federated, external-account, public — including the destructive-action and known-partner exceptions): [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n**Federated principal** (`{\"Federated\": \"arn:aws:iam::ACCOUNT:saml-provider\u002Fxxx\"}` or `{\"Federated\": \"arn:aws:iam::ACCOUNT:oidc-provider\u002Fxxx\"}`):\n\n**Specific external account principal** (`arn:aws:iam::EXTERNAL_ACCOUNT:root` or specific role\u002Fuser):\n\n**Public principal** (`\"*\"`, `{\"AWS\": \"*\"}`):\n\n#### Step 1A.5: Resource-type severity matrix\n\nFor EXTERNAL_ACCESS findings, assign risk based on resource type and actions:\n\n**Risk-level mapping (emit exactly one RISK per finding):**\n\n| Resource type | Read\u002FList actions | Write\u002FModify actions | Admin\u002Ftrust actions |\n|---|---|---|---|\n| `AWS::KMS::Key` | **CRITICAL** (decrypt = full data access) | **CRITICAL** | **CRITICAL** |\n| `AWS::SecretsManager::Secret` | **CRITICAL** (credential theft) | **CRITICAL** | **CRITICAL** |\n| `AWS::S3::Bucket` \u002F `AWS::S3::AccessPoint` | **HIGH** (data exfiltration) | **CRITICAL** (data destruction \u002F ransomware) | **CRITICAL** |\n| `AWS::IAM::Role` (trust policy) | — | — | **CRITICAL** (anyone can assume the role) |\n| `AWS::SQS::Queue` | **MODERATE** (message consumption) | **HIGH** (message injection \u002F queue poisoning) | **HIGH** |\n| `AWS::SNS::Topic` | **LOW** (topic metadata) | **MODERATE** (message injection) | **MODERATE** |\n| `AWS::Lambda::Function` | **MODERATE** (invoke = code execution) | **HIGH** | **HIGH** |\n| `AWS::EventBridge::EventBus` | **LOW** | **MODERATE** (event injection) | **MODERATE** |\n| `AWS::EFS::FileSystem` | **HIGH** (file read) | **CRITICAL** (file write \u002F ransomware) | **CRITICAL** |\n| `AWS::Backup::BackupVault` | **HIGH** (backup read) | **CRITICAL** (backup deletion) | **CRITICAL** |\n| Other (`AWS::OpenSearch::Domain`, `AWS::Glue::*`, etc.) | **MODERATE** | **HIGH** | **HIGH** |\n\n**Severity escalation rules:**\n- If the action set includes wildcard actions (`s3:*`, `kms:*`, `sqs:*`),\n  escalate to the column for **Admin\u002Ftrust actions** — wildcard includes\n  deletion and configuration changes.\nEscalation detail — isPublic + KMS\u002FSecrets\u002FS3-write → IMMEDIATE, specific-account one-level downgrade, `kms:CreateGrant` always CRITICAL: [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n#### Step 1A.6: Expected service integrations reference\n\nIf the principal is a service principal AND the resource type + actions match\na row below, classify as **EXPECTED**:\n\nFull 20-row integrations table (CloudTrail, logging, Config, Lambda, ECS, EC2, SSM, Backup, ELB, SNS, SQS, events, delivery.logs, Athena, States, GuardDuty, Security Hub, Firehose, VPN): [Advanced patterns](references\u002Fadvanced-patterns.md).\n\nIf the service principal is NOT in this table, classify as EXPECTED only if\nthe actions are read\u002Flist or standard delivery actions (`s3:PutObject`,\n`sns:Publish`, `sqs:SendMessage`, `sts:AssumeRole`). Flag for manual review\nin REMEDIATION: \"Unrecognized service principal — verify the AWS integration\nis intentional.\"\n\n### Step 1B: Unused access — classify by type and risk\n\n#### Step 1B.1: Check finding status\n\nSame as Step 1A.1 — if RESOLVED or ARCHIVED, output SAFE.\n\n#### Step 1B.2: Classify by finding type and risk\n\nApply the unused-access risk ranking:\n\n**UnusedIAMUserAccessKey → UNUSED_ACCESS \u002F HIGH:**\nRisk-ranking rationale for each unused-access type (credential-theft vector, MFA dependency, attack-surface expansion, scoping opportunity, governance cleanup): [Advanced patterns](references\u002Fadvanced-patterns.md).\n- If the user has admin-level policies attached, escalate to **CRITICAL**.\n\n**UnusedIAMUserPassword → UNUSED_ACCESS \u002F MODERATE:**\n- Risk is **MODERATE**. Escalate to **HIGH** if MFA is not enabled for the\n  user.\n\n**UnusedIAMRole → UNUSED_ACCESS \u002F MODERATE (default):**\n- Default risk is **MODERATE**. Adjust based on the role's attached policies:\n  - Role with `AdministratorAccess` or wildcard actions → **HIGH**\n  - Role with read-only or scoped permissions → **MODERATE**\n  - Role with write access to production resources → **HIGH**\n\n**UnusedIAMPermission → UNUSED_ACCESS \u002F LOW:**\n- Risk is **LOW**. The remediation is to generate a scoped policy from\n  CloudTrail activity (same workflow as `iam-least-privilege-advisor`).\n\n**UnusedServiceControlPolicy → UNUSED_ACCESS \u002F LOW:**\n- An SCP that does not affect any account is a **governance cleanup** item.\n- Risk is **LOW**. The SCP may be intentionally broad (deny-by-default) or\n  may be a leftover from a reorganization.\n\n#### Step 1B.3: Expected-unused patterns\n\nThe four expected-unused patterns — service-linked roles, break-glass\u002Femergency access, cross-account audit roles, AWS-managed job-function roles: [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n### Step 2: Aggregation\n\nWhen triaging multiple findings, the **highest-risk finding** determines the\noverall priority:\n\nEXTERNAL_ACCESS (CRITICAL) > EXTERNAL_ACCESS (HIGH) >\nUNUSED_ACCESS (HIGH) > EXTERNAL_ACCESS (MODERATE) >\nUNUSED_ACCESS (MODERATE) > EXPECTED > SAFE\n\nGroup findings by resource to avoid duplicate remediation steps for the same\nresource.\n\n## Condition strength matrix (quick reference)\n\nRanked from strongest (non-exploitable) to weakest (no restriction):\n\n| Rank | Condition key | Operator | Strength | Triage effect |\n|---|---|---|---|---|\n| 1 | `aws:SourceArn` (concrete ARN) | `StringEquals` | **Cryptographic** — AWS validates the source resource at the service layer | → SAFE |\n| 2 | `aws:SourceArn` (wildcard ARN pattern) | `StringLike` | **Strong** — scoped to an account + service + region | → SAFE (note breadth) |\n| 3 | `aws:SourceAccount` | any | **Account-scoped** — request must originate from the named account | → SAFE |\n| 4 | `aws:PrincipalOrgID` (own org) | any | **Organization-scoped** — any principal in the org | → SAFE |\n| 5 | `aws:SourceVpce` | any | **Network-scoped** — must traverse named VPC endpoint | → SAFE |\n| 6 | `aws:SourceVpc` | any | **Network-scoped** — must originate in named VPC | → SAFE |\n| 7 | `kms:ViaService` | any | **Service-coupled** — KMS access only through named service | → SAFE (KMS only) |\n| 8 | `aws:SourceIp` (RFC1918 CIDR, no IGW) | any | **Network-scoped** — restricts to private IP range | → SAFE (caveat) |\n| 9 | `aws:SourceArn` (account-level wildcard) | `StringLike` | **Weak** — `arn:aws:s3:*:*:*` has no account scoping | → NOT SAFE |\n| 10 | `aws:SourceIp` (`0.0.0.0\u002F0`) | any | **None** — entire internet | → NOT SAFE |\n| 11 | `aws:Referer`, `aws:UserAgent` | any | **Forgeable** — client-supplied headers | → NOT SAFE |\n| 12 | `aws:PrincipalAccount` (deprecated) | any | **Unreliable** — may not be present in all request contexts | → EXPECTED (not SAFE) |\n| 13 | (absent) | — | **None** | → NOT SAFE |\n\n## Output format (per finding)\n\n```text\nFINDING: \u003Cfinding-id>\nRESOURCE: \u003Cresource-arn>\nRESOURCE_TYPE: \u003CAWS::S3::Bucket | AWS::KMS::Key | AWS::IAM::Role | ...>\nFINDING_TYPE: ExternalAccess | UnusedIAMRole | UnusedIAMUserAccessKey | ...\nVERDICT: EXTERNAL_ACCESS | UNUSED_ACCESS | EXPECTED | SAFE\nRISK: CRITICAL | HIGH | MODERATE | LOW\nREASON: \u003C1-2 sentences citing the finding type, principal, condition, and the classification rule that fired>\nREMEDIATION: \u003Cspecific action, or \"None required\" if expected\u002Fsafe>\n```\n\n### Multi-finding triage example\n\n```text\nFINDING: external-access-kms-prod-key\nRESOURCE: arn:aws:kms:us-east-1:123456789012:key\u002Fabc123\nRESOURCE_TYPE: AWS::KMS::Key\nFINDING_TYPE: ExternalAccess\nVERDICT: EXTERNAL_ACCESS\nRISK: CRITICAL\nREASON: Principal \"*\" with no restrictive condition grants kms:Decrypt and kms:Encrypt on a KMS key. isPublic is true. KMS decrypt access is CRITICAL because it provides full data-access to anything encrypted with this key.\nREMEDIATION: IMMEDIATE — restrict the KMS key policy to named internal principals only. If cross-account decrypt is required (e.g., shared data lake), add aws:SourceAccount or aws:SourceArn condition. Capture current policy: aws kms get-key-policy --key-id abc123 --policy-name default > \u002Ftmp\u002Fkms-backup.json before modifying.\n\nFINDING: unused-role-legacy-etl\nRESOURCE: arn:aws:iam::123456789012:role\u002Flegacy-etl-role\nRESOURCE_TYPE: AWS::IAM::Role\nFINDING_TYPE: UnusedIAMRole\nVERDICT: UNUSED_ACCESS\nRISK: MODERATE\nREASON: Role unused for 95 days (last accessed 2024-10-01). Stale identity expands attack surface — the role has s3:GetObject and s3:PutObject on production buckets; if session tokens were cached before the role became inactive, they could still be valid.\nREMEDIATION: Validate no workload depends on this role (check CloudTrail for any AssumeRole events in the last 30 days). If confirmed unused: detach policies, then delete the role. If still needed: scope down the policy and set a permissions boundary.\n```\n\n### Organization-scoped analyzer example (intra-org cross-account)\n\nFull worked example (EXPECTED verdict with archive-rule remediation): [Worked examples](references\u002Fworked-examples.md).\n\n## Anti-Patterns — NEVER\n\n- NEVER classify a `Principal: \"*\"` finding with no condition (or a weak\n  condition like `aws:Referer`) as SAFE. Without a cryptographic or\n  network-scoped condition, the access is public or forgeable. `isPublic: true`\n  in the finding confirms this — Access Analyzer has already evaluated the\n  condition and determined the access is effectively public. Note: even\n  `aws:SourceIp` does not save you here — IP conditions do not flip\n  `isPublic` to false.\n\n- NEVER treat `isPublic: false` as automatically safe. This is the most\n  common triage error. `isPublic: false` ONLY means the principal is not\n  `\"*\"` — it says nothing about whether the external account principal is\n  trusted. An `isPublic: false` finding with an external account principal\n  and no condition is still EXTERNAL_ACCESS because the external account\n  could be compromised. The `isPublic` field answers \"is this public?\" —\n  not \"is this safe?\" Always evaluate the condition and principal type\n  independently of `isPublic`.\n\n- NEVER classify a `Principal: \"*\"` finding with `aws:SourceArn` or\n  `aws:SourceAccount` as EXTERNAL_ACCESS. These conditions are\n  cryptographically enforced at the AWS service layer — the external principal\n  cannot forge the source resource or account. Classifying these as\n  EXTERNAL_ACCESS creates false-positive tickets and erodes trust in the\n  triage process. The correct verdict is SAFE.\n\n- NEVER mis-use organization-scoped analyzer flags. An account-scoped\n  analyzer WILL flag intra-org cross-account access as external — this is\n  correct behavior, not a false positive. If the principal is in a member\n  account of the same org, the finding is EXPECTED (intra-org integration),\n  not EXTERNAL_ACCESS. Conversely, do NOT assume an org-scoped analyzer\n  finding is intra-org — an org analyzer only flags truly external\n  principals. Check the principal's account against the org membership before\n  applying the intra-org EXPECTED classification.\n\n- NEVER classify an unused access key as EXPECTED. Unlike unused roles (which\n  may be break-glass), unused access keys are static programmatic credentials\n  with no MFA. They are credential-theft vectors. The only exception is an\n  access key for a service user that is documented as intentionally rotated\n  on a long cycle — even then, UNUSED_ACCESS is the safer verdict.\n\n- NEVER recommend deleting a service-linked role (role name contains\n  `aws-service-role` or the path includes `\u002Fservice-role\u002F`). Service-linked\n  roles are managed by AWS services and will be recreated when the service\n  needs them. Deleting them can break the service. The correct remediation is\n  EXPECTED — \"service-linked role, do not delete.\"\n\n- NEVER archive a finding as \"expected\" without documenting the business\n  justification. Archiving without documentation hides real risks and makes\n  future audits impossible. Every archived finding should have an archive\n  rule with a comment naming the integration, the owner, and the ticket\n  reference.\n\n- NEVER treat all AWS service principals as automatically safe. While most\n  service principals are expected integrations, a service principal granting\n  destructive actions on an unrelated resource is suspicious (e.g.,\n  `lambda.amazonaws.com` granted `s3:DeleteObject` on a backup bucket — this\n  is not a standard integration and should be investigated). Cross-check the\n  service principal against the Expected service integrations table.\n\n- NEVER ignore the finding's `analyzedAt` timestamp. If the finding was last\n  analyzed more than 24 hours ago, the resource policy may have changed since\n  the analysis. Always recommend re-running `aws accessanalyzer\n  list-findings` before acting on a stale finding. A finding that appears\n  CRITICAL may already be resolved if the policy was updated.\n\n- NEVER recommend modifying a resource-based policy without first capturing\n  the current policy. Resource policies are load-bearing for application\n  access — removing a grant can break production workloads silently. Always\n  capture a backup before any modification (pre-flight safety below).\n\n- NEVER confuse an account-scoped analyzer with an organization-scoped\n  analyzer. With an account analyzer, cross-account access within the same\n  org IS flagged as external. With an org analyzer, it is NOT. The triage\n  verdict depends on which analyzer generated the finding — the same finding\n  can be EXPECTED (intra-org) or EXTERNAL_ACCESS (truly external) depending\n  on the analyzer scope.\n\n- NEVER treat `aws:SourceIp` with `0.0.0.0\u002F0` as a restrictive condition.\n  This CIDR covers the entire internet and provides zero restriction — it is\n  functionally equivalent to no condition.\n\n- NEVER treat `aws:PrincipalAccount` as equivalent to `aws:SourceAccount`.\n  `aws:PrincipalAccount` is deprecated and may not be present in all request\n  contexts. If a finding relies on it, classify as EXPECTED (not SAFE) and\n  note the migration need.\n\n## Pre-flight safety gate (run before ANY remediation CLI)\n\n**HARD GATE: NEVER issue a destructive CLI command (`delete-*`, `put-*` on a\nresource policy, `detach-*`, `deactivate-*`\u002F`update-access-key --status\nInactive`, `delete-access-key`, or any command that modifies a resource-based\npolicy) without completing ALL pre-flight checks below first. If any check\nfails or cannot be completed, STOP and report — do not proceed with the\nremediation.**\n\n- **Confirmation gate:** before executing any destructive CLI command, emit\n  a confirmation prompt in the output: \"CONFIRM: about to \u003Ccommand> on\n  \u003Cresource>. This is potentially disruptive. Type 'yes' to proceed.\" Do not\n  auto-execute destructive commands in a pipeline or script without this\n  gate.\n\n- Finding-freshness re-check command (list-findings ACTIVE filter): [Diagnostic commands](references\u002Fdiagnostic-commands.md).\n\n- **Capture current resource policy before modification.** Each resource type\n  has a different command:\n  Per-resource-type capture commands (S3, KMS, SQS, Secrets Manager, IAM role trust): [Diagnostic commands](references\u002Fdiagnostic-commands.md).\n\nAdditive-vs-destructive change guidance (Deny is reversible; removed Allow loses intent): [Advanced patterns](references\u002Fadvanced-patterns.md).\n\nPublic-write incident-response sequence (contain first, capture after — the one exception to capture-before-modify): [Advanced patterns](references\u002Fadvanced-patterns.md).\n\nDeactivate-before-delete procedure (update-access-key --status Inactive, 1-2 week observation): [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n## Remediation guidance\n\n### For EXTERNAL_ACCESS (public — Principal: \"*\", no condition)\n\nFive-step playbook (containment → root-cause → conditional grant → CloudTrail audit → CreateGrant revocation): [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n### For EXTERNAL_ACCESS (specific external account, no condition)\n\nFour-step playbook (verify partner → archive rule → restrict → bound with condition): [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n### For UNUSED_ACCESS (unused role)\n\nFour-step playbook (CloudTrail validation → delete → scope-down → service-linked-role exception): [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n### For UNUSED_ACCESS (unused access key)\n\nThree-step playbook (deactivate → 90-day CloudTrail audit → delete): [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n### For EXPECTED\n\nArchive-rule creation, justification documentation, quarterly review: [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n### For SAFE\n\nOptional archive rule and audit-note guidance: [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n## Archive-rule patterns\n\nArchive rules suppress findings that match a filter, so they do not clutter\nthe active finding list. The proper pattern is:\n\nArchive-rule JSON template, analyzer scoping (delegated administrator), and common patterns — log delivery, CI\u002FCD roles, KMS data-lake consumers, SNS\u002FSQS delivery: [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n## Recent AWS features (2024-2026)\n\nRecent features — unused-access GA, new resource types (S3 directory buckets, VPC endpoints, CloudWatch Logs), KMS\u002FSecrets Manager coverage, org-level archive-rule management: [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n## References (load on demand)\n\n- [Advanced patterns](references\u002Fadvanced-patterns.md) — expert deltas, finding-type schemas, condition\u002Fprincipal detail, escalation rules, integrations table, remediation playbooks, archive-rule patterns, recent features\n- [Worked examples](references\u002Fworked-examples.md) — zone-of-trust and organization-scoped analyzer worked examples\n- [Error handling](references\u002Ferror-handling.md) — malformed `condition` object handling\n- [Diagnostic commands](references\u002Fdiagnostic-commands.md) — pre-flight policy-capture commands per resource type\n\n## Domain\n\nAWS CloudOps \u002F IAM Access Analyzer Security & Compliance.\n\n## Related skills\n\nCompanion-skill usage detail: [Advanced patterns](references\u002Fadvanced-patterns.md).\n\n## AWS documentation\n\n- **IAM Access Analyzer User Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002FIAM\u002Flatest\u002FUserGuide\u002Fwhat-is-access-analyzer.html\n- **IAM Access Analyzer API Reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Faccess-analyzer\u002Flatest\u002FAPIReference\u002F\n- **AWS CLI accessanalyzer command reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Freference\u002Faccessanalyzer\u002F\n- **AWS IAM Security Best Practices** — https:\u002F\u002Fdocs.aws.amazon.com\u002FIAM\u002Flatest\u002FUserGuide\u002Fbest-practices.html\n- **Unused access analysis** — https:\u002F\u002Fdocs.aws.amazon.com\u002FIAM\u002Flatest\u002FUserGuide\u002Faccess-analyzer-unused-access.html\n- **Blog: Identify unused IAM roles with IAM Access Analyzer** — https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fsecurity\u002Fidentify-unused-iam-roles-with-iam-access-analyzer-unused-access-analysis\u002F\n",{"name":5,"license":15,"metadata":24,"description":7,"compatibility":38},{"tags":25,"phase":26,"author":27,"domain":28,"family":29,"pattern":30,"version":31,"keywords":32,"complexity":33,"entry_point":34,"when_to_use":35,"requires_llm":36,"verdict_shape":37,"supports_pipeline":36},"iam, security, access-analyzer, finding-triage, external-access, unused-access, zone-of-trust","2","Jacky Chan — AWS Community Builder","aws-cloudops","Security","Mindset → Quick Triage → Expert Deltas → Process → Matrices → Anti-Patterns → Pre-flight Gate → Remediation","0.2.0","IAM Access Analyzer, external access, unused access, finding triage, zone of trust, isPublic, cross-account, resource-based policy, archive rule, UnusedIAMRole, unused access key, KMS key policy, S3 bucket policy, SQS queue policy, Secrets Manager, IAM role trust, condition strength, aws:SourceArn, aws:SourceAccount, service principal","high","false","Reviewing IAM Access Analyzer findings, triaging external-access or unused-access findings, prioritizing which findings to remediate first, validating whether a finding can be archived, or deciding if a cross-account resource-policy grant is an expected integration or a security risk.","true","EXTERNAL_ACCESS | UNUSED_ACCESS | EXPECTED | SAFE","Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf). No AWS CLI required for offline finding classification. Live-account triage uses aws accessanalyzer list-findings and aws accessanalyzer archive-rule (AWS CLI v2, SSO or key-based credentials).","main","eeace51bd5dd1db2030729d83eeab988861553aa","skills\u002Faccessanalyzer-finding-triage",0,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills","https:\u002F\u002Fgithub.com\u002Fjhkchan","CTO & Co-Founder @Beever-AI  & @votee. CAISP. AWS Community Builder. Organizer@GDGCloudHK. MongoDB Champion. Technopreneur + Infornographer.","2026-09-24 08:54:10",{"source":8,"skillName":5,"commands":48,"prompt":58,"zipAvailable":59},[49,52,55],{"tool":50,"command":51},"npx","npx skills add jhkchan\u002Faws-agent-skills --skill accessanalyzer-finding-triage",{"tool":53,"command":54},"bunx","bunx skills add jhkchan\u002Faws-agent-skills --skill accessanalyzer-finding-triage",{"tool":56,"command":57},"pnpm","pnpm dlx skills add jhkchan\u002Faws-agent-skills --skill accessanalyzer-finding-triage","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Faccessanalyzer-finding-triage\u002FSKILL.md",true,[61,67,71,75,79,83,87,91,95,99,103,107,111,115,119,123,127,131,135,139,143],{"path":62,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":65,"sourceHtmlUrl":66},"eval\u002Ftest-cases.yaml","REFERENCE","参考文档",6426,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Faccessanalyzer-finding-triage\u002Feval\u002Ftest-cases.yaml",{"path":68,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":69,"sourceHtmlUrl":70},"evals\u002Fbaselines\u002Fiam-role-trust-lambda-execution.md",884,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Faccessanalyzer-finding-triage\u002Fevals\u002Fbaselines\u002Fiam-role-trust-lambda-execution.md",{"path":72,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":73,"sourceHtmlUrl":74},"evals\u002Fbaselines\u002Fkms-external-public.md",920,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Faccessanalyzer-finding-triage\u002Fevals\u002Fbaselines\u002Fkms-external-public.md",{"path":76,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":77,"sourceHtmlUrl":78},"evals\u002Fbaselines\u002Fs3-source-arn-bounded.md",1021,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Faccessanalyzer-finding-triage\u002Fevals\u002Fbaselines\u002Fs3-source-arn-bounded.md",{"path":80,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":81,"sourceHtmlUrl":82},"evals\u002Fbaselines\u002Fsqs-external-write-public.md",823,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Faccessanalyzer-finding-triage\u002Fevals\u002Fbaselines\u002Fsqs-external-write-public.md",{"path":84,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":85,"sourceHtmlUrl":86},"evals\u002Fbaselines\u002Funused-access-key-ci-deployer.md",801,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Faccessanalyzer-finding-triage\u002Fevals\u002Fbaselines\u002Funused-access-key-ci-deployer.md",{"path":88,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":89,"sourceHtmlUrl":90},"evals\u002Fbaselines\u002Funused-role-legacy-etl.md",830,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Faccessanalyzer-finding-triage\u002Fevals\u002Fbaselines\u002Funused-role-legacy-etl.md",{"path":92,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":93,"sourceHtmlUrl":94},"evals\u002Feval_config.yaml",2082,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Faccessanalyzer-finding-triage\u002Fevals\u002Feval_config.yaml",{"path":96,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":97,"sourceHtmlUrl":98},"evals\u002Fevals.json",5109,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Faccessanalyzer-finding-triage\u002Fevals\u002Fevals.json",{"path":100,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":101,"sourceHtmlUrl":102},"evals\u002Fprompts\u002Fiam-role-trust-lambda-execution.md",609,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Faccessanalyzer-finding-triage\u002Fevals\u002Fprompts\u002Fiam-role-trust-lambda-execution.md",{"path":104,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":105,"sourceHtmlUrl":106},"evals\u002Fprompts\u002Fkms-external-public.md",602,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Faccessanalyzer-finding-triage\u002Fevals\u002Fprompts\u002Fkms-external-public.md",{"path":108,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":109,"sourceHtmlUrl":110},"evals\u002Fprompts\u002Fs3-source-arn-bounded.md",665,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Faccessanalyzer-finding-triage\u002Fevals\u002Fprompts\u002Fs3-source-arn-bounded.md",{"path":112,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":113,"sourceHtmlUrl":114},"evals\u002Fprompts\u002Fsqs-external-write-public.md",584,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Faccessanalyzer-finding-triage\u002Fevals\u002Fprompts\u002Fsqs-external-write-public.md",{"path":116,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":117,"sourceHtmlUrl":118},"evals\u002Fprompts\u002Funused-access-key-ci-deployer.md",690,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Faccessanalyzer-finding-triage\u002Fevals\u002Fprompts\u002Funused-access-key-ci-deployer.md",{"path":120,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":121,"sourceHtmlUrl":122},"evals\u002Fprompts\u002Funused-role-legacy-etl.md",638,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Faccessanalyzer-finding-triage\u002Fevals\u002Fprompts\u002Funused-role-legacy-etl.md",{"path":124,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":125,"sourceHtmlUrl":126},"example\u002FREADME.md",10184,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Faccessanalyzer-finding-triage\u002Fexample\u002FREADME.md",{"path":128,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":129,"sourceHtmlUrl":130},"references\u002Fadvanced-patterns.md",30896,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Faccessanalyzer-finding-triage\u002Freferences\u002Fadvanced-patterns.md",{"path":132,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":133,"sourceHtmlUrl":134},"references\u002Fdiagnostic-commands.md",1151,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Faccessanalyzer-finding-triage\u002Freferences\u002Fdiagnostic-commands.md",{"path":136,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":137,"sourceHtmlUrl":138},"references\u002Ferror-handling.md",1077,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Faccessanalyzer-finding-triage\u002Freferences\u002Ferror-handling.md",{"path":140,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":141,"sourceHtmlUrl":142},"references\u002Fworked-examples.md",1547,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Faccessanalyzer-finding-triage\u002Freferences\u002Fworked-examples.md",{"path":144,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":145,"sourceHtmlUrl":146},"skill.usf.yaml",4556,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Faccessanalyzer-finding-triage\u002Fskill.usf.yaml",[148,155,162,169,176,183],{"skillNo":149,"name":150,"nameZh":6,"description":151,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":152,"categories":153,"keywords":154,"publishedAt":19},"01M7ADVD60X4PCAPKSE58P9NDC","xray-tracing-deployer","Deploys AWS X-Ray distributed tracing with production-grade configuration: X-Ray daemon deployment (EC2 systemd, ECS sidecar, EKS DaemonSet, Lambda built-in), SDK instrumentation (Java, Python, Node.js, Go, .NET) with annotations and metadata, sampling rules (default reservoir + rate vs custom rules with URL \u002F method \u002F service-name predicates), service map generation, trace query and retrieval, groups and insights, CloudWatch ServiceLens integration, IAM permissions (PutTraceSegments, GetSamplingRules), and latest features (Lambda Powertools tracing, OpenTelemetry \u002F ADOT Collector support, W3C trace context). Emits a READY_TO_DEPLOY checklist with every configuration item verified. Use when enabling X-Ray on a new application, adding tracing to ECS \u002F EKS \u002F Lambda, validating a sampling configuration, or generating daemon deployment CLI and IaC templates. Triggers: X-Ray, distributed tracing, X-Ray daemon, sampling rules, service map, X-Ray SDK, OpenTelemetry, ADOT, Lambda Powertools, CloudWatch ServiceLens.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxray-tracing-deployer\u002FSKILL.md",[],[],{"skillNo":156,"name":157,"nameZh":6,"description":158,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":159,"categories":160,"keywords":161,"publishedAt":19},"01M7ADTVJ7DCBM9CB1FY51GH7J","wellarchitected-workload-auditor","Audits AWS Well-Architected Tool workloads for review staleness, per-pillar high-risk issue counts, milestone tracking gaps, and remediation plan completeness. Emits a deterministic verdict (STALE_REVIEW | HIGH_RISK | CONFIG_GAP | OK) per workload with per-pillar risk breakdown, milestone trend analysis, and specific remediation. Use when reviewing Well-Architected workloads, checking WA review freshness, auditing high-risk issues per pillar, validating milestone coverage, or tracking remediation plans.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwellarchitected-workload-auditor\u002FSKILL.md",[],[],{"skillNo":163,"name":164,"nameZh":6,"description":165,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":166,"categories":167,"keywords":168,"publishedAt":19},"01M7ADT59G6FTTNZYHT2QRPNNP","wellarchitected-review-operator","Operates AWS Well-Architected Tool reviews end-to-end — creates workloads, runs pillar reviews (operational excellence, security, reliability, performance, cost optimization, sustainability, Prosperity), answers questions with risk-tier rationale, generates reports and improvement plans, creates milestones, and integrates with Trusted Advisor and Well-Architected Labs. Runs deterministic pre-checks (workload existence, lens availability, pillar coverage), emits the exact update-answer \u002F get-consolidated-report CLI behind a CONFIRM gate, and verifies risk-tier transitions. Emits READY | BLOCKED | COMPLETED. Use when creating a workload, answering pillar questions, generating an improvement plan, creating a milestone, or integrating with Trusted Advisor. Triggers: well-architected tool, well architected review, workload review, pillar, operational excellence, security, reliability, performance, cost optimization, sustainability, prosperity, improvement plan, milestone, trusted advisor.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwellarchitected-review-operator\u002FSKILL.md",[],[],{"skillNo":170,"name":171,"nameZh":6,"description":172,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":173,"categories":174,"keywords":175,"publishedAt":19},"01M7ADSH5JA9QHNPPHQCD7EVA7","wafv2-web-acl-deployer","Provisions AWS WAFv2 Web ACLs with correct production defaults: scope selection (CLOUDFRONT vs REGIONAL), managed rule groups (AWSManagedRulesCommonRuleSet, SQLiRuleSet, LinuxRuleSet, WindowsRuleSet, IPReputationList, BotControlRuleSet, AmazonIpReputationList, ATP), custom rules (byte match, IP set, regex pattern, geo match, size constraint, rate-based), rule priority ordering, logging destinations (Kinesis Firehose, CloudWatch Logs, S3), resource association (ALB, API Gateway, CloudFront), rate-based rules with aggregate keys (IP, forwarded IP), Challenge and CAPTCHA actions, and account takeover prevention. Emits a READY_TO_DEPLOY checklist. Use when creating a Web ACL, attaching managed rules, configuring rate limiting, enabling WAF logging, associating a Web ACL with an ALB\u002FAPI Gateway\u002FCloudFront, or configuring CAPTCHA\u002FChallenge actions. Triggers: create WAF Web ACL, WAFv2, managed rule groups, WAF rate limiting, WAF logging, WAF CAPTCHA, WAF Challenge action, bot control, ATP managed rules.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwafv2-web-acl-deployer\u002FSKILL.md",[],[],{"skillNo":177,"name":178,"nameZh":6,"description":179,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":180,"categories":181,"keywords":182,"publishedAt":19},"01M7ADRYFAT8R73FBNCHRC573X","wafv2-web-acl-auditor","Audits AWS WAFv2 Web ACL configurations to determine whether the ACL provides effective protection: default-action posture (Allow vs Block), managed-rule-group coverage gaps, rule effectiveness (BLOCK vs COUNT, shadow\u002Fbypass rules, stale exclusions), rate-based rule correctness, logging and visibility configuration, and text-transformation bypass vectors. Emits a deterministic verdict per Web ACL. Use when reviewing a WAFv2 Web ACL for security posture, checking managed-rule coverage, validating rate-limit configuration, auditing WAF logging, or hardening a WAF before production deployment. Triggers: WAF, WAFv2, Web ACL, managed rule group, AWSManagedRules, rate-based rule, CAPTCHA, Challenge, OverrideAction, Count mode, forwarded IP, Bot Control, ATP, text transformation, WAF logging, WAF visibility, OWASP, SQLi, XSS, RFI.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwafv2-web-acl-auditor\u002FSKILL.md",[],[],{"skillNo":184,"name":185,"nameZh":6,"description":186,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":187,"categories":188,"keywords":189,"publishedAt":19},"01M7ADR8W7G72JX4KFGN03QK8Q","waf-rule-deployer","Provisions AWS WAFv2 rule sets with production defaults: Web ACL creation (CloudFront scope in us-east-1 vs Regional scope), rule groups (managed vs custom) with capacity planning in WCU (Web ACL Capacity Units, 1500 default per ACL), managed rule groups (AWSManagedRulesCommonRuleSet, AWSManagedRulesSQLiRuleSet, AWSManagedRulesAmazonIpReputationList, AWSManagedRulesLinuxRuleSet, AWSManagedRulesWindowsRuleSet, AWSManagedRulesUnixRuleSet), custom rules (byte-match, regex pattern set, geo-match, rate-based), IP set and regex pattern set resources, rule priority ordering (lowest number evaluated first), action types (allow, block, count, CAPTCHA, Challenge), bot control managed rule group, account takeover. Triggers: create WAF rule, WAF managed rule group, WAF custom rule, WAF byte match, WAF geo match, WAF rate based rule, WAF IP set, WAF regex pattern set, WAF WCU budget, WAF CloudFront ACL, WAF logging Kinesis Firehose, WAF bot control, WAF ATP, WAF label matching, WAF Challenge action, WAF CAPTCHA.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwaf-rule-deployer\u002FSKILL.md",[],[]]