[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7A97E5PQF46NEGVGE0F0DS4":3,"skill-same:01M7A97E5PQF46NEGVGE0F0DS4":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":43,"commitSha":44,"skillDirectory":45,"forksCount":46,"repositoryHtmlUrl":47,"repositoryHomepageUrl":6,"ownerHtmlUrl":48,"ownerBlogUrl":6,"ownerDescription":49,"updatedAt":50,"install":51,"resources":64},"01M7A97E5PQF46NEGVGE0F0DS4","inspector2-finding-troubleshooter",null,"Diagnoses Amazon Inspector v2 vulnerability findings through a finding-type-driven diagnostic tree covering network reachability (unreachable ports, unintended IGW exposure, SG\u002FNAU cascade), package vulnerability (CVE in OS packages, language ecosystems npm\u002Fpip\u002Fgem\u002Fgo, Lambda layers, ECR container images), and code vulnerability (Lambda code scanning for injection, hardcoded secrets, path traversal). Walks severity (Critical\u002FHigh\u002FMedium\u002FLow) to remediation per type (patch packages via SSM Patch Manager, fix code, restrict security groups, rebuild ECR images, update Lambda layers), integrates SBOM export, Lambda layer scanning, ECR image scanning, and the latest Inspector code scanning for Lambda and SBOM export features. Emits ROOT_CAUSE_FOUND with the specific finding type, vulnerable artifact, and remediation path. Use when an Inspector finding fires, a CVE is reported on EC2\u002FECR\u002FLambda, network reachability is flagged, SBOM export shows vulnerable packages, or Lambda code scanning reports a code vuln.","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\u002Finspector2-finding-troubleshooter\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: inspector2-finding-troubleshooter\ndescription: Diagnoses Amazon Inspector v2 vulnerability findings through a finding-type-driven diagnostic tree covering network reachability (unreachable ports, unintended IGW exposure, SG\u002FNAU cascade), package vulnerability (CVE in OS packages, language ecosystems npm\u002Fpip\u002Fgem\u002Fgo, Lambda layers, ECR container images), and code vulnerability (Lambda code scanning for injection, hardcoded secrets, path traversal). Walks severity (Critical\u002FHigh\u002FMedium\u002FLow) to remediation per type (patch packages via SSM Patch Manager, fix code, restrict security groups, rebuild ECR images, update Lambda layers), integrates SBOM export, Lambda layer scanning, ECR image scanning, and the latest Inspector code scanning for Lambda and SBOM export features. Emits ROOT_CAUSE_FOUND with the specific finding type, vulnerable artifact, and remediation path. Use when an Inspector finding fires, a CVE is reported on EC2\u002FECR\u002FLambda, network reachability is flagged, SBOM export shows vulnerable packages, or Lambda code scanning reports a code vuln.\nlicense: Apache-2.0\ncompatibility: Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). Offline finding classification works from pasted finding JSON and CVE metadata. Live-account diagnosis uses aws inspector2 list-findings, describe-findings, batch-get-finding-details, list-coverage, list-sbom-export, batch-get-code-snippets, aws ecr describe-images and describe-image-scan-findings, aws lambda get-function-configuration, aws ssm list-inventory-entries, aws ec2 describe-security-groups, and aws...\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  task_type: troubleshoot\n  skill_class: capability\n  lifecycle_status: active\n  verdict_shape: ROOT_CAUSE_FOUND | NEED_MORE_INFO | ESCALATE\n  version: 0.1.0\n  author: Jacky Chan — AWS Community Builder\n  tags: aws, inspector, inspector2, vulnerability, cve, sbom, ecr-scan, lambda-scan, security, troubleshoot\n  dependencies: aws-orchestrator\n  keywords: aws, inspector, inspector v2, inspector2, vulnerability, CVE, network reachability, package vulnerability, code vulnerability, SBOM, software bill of materials, Lambda layer scanning, ECR image scanning, Lambda code scanning, patch management, SSM Patch Manager, security groups, SCA, SAST, cloudops, troubleshoot, security\n  when_to_use: Diagnosing an Amazon Inspector v2 finding — a CVE on an EC2 instance, ECR image, or Lambda function; a network reachability finding flagging an unintended internet-exposed port; a package vulnerability in an OS package, language ecosystem (npm, pip, gem, go, maven), or Lambda layer; a code vulnerability from Inspector code scanning for Lambda (injection, hardcoded secrets, path traversal); an SBOM export showing vulnerable packages; triaging a Critical or High finding; deciding whether to patch, suppress, or restrict; or running a \"what does this Inspector finding mean and how do I fix it\" page where the root cause may be a stale package, an unintended SG rule, a Lambda layer rebuild, or a code fix — not necessarily the resource itself.\n  when_not_to_use: Configuration posture audits (use securityhub-finding-auditor for control findings, AWS Config rule violations), Amazon Macie data classification alerts, Amazon GuardDuty threat detections (runtime threats — use guardduty-finding-troubleshooter), or AWS WAF blocks (use alb-5xx-troubleshooter step 5). This skill diagnoses Inspector scan findings (vulnerability + reachability + code), not detection services.\n---\n\n# Inspector v2 Finding Troubleshooter\n\nAn AWS CloudOps agent skill that diagnoses Amazon Inspector v2 findings\nthrough a finding-type-driven decision tree. The skill walks each finding\nto its root cause — vulnerable package, exposed port, Lambda code defect,\nstale Lambda layer — with verify commands, emits remediation per type\n(patch via SSM, restrict SGs, rebuild ECR images, update Lambda layers,\nfix code), and surfaces SBOM export, Lambda layer scanning, ECR image\nscanning, and the latest Inspector code scanning for Lambda features.\n\n## What this skill does\n\nClassifies an Inspector v2 finding by type (network reachability, package\nvulnerability, code vulnerability), severity (Critical\u002FHigh\u002FMedium\u002FLow),\nresource (EC2, ECR, Lambda, ECR repository), walks a type-specific\ndiagnostic tree to the vulnerable artifact, emits a ROOT_CAUSE_FOUND\nverdict with the specific finding type, the vulnerable package \u002F CVE \u002F\nport \u002F code location, and the remediation path. Validates SBOM export,\nLambda layer scanning, and Inspector code scanning outputs.\n\n## STRICT output contract\n\nWhen this skill is invoked with an Inspector finding (finding ARN,\nfinding JSON, CVE id, or a resource ARN flagged by Inspector), the agent\nMUST respond with the diagnostic block defined in §\"Output format\" using\nthe literal all-caps labels `TARGET:`, `VERDICT:`, `REASON:`, `FINDING_TYPE:`,\n`SEVERITY:`, `EVIDENCE:`, `REMEDIATION:`, and `CONFIRM:`. Do NOT preface\nthe block with prose, headings, or disclaimers — emit the block as the\nfirst lines of the response. This contract is what assertion-based evals\nand downstream remediation pipelines rely on; deviating from the literal\nlabels breaks automation silently.\n\n## Mindset\n\n**One-line takeaway:** an Inspector finding is a *symptom*, not a *root\ncause*. The CVE names the vulnerability; the root cause is *why the\nvulnerable artifact is present* — an unpatched package, an unintended\nsecurity group, a stale Lambda layer, an inherited base image. Treat the\nfinding as the entry point, not the conclusion.\n\n- **Finding type drives the diagnostic.** Reachability → SG\u002FNAU\u002FIGW.\n  Package → package managers (yum, apt, npm, pip, gem, go), SBOM,\n  base image. Code → SAST rule, source line. Wrong type → wasted cycle.\n\n- **Severity drives the SLA, not the root cause.** A Critical finding\n  gets the page; the walk is identical. Do NOT skip evidence because\n  the severity is Critical — false-positive Criticals are common (the\n  vulnerable code path may be unreachable). Always verify with a probe.\n\n- **The resource is not always the right place to fix.** A Lambda CVE\n  is fixed at the *layer* or *deployment package*, not the function.\n  An ECR CVE is fixed by *rebuilding the image*, not patching the\n  running container. The skill routes the fix to the right layer.\n\n## Philosophy\n\n- **The finding JSON carries the root-cause signal.** The `Type`,\n  `Title`, `Resources`, `PackageVulnerability` (CVE, package, version,\n  fixed-in), `NetworkReachability` (port, protocol, CIDR), or\n  `CodeVulnerability` (file, line, snippet) block is the primary\n  diagnostic surface. Operators who \"see the CVE but don't know what to\n  do\" have often not read the full JSON — `batch-get-finding-details`\n  first.\n\n- **Inspector scans at scan time, not real-time.** A finding may be\n  stale: the package was already patched, the SG already restricted,\n  the Lambda layer already updated. Verify against current state before\n  recommending remediation. A finding `lastObservedAt` > 24h may\n  already be fixed.\n\n- **Reachability findings are topology problems, not package problems.**\n  The fix is in the SG\u002FNAU\u002FIGW chain — restrict the SG, remove a public\n  IP, add a NAT gateway, or isolate. Patching the resource's software\n  does NOT close a reachability finding.\n\n- **Lambda code scanning findings need code fixes, not package updates.**\n  Inspector code scanning for Lambda (2024-2025) flags source defects\n  (injection, hardcoded secrets, path traversal, weak crypto). The fix\n  is in the application code. The skill reads the `CodeSnippet` from\n  `batch-get-code-snippets` to pinpoint the line.\n\n## Quick navigation\n\n| If the symptom is... | Go to | First probe |\n|---|---|---|\n| `PackageVulnerability` finding on EC2 | Step 2a | `list-inventory-entries` for the CVE'd package |\n| `PackageVulnerability` finding on ECR | Step 2b | `describe-image-scan-findings` for the image |\n| `PackageVulnerability` finding on Lambda | Step 2c | `get-function-configuration` for layers + runtime |\n| `NetworkReachability` finding on EC2 | Step 3a | `describe-security-groups` for the flagged port |\n| `NetworkReachability` with IGW path | Step 3b | `describe-route-tables` + `describe-network-interfaces` |\n| `CodeVulnerability` finding on Lambda | Step 4 | `batch-get-code-snippets` for the source line |\n| Critical CVE without fixed-in version | Step 2d | upstream CVE database, vendor advisory |\n| SBOM export shows vulnerable package | Step 5 | `list-sbom-export` + parse CycloneDX\u002FSPDX |\n| Finding `lastObservedAt` > 24h ago | Step 6 | rescan or check current state |\n| Need the finding JSON format and fields | Reference | `references\u002Ffinding-types-reference.md` |\n\n## Pre-flight: finding classification and gather-info gate\n\nBefore running type-specific probes, gather the canonical finding JSON,\nthe resource metadata, and the Inspector coverage status. Misclassifying\nthe finding type (package vs reachability vs code) produces false root\ncauses and wrong remediation.\n\n### Account-wide pre-flight commands\n\nAll pre-flight commands (read-only): see `references\u002Fdiagnostic-commands.md` § Pre-flight.\n\n### Finding-type short-circuit\n\n| `Type` field | Effect on diagnosis |\n|---|---|\n| `PACKAGE_VULNERABILITY` | **Package CVE.** Look at `PackageVulnerability` block: CVE id, package name, vulnerable range, fixed-in version. Resource type (EC2, ECR, Lambda) determines the patch surface. |\n| `NETWORK_REACHABILITY` | **Reachability.** Look at `NetworkReachability` block: port, protocol, CIDR, scope (INTERNET \u002F INTERNAL). The SG\u002FNAU\u002FIGW chain is the fix surface, not packages. |\n| `CODE_VULNERABILITY` | **Lambda code defect.** Look at `CodeVulnerability` block: rule id, file path, line number, snippet. Source-level fix is required. Lambda-only. |\n| `LAMBDA_CODE_VULNERABILITY` | **Lambda code defect** (alt label). Same handling as `CODE_VULNERABILITY`. |\n| Mixed \u002F unknown | Pull `batch-get-finding-details` and read the full JSON before classifying. |\n\n### Severity short-circuit\n\n| Severity | SLA guidance | Diagnostic change |\n|---|---|---|\n| `Critical` | Page \u002F hours | Same root-cause walk; do NOT skip evidence. Verify against current state to rule out false positives. |\n| `High` | Same-day remediation | Same walk. |\n| `Medium` | Week | Same walk; batch with other findings. |\n| `Low` | Backlog | Same walk; may be acceptable risk. |\n| `Informational` | No SLA | SBOM or coverage metadata — usually not a remediation target. |\n\nIf the input is malformed (missing finding ARN, missing resource ARN,\nambiguous finding type, CVE id without a package name), emit `VERDICT:\nNEED_MORE_INFO` with `FINDING_TYPE: UNKNOWN` and list the specific\nmissing fields. Re-prompt for: (1) the finding ARN or full JSON from\n`batch-get-finding-details`, (2) the resource ARN (EC2\u002FECR\u002FLambda), and\n(3) the time window of the finding's last observation.\n\n## Process — Diagnostic decision tree (apply in finding-type order)\n\nThe diagnostic tree is finding-type-driven. Pick the entry point based on\nthe finding `Type`, then walk the type-specific probes in order. Each\nlayer ends with either a positive root-cause confirmation (failing probe\nthat matches the symptom) or a pass that moves to the next layer. **Never\nemit ROOT_CAUSE_FOUND without a failing probe that matches the finding.**\n\n### Step 0: Non-obvious behaviours that change diagnosis\n\nStale findings, exploitability conditions, layer-trace gotchas,\nauto-close behaviour, redacted snippets — see\n`references\u002Fadvanced-patterns.md` § Step 0.\n\n### Step 1: Finding entry — pick the diagnostic branch\n\nMap the finding `Type` to a branch and jump to that branch's section.\n\n| Type | Branch |\n|---|---|\n| `PACKAGE_VULNERABILITY` | Step 2 |\n| `NETWORK_REACHABILITY` | Step 3 |\n| `CODE_VULNERABILITY` \u002F `LAMBDA_CODE_VULNERABILITY` | Step 4 |\n| Ambiguous \u002F multi-finding | Step 1b |\n\n### Step 1b: Gather the full finding JSON (when the type is ambiguous)\n\nCommand: see `references\u002Fdiagnostic-commands.md` § Step 1b.\n\nThe response includes the full finding JSON. Read `Type`, `Title`,\n`Description`, and the type-specific block before classifying.\n\n### Step 2: Package vulnerability — diagnose the vulnerable package\n\n#### 2a: Package CVE on EC2 instance\n\nProbes: see `references\u002Fdiagnostic-commands.md` § Step 2a.\n\n**Verdict signals:**\n- `list-inventory-entries` shows the package in the CVE's vulnerable\n  range, AND `fixedInVersion` is in the patch baseline →\n  **ROOT_CAUSE_FOUND**, `LAYER: EC2_OS_PACKAGE`. Remediation: SSM Run\n  Command `AWS-RunPatchBaseline` or `AWS-InstallMissingUpdates`.\n- Instance NOT SSM-managed (no inventory) → **NEED_MORE_INFO**;\n  operator must enable SSM agent or patch manually.\n- Package version already >= `fixedInVersion` → finding is stale.\n  **ROOT_CAUSE_FOUND**, `LAYER: STALE_FINDING`. Will auto-close on\n  rescan.\n\n#### 2b: Package CVE on ECR image\n\nProbes: see `references\u002Fdiagnostic-commands.md` § Step 2b.\n\n**Verdict signals:**\n- CVE present and image is referenced by a running task →\n  **ROOT_CAUSE_FOUND**, `LAYER: ECR_BASE_IMAGE`. Remediation: rebuild\n  with a patched base (`FROM` in Dockerfile), push, redeploy the task.\n- Image old and not referenced by any running task →\n  `LAYER: STALE_IMAGE`. Remediation: delete (`batch-delete-image`) or\n  accept the risk; no running exposure.\n- Vulnerable package is an application dependency (not the base image)\n  → fix in the lockfile (`package-lock.json`, `requirements.txt`).\n\n#### 2c: Package CVE on Lambda function\n\nProbes: see `references\u002Fdiagnostic-commands.md` § Step 2c.\n\n**Verdict signals:**\n- Layer version older than the patched version →\n  **ROOT_CAUSE_FOUND**, `LAYER: LAMBDA_LAYER`. Remediation: publish a\n  new layer version with the patched dependency; update the function.\n- CVE in the deployment package (not a layer) →\n  `LAYER: LAMBDA_DEPLOYMENT_PACKAGE`. Remediation: rebuild the zip\n  with patched deps, `update-function-code`.\n- CVE in the runtime itself (e.g., `nodejs20.x`) →\n  `LAYER: LAMBDA_RUNTIME`. Remediation: update the function runtime;\n  AWS manages runtime patches.\n\n#### 2d: CVE without a fixed-in version\n\nIf `PackageVulnerability.fixedInVersion` is empty or null, the CVE has\nno upstream fix yet. **ROOT_CAUSE_FOUND**,\n`FINDING_TYPE: PACKAGE_VULNERABILITY`, `LAYER: NO_FIX_AVAILABLE`.\nRemediation options: suppress the finding if not exploitable, isolate\nthe resource (restrict SGs, move to private subnet), or apply a\nvendor mitigation (config change, WAF rule). Escalate to the package\nmaintainer.\n\n### Step 3: Network reachability — diagnose the exposed port\n\n#### 3a: SG rule exposes the flagged port\n\nProbes: see `references\u002Fdiagnostic-commands.md` § Step 3a.\n\n**Verdict signals:**\n- SG allows `0.0.0.0\u002F0` on the flagged port →\n  **ROOT_CAUSE_FOUND**, `LAYER: SG_OVERLY_PERMISSIVE`. Remediation:\n  restrict the SG to a referenced SG or specific CIDR.\n- SG allows a broad corporate CIDR (`10.0.0.0\u002F8`) →\n  `LAYER: SG_BROAD_CIDR`. Remediation: scope to the subnet or SG.\n- SG already scoped → finding may be stale or via another path. Step 3b.\n\n#### 3b: IGW route exposes the resource publicly\n\nProbes: see `references\u002Fdiagnostic-commands.md` § Step 3b.\n\n**Verdict signals:**\n- Instance has a public IP and the subnet route table has a `0.0.0.0\u002F0`\n  → an IGW → **ROOT_CAUSE_FOUND**, `LAYER: PUBLIC_IP_VIA_IGW`.\n  Remediation: remove the public IP, move behind NAT\u002FALB, restrict SG.\n- Private subnet but SG allows `0.0.0.0\u002F0` → reachability is INTERNAL\n  (the finding `scope` field distinguishes). Scope the SG regardless.\n\n### Step 4: Lambda code vulnerability — diagnose the source defect\n\nProbes: see `references\u002Fdiagnostic-commands.md` § Step 4.\n\n**Verdict signals:**\n- `batch-get-code-snippets` returns a snippet matching the rule (e.g.,\n  `child_process.exec` for command injection, hardcoded AWS key,\n  `fs.readFile(req.query.path)` for path traversal) →\n  **ROOT_CAUSE_FOUND**, `FINDING_TYPE: CODE_VULNERABILITY`,\n  `LAYER: LAMBDA_SOURCE_DEFECT`. Remediation: fix the source code\n  (sanitize input, remove hardcoded secret, validate path); redeploy\n  the function.\n- Snippet is `REDACTED` but the rule id + filePath identify the issue\n  (e.g., rule `JS-DANGEROUS-SDK-USAGE`, file `handler.js`) → same\n  verdict; operator must open the file manually.\n\n### Step 5: SBOM export integration\n\nProbes: see `references\u002Fdiagnostic-commands.md` § Step 5.\n\n**Verdict signals:**\n- SBOM export maps the CVE'd package to multiple resources →\n  **ROOT_CAUSE_FOUND**, `LAYER: SBOM_SCOPE`. Remediation: patch every\n  resource in the SBOM that has the vulnerable package version;\n  prioritize by severity and exposure.\n\n### Step 6: Staleness check — finding already fixed\n\nProbes: see `references\u002Fdiagnostic-commands.md` § Step 6.\n\n**Verdict signals:**\n- Finding `State: OPEN` but current package version >= `fixedInVersion`\n  → finding is stale; will close on next rescan.\n  **ROOT_CAUSE_FOUND**, `LAYER: STALE_FINDING`. Remediation: trigger\n  rescan or wait for the next cycle; no action needed.\n- Finding `State: CLOSED` → already resolved; no action.\n\n### Step 7: Escalate or NEED_MORE_INFO\n\nIf none of the above produced a positive root-cause match, OR the\nfinding is from a new Inspector detector without a documented\nremediation path, emit one of:\n\n- **ESCALATE** — AWS-side Inspector issue (e.g., a false-positive CVE\n  that Inspector will not suppress, a code-vulnerability rule that\n  fires on safe code). Surface the finding ARN, the rule id, and open\n  a Support case.\n- **NEED_MORE_INFO** — A specific probe requires operator input. List\n  the missing pieces (SSM agent not enabled, ECR scan not configured,\n  Lambda layer ARN unknown) and the next probe to run once the info is\n  available.\n\n## Output format\n\n```text\nTARGET: \u003Cresource-arn>\nVERDICT: ROOT_CAUSE_FOUND | NEED_MORE_INFO | ESCALATE\nREASON: \u003C1-2 sentences naming the finding type, the vulnerable artifact,\n  and the failing probe that confirmed the cause>\nFINDING_TYPE: \u003CPACKAGE_VULNERABILITY | NETWORK_REACHABILITY |\n               CODE_VULNERABILITY | UNKNOWN>\nSEVERITY: \u003CCRITICAL | HIGH | MEDIUM | LOW | INFORMATIONAL>\nLAYER: \u003CEC2_OS_PACKAGE | ECR_BASE_IMAGE | LAMBDA_LAYER |\n        LAMBDA_DEPLOYMENT_PACKAGE | LAMBDA_RUNTIME |\n        LAMBDA_SOURCE_DEFECT | SG_OVERLY_PERMISSIVE | SG_BROAD_CIDR |\n        PUBLIC_IP_VIA_IGW | SBOM_SCOPE | NO_FIX_AVAILABLE |\n        STALE_FINDING | STALE_IMAGE | UNKNOWN>\nEVIDENCE:\n  - \u003Cobserved finding — type, CVE, severity, last-observed time>\n  - \u003Cfailing probe — command and its output that confirms the cause>\n  - \u003Cpassing probes — layers ruled out>\nREMEDIATION:\n  1. \u003Cspecific action with CLI command — see references\u002Ffinding-types-reference.md\n     for copy-pasteable per-layer commands>\n  2. \u003Cverification command after the fix>\nCONFIRM: Before executing any state-changing CLI, emit and await operator\n  approval: \"CONFIRM: About to \u003Caction> on \u003Cresource-arn>. Proceed?\n  (yes\u002Fno)\"\n```\n\n### Worked example — Critical package CVE on EC2\n\n```text\nTARGET: arn:aws:ec2:us-east-1:111:instance\u002Fi-0abc123\nVERDICT: ROOT_CAUSE_FOUND\nREASON: Instance i-0abc123 has openssl-3.0.7 at version 3.0.7-1.amzn2023.1\n  which is within CVE-2024-XXXX vulnerable range (\u003C 3.0.8); the fixed\n  version 3.0.8-1.amzn2023.1 is available in the SSM Patch Baseline.\nFINDING_TYPE: PACKAGE_VULNERABILITY\nSEVERITY: CRITICAL\nLAYER: EC2_OS_PACKAGE\nEVIDENCE:\n  - Finding: PACKAGE_VULNERABILITY, CVE-2024-XXXX, severity CRITICAL,\n    lastObservedAt 2026-08-09T18:00Z.\n  - Probe: aws ssm list-inventory-entries --instance-id i-0abc123\n    --type AWS:Application --filters Key=Name,Values=openssl\n    returns Version: 3.0.7-1.amzn2023.1.\n  - Probe: aws ssm describe-patches --filters Key=PRODUCT,\n    Values=AmazonLinux2023 | jq '.[] | select(.CVEIds|\n    contains(\"CVE-2024-XXXX\"))' returns Version: 3.0.8-1.amzn2023.1.\n  - Passing: instance is SSM-managed; SSM agent online; patch baseline\n    assigned.\nREMEDIATION:\n  1. Apply the missing update via SSM Run Command (see references for\n     full command).\n  2. After the command completes, wait for the next Inspector scan; the\n     finding auto-closes when the patched version is detected.\n  3. Verify: aws ssm list-inventory-entries --instance-id i-0abc123\n    --type AWS:Application --filters Key=Name,Values=openssl\n    returns Version: 3.0.8-1.amzn2023.1.\nCONFIRM: Before running AWS-RunPatchBaseline, emit and await:\n  \"CONFIRM: About to apply patches on i-0abc123 (openssl 3.0.7 -> 3.0.8).\n   Proceed? (yes\u002Fno)\"\n```\n\nAdditional worked examples — Lambda hardcoded secret, SG overly\npermissive: see `references\u002Fworked-examples.md`.\n\nFinding triage priority matrix (exposure × severity): see `references\u002Fadvanced-patterns.md` § Triage priority.\n\n## Anti-Patterns — NEVER (top 5)\n\n1. **NEVER declare ROOT_CAUSE_FOUND without a failing probe that matches\n   the finding.** \"Must be the package\" without SSM inventory or ECR\n   scan output erodes trust. Every verdict needs a confirming probe.\n\n2. **NEVER confuse package vulnerability and reachability.** A\n   `PACKAGE_VULNERABILITY` finding is fixed by patching the package;\n   a `NETWORK_REACHABILITY` finding is fixed by restricting the SG or\n   removing the public IP. The finding type tells you the fix surface.\n\n3. **NEVER recommend patching a Lambda function's runtime for a code\n   vulnerability.** Code vulnerabilities are source defects — the fix\n   is in the application code. Updating the runtime does NOT close a\n   code finding. Read the `CodeSnippet` first.\n\n4. **NEVER manually close a finding that should auto-close on rescan.**\n   Inspector sets `State: CLOSED` when a rescan confirms the issue is\n   resolved. Manually closing creates audit noise. Use suppression\n   (`update-configuration` → filter) ONLY for confirmed false positives.\n\n5. **NEVER assume a Critical CVE is exploitable without checking the\n   conditions.** Many CVEs have conditions: only on specific OS, only\n   with a specific config, only if a vulnerable code path is called.\n   A Critical CVSS score does not mean the vulnerability is reachable.\n   Check the CVE description and upstream advisory first.\n\n**Additional critical mistakes:** `list-findings` returns a summary (use\n`batch-get-finding-details` for full JSON); never patch an ECR image in\nplace (rebuild); a Lambda layer CVE affects every function using the\nlayer ARN; never suppress without a documented reason; SBOM export is\nseparate from findings (use SBOM for scope, findings for action).\n\n## Pre-flight safety checks (run before any state-changing CLI)\n\n- **MANDATORY CONFIRMATION GATE.** Before any state-changing operation\n  (`send-command`, `update-function-code`, `revoke-security-group-ingress`,\n  `batch-delete-image`), emit and await operator approval.\n- **Read-only first.** Every probe (`batch-get-finding-details`,\n  `list-inventory-entries`, `describe-image-scan-findings`,\n  `get-function-configuration`, `describe-security-groups`,\n  `list-sbom-export`, `batch-get-code-snippets`) is read-only.\n- **SSM patches may require a reboot.** Verify the instance has a\n  maintenance window or is in an ASG that handles reboots.\n- **Lambda updates cause a cold start** on the next invocation.\n- **ECR image deletion is irreversible.** Verify no running task uses\n  the image digest first.\n- **SG changes affect all attached instances** — apply immediately.\n- **Inspector rescan is throttled.** The next scan cycle is usually\n  sufficient; avoid triggering immediate rescans.\n\nFor per-layer copy-pasteable remediation commands, see\n`references\u002Ffinding-types-reference.md`.\n\n## References (load on demand)\n\n- [Diagnostic commands](references\u002Fdiagnostic-commands.md) — read-only probes per diagnostic step\n- [Worked examples](references\u002Fworked-examples.md) — full walkthroughs\n- [Advanced patterns](references\u002Fadvanced-patterns.md) — non-obvious behaviours, triage matrix, 2024-2026 features\n- [Finding types reference](references\u002Ffinding-types-reference.md) — finding JSON format and per-layer remediation\n- [Remediation CLI commands](references\u002Fremediation-cli-commands.md) — copy-pasteable state-changing commands per LAYER verdict\n\n## Domain\n\nAWS CloudOps \u002F Inspector v2 Vulnerability Diagnostics, SBOM Integration,\nLambda Code Scanning, ECR Image Scanning, and SSM Patch Coordination.\n\nRecent AWS features (SBOM export, Lambda code scanning, ECR enhanced scanning, deep inspection): see `references\u002Fadvanced-patterns.md`.\n\n## AWS documentation\n\n- **Inspector User Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002Finspector\u002Flatest\u002Fuser\u002Finspector_v2.html\n- **Inspector finding types** — https:\u002F\u002Fdocs.aws.amazon.com\u002Finspector\u002Flatest\u002Fuser\u002Ffindings.html\n- **Inspector SBOM export** — https:\u002F\u002Fdocs.aws.amazon.com\u002Finspector\u002Flatest\u002Fuser\u002Fsbom-export.html\n- **Inspector Lambda code scanning** — https:\u002F\u002Fdocs.aws.amazon.com\u002Finspector\u002Flatest\u002Fuser\u002Flambda-code-scanning.html\n- **Inspector ECR scanning** — https:\u002F\u002Fdocs.aws.amazon.com\u002Finspector\u002Flatest\u002Fuser\u002Fec2-scanning.html\n- **Inspector suppression filters** — https:\u002F\u002Fdocs.aws.amazon.com\u002Finspector\u002Flatest\u002Fuser\u002Ffilters.html\n- **AWS CLI Inspector v2** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Freference\u002Finspector2\u002F\n- **SSM Patch Manager** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fsystems-manager\u002Flatest\u002Fuserguide\u002Fsysman-patch.html\n","# Inspector v2 Finding Troubleshooter\n\nAn AWS CloudOps agent skill that diagnoses Amazon Inspector v2 findings\nthrough a finding-type-driven decision tree. The skill walks each finding\nto its root cause — vulnerable package, exposed port, Lambda code defect,\nstale Lambda layer — with verify commands, emits remediation per type\n(patch via SSM, restrict SGs, rebuild ECR images, update Lambda layers,\nfix code), and surfaces SBOM export, Lambda layer scanning, ECR image\nscanning, and the latest Inspector code scanning for Lambda features.\n\n## What this skill does\n\nClassifies an Inspector v2 finding by type (network reachability, package\nvulnerability, code vulnerability), severity (Critical\u002FHigh\u002FMedium\u002FLow),\nresource (EC2, ECR, Lambda, ECR repository), walks a type-specific\ndiagnostic tree to the vulnerable artifact, emits a ROOT_CAUSE_FOUND\nverdict with the specific finding type, the vulnerable package \u002F CVE \u002F\nport \u002F code location, and the remediation path. Validates SBOM export,\nLambda layer scanning, and Inspector code scanning outputs.\n\n## STRICT output contract\n\nWhen this skill is invoked with an Inspector finding (finding ARN,\nfinding JSON, CVE id, or a resource ARN flagged by Inspector), the agent\nMUST respond with the diagnostic block defined in §\"Output format\" using\nthe literal all-caps labels `TARGET:`, `VERDICT:`, `REASON:`, `FINDING_TYPE:`,\n`SEVERITY:`, `EVIDENCE:`, `REMEDIATION:`, and `CONFIRM:`. Do NOT preface\nthe block with prose, headings, or disclaimers — emit the block as the\nfirst lines of the response. This contract is what assertion-based evals\nand downstream remediation pipelines rely on; deviating from the literal\nlabels breaks automation silently.\n\n## Mindset\n\n**One-line takeaway:** an Inspector finding is a *symptom*, not a *root\ncause*. The CVE names the vulnerability; the root cause is *why the\nvulnerable artifact is present* — an unpatched package, an unintended\nsecurity group, a stale Lambda layer, an inherited base image. Treat the\nfinding as the entry point, not the conclusion.\n\n- **Finding type drives the diagnostic.** Reachability → SG\u002FNAU\u002FIGW.\n  Package → package managers (yum, apt, npm, pip, gem, go), SBOM,\n  base image. Code → SAST rule, source line. Wrong type → wasted cycle.\n\n- **Severity drives the SLA, not the root cause.** A Critical finding\n  gets the page; the walk is identical. Do NOT skip evidence because\n  the severity is Critical — false-positive Criticals are common (the\n  vulnerable code path may be unreachable). Always verify with a probe.\n\n- **The resource is not always the right place to fix.** A Lambda CVE\n  is fixed at the *layer* or *deployment package*, not the function.\n  An ECR CVE is fixed by *rebuilding the image*, not patching the\n  running container. The skill routes the fix to the right layer.\n\n## Philosophy\n\n- **The finding JSON carries the root-cause signal.** The `Type`,\n  `Title`, `Resources`, `PackageVulnerability` (CVE, package, version,\n  fixed-in), `NetworkReachability` (port, protocol, CIDR), or\n  `CodeVulnerability` (file, line, snippet) block is the primary\n  diagnostic surface. Operators who \"see the CVE but don't know what to\n  do\" have often not read the full JSON — `batch-get-finding-details`\n  first.\n\n- **Inspector scans at scan time, not real-time.** A finding may be\n  stale: the package was already patched, the SG already restricted,\n  the Lambda layer already updated. Verify against current state before\n  recommending remediation. A finding `lastObservedAt` > 24h may\n  already be fixed.\n\n- **Reachability findings are topology problems, not package problems.**\n  The fix is in the SG\u002FNAU\u002FIGW chain — restrict the SG, remove a public\n  IP, add a NAT gateway, or isolate. Patching the resource's software\n  does NOT close a reachability finding.\n\n- **Lambda code scanning findings need code fixes, not package updates.**\n  Inspector code scanning for Lambda (2024-2025) flags source defects\n  (injection, hardcoded secrets, path traversal, weak crypto). The fix\n  is in the application code. The skill reads the `CodeSnippet` from\n  `batch-get-code-snippets` to pinpoint the line.\n\n## Quick navigation\n\n| If the symptom is... | Go to | First probe |\n|---|---|---|\n| `PackageVulnerability` finding on EC2 | Step 2a | `list-inventory-entries` for the CVE'd package |\n| `PackageVulnerability` finding on ECR | Step 2b | `describe-image-scan-findings` for the image |\n| `PackageVulnerability` finding on Lambda | Step 2c | `get-function-configuration` for layers + runtime |\n| `NetworkReachability` finding on EC2 | Step 3a | `describe-security-groups` for the flagged port |\n| `NetworkReachability` with IGW path | Step 3b | `describe-route-tables` + `describe-network-interfaces` |\n| `CodeVulnerability` finding on Lambda | Step 4 | `batch-get-code-snippets` for the source line |\n| Critical CVE without fixed-in version | Step 2d | upstream CVE database, vendor advisory |\n| SBOM export shows vulnerable package | Step 5 | `list-sbom-export` + parse CycloneDX\u002FSPDX |\n| Finding `lastObservedAt` > 24h ago | Step 6 | rescan or check current state |\n| Need the finding JSON format and fields | Reference | `references\u002Ffinding-types-reference.md` |\n\n## Pre-flight: finding classification and gather-info gate\n\nBefore running type-specific probes, gather the canonical finding JSON,\nthe resource metadata, and the Inspector coverage status. Misclassifying\nthe finding type (package vs reachability vs code) produces false root\ncauses and wrong remediation.\n\n### Account-wide pre-flight commands\n\nAll pre-flight commands (read-only): see `references\u002Fdiagnostic-commands.md` § Pre-flight.\n\n### Finding-type short-circuit\n\n| `Type` field | Effect on diagnosis |\n|---|---|\n| `PACKAGE_VULNERABILITY` | **Package CVE.** Look at `PackageVulnerability` block: CVE id, package name, vulnerable range, fixed-in version. Resource type (EC2, ECR, Lambda) determines the patch surface. |\n| `NETWORK_REACHABILITY` | **Reachability.** Look at `NetworkReachability` block: port, protocol, CIDR, scope (INTERNET \u002F INTERNAL). The SG\u002FNAU\u002FIGW chain is the fix surface, not packages. |\n| `CODE_VULNERABILITY` | **Lambda code defect.** Look at `CodeVulnerability` block: rule id, file path, line number, snippet. Source-level fix is required. Lambda-only. |\n| `LAMBDA_CODE_VULNERABILITY` | **Lambda code defect** (alt label). Same handling as `CODE_VULNERABILITY`. |\n| Mixed \u002F unknown | Pull `batch-get-finding-details` and read the full JSON before classifying. |\n\n### Severity short-circuit\n\n| Severity | SLA guidance | Diagnostic change |\n|---|---|---|\n| `Critical` | Page \u002F hours | Same root-cause walk; do NOT skip evidence. Verify against current state to rule out false positives. |\n| `High` | Same-day remediation | Same walk. |\n| `Medium` | Week | Same walk; batch with other findings. |\n| `Low` | Backlog | Same walk; may be acceptable risk. |\n| `Informational` | No SLA | SBOM or coverage metadata — usually not a remediation target. |\n\nIf the input is malformed (missing finding ARN, missing resource ARN,\nambiguous finding type, CVE id without a package name), emit `VERDICT:\nNEED_MORE_INFO` with `FINDING_TYPE: UNKNOWN` and list the specific\nmissing fields. Re-prompt for: (1) the finding ARN or full JSON from\n`batch-get-finding-details`, (2) the resource ARN (EC2\u002FECR\u002FLambda), and\n(3) the time window of the finding's last observation.\n\n## Process — Diagnostic decision tree (apply in finding-type order)\n\nThe diagnostic tree is finding-type-driven. Pick the entry point based on\nthe finding `Type`, then walk the type-specific probes in order. Each\nlayer ends with either a positive root-cause confirmation (failing probe\nthat matches the symptom) or a pass that moves to the next layer. **Never\nemit ROOT_CAUSE_FOUND without a failing probe that matches the finding.**\n\n### Step 0: Non-obvious behaviours that change diagnosis\n\nStale findings, exploitability conditions, layer-trace gotchas,\nauto-close behaviour, redacted snippets — see\n`references\u002Fadvanced-patterns.md` § Step 0.\n\n### Step 1: Finding entry — pick the diagnostic branch\n\nMap the finding `Type` to a branch and jump to that branch's section.\n\n| Type | Branch |\n|---|---|\n| `PACKAGE_VULNERABILITY` | Step 2 |\n| `NETWORK_REACHABILITY` | Step 3 |\n| `CODE_VULNERABILITY` \u002F `LAMBDA_CODE_VULNERABILITY` | Step 4 |\n| Ambiguous \u002F multi-finding | Step 1b |\n\n### Step 1b: Gather the full finding JSON (when the type is ambiguous)\n\nCommand: see `references\u002Fdiagnostic-commands.md` § Step 1b.\n\nThe response includes the full finding JSON. Read `Type`, `Title`,\n`Description`, and the type-specific block before classifying.\n\n### Step 2: Package vulnerability — diagnose the vulnerable package\n\n#### 2a: Package CVE on EC2 instance\n\nProbes: see `references\u002Fdiagnostic-commands.md` § Step 2a.\n\n**Verdict signals:**\n- `list-inventory-entries` shows the package in the CVE's vulnerable\n  range, AND `fixedInVersion` is in the patch baseline →\n  **ROOT_CAUSE_FOUND**, `LAYER: EC2_OS_PACKAGE`. Remediation: SSM Run\n  Command `AWS-RunPatchBaseline` or `AWS-InstallMissingUpdates`.\n- Instance NOT SSM-managed (no inventory) → **NEED_MORE_INFO**;\n  operator must enable SSM agent or patch manually.\n- Package version already >= `fixedInVersion` → finding is stale.\n  **ROOT_CAUSE_FOUND**, `LAYER: STALE_FINDING`. Will auto-close on\n  rescan.\n\n#### 2b: Package CVE on ECR image\n\nProbes: see `references\u002Fdiagnostic-commands.md` § Step 2b.\n\n**Verdict signals:**\n- CVE present and image is referenced by a running task →\n  **ROOT_CAUSE_FOUND**, `LAYER: ECR_BASE_IMAGE`. Remediation: rebuild\n  with a patched base (`FROM` in Dockerfile), push, redeploy the task.\n- Image old and not referenced by any running task →\n  `LAYER: STALE_IMAGE`. Remediation: delete (`batch-delete-image`) or\n  accept the risk; no running exposure.\n- Vulnerable package is an application dependency (not the base image)\n  → fix in the lockfile (`package-lock.json`, `requirements.txt`).\n\n#### 2c: Package CVE on Lambda function\n\nProbes: see `references\u002Fdiagnostic-commands.md` § Step 2c.\n\n**Verdict signals:**\n- Layer version older than the patched version →\n  **ROOT_CAUSE_FOUND**, `LAYER: LAMBDA_LAYER`. Remediation: publish a\n  new layer version with the patched dependency; update the function.\n- CVE in the deployment package (not a layer) →\n  `LAYER: LAMBDA_DEPLOYMENT_PACKAGE`. Remediation: rebuild the zip\n  with patched deps, `update-function-code`.\n- CVE in the runtime itself (e.g., `nodejs20.x`) →\n  `LAYER: LAMBDA_RUNTIME`. Remediation: update the function runtime;\n  AWS manages runtime patches.\n\n#### 2d: CVE without a fixed-in version\n\nIf `PackageVulnerability.fixedInVersion` is empty or null, the CVE has\nno upstream fix yet. **ROOT_CAUSE_FOUND**,\n`FINDING_TYPE: PACKAGE_VULNERABILITY`, `LAYER: NO_FIX_AVAILABLE`.\nRemediation options: suppress the finding if not exploitable, isolate\nthe resource (restrict SGs, move to private subnet), or apply a\nvendor mitigation (config change, WAF rule). Escalate to the package\nmaintainer.\n\n### Step 3: Network reachability — diagnose the exposed port\n\n#### 3a: SG rule exposes the flagged port\n\nProbes: see `references\u002Fdiagnostic-commands.md` § Step 3a.\n\n**Verdict signals:**\n- SG allows `0.0.0.0\u002F0` on the flagged port →\n  **ROOT_CAUSE_FOUND**, `LAYER: SG_OVERLY_PERMISSIVE`. Remediation:\n  restrict the SG to a referenced SG or specific CIDR.\n- SG allows a broad corporate CIDR (`10.0.0.0\u002F8`) →\n  `LAYER: SG_BROAD_CIDR`. Remediation: scope to the subnet or SG.\n- SG already scoped → finding may be stale or via another path. Step 3b.\n\n#### 3b: IGW route exposes the resource publicly\n\nProbes: see `references\u002Fdiagnostic-commands.md` § Step 3b.\n\n**Verdict signals:**\n- Instance has a public IP and the subnet route table has a `0.0.0.0\u002F0`\n  → an IGW → **ROOT_CAUSE_FOUND**, `LAYER: PUBLIC_IP_VIA_IGW`.\n  Remediation: remove the public IP, move behind NAT\u002FALB, restrict SG.\n- Private subnet but SG allows `0.0.0.0\u002F0` → reachability is INTERNAL\n  (the finding `scope` field distinguishes). Scope the SG regardless.\n\n### Step 4: Lambda code vulnerability — diagnose the source defect\n\nProbes: see `references\u002Fdiagnostic-commands.md` § Step 4.\n\n**Verdict signals:**\n- `batch-get-code-snippets` returns a snippet matching the rule (e.g.,\n  `child_process.exec` for command injection, hardcoded AWS key,\n  `fs.readFile(req.query.path)` for path traversal) →\n  **ROOT_CAUSE_FOUND**, `FINDING_TYPE: CODE_VULNERABILITY`,\n  `LAYER: LAMBDA_SOURCE_DEFECT`. Remediation: fix the source code\n  (sanitize input, remove hardcoded secret, validate path); redeploy\n  the function.\n- Snippet is `REDACTED` but the rule id + filePath identify the issue\n  (e.g., rule `JS-DANGEROUS-SDK-USAGE`, file `handler.js`) → same\n  verdict; operator must open the file manually.\n\n### Step 5: SBOM export integration\n\nProbes: see `references\u002Fdiagnostic-commands.md` § Step 5.\n\n**Verdict signals:**\n- SBOM export maps the CVE'd package to multiple resources →\n  **ROOT_CAUSE_FOUND**, `LAYER: SBOM_SCOPE`. Remediation: patch every\n  resource in the SBOM that has the vulnerable package version;\n  prioritize by severity and exposure.\n\n### Step 6: Staleness check — finding already fixed\n\nProbes: see `references\u002Fdiagnostic-commands.md` § Step 6.\n\n**Verdict signals:**\n- Finding `State: OPEN` but current package version >= `fixedInVersion`\n  → finding is stale; will close on next rescan.\n  **ROOT_CAUSE_FOUND**, `LAYER: STALE_FINDING`. Remediation: trigger\n  rescan or wait for the next cycle; no action needed.\n- Finding `State: CLOSED` → already resolved; no action.\n\n### Step 7: Escalate or NEED_MORE_INFO\n\nIf none of the above produced a positive root-cause match, OR the\nfinding is from a new Inspector detector without a documented\nremediation path, emit one of:\n\n- **ESCALATE** — AWS-side Inspector issue (e.g., a false-positive CVE\n  that Inspector will not suppress, a code-vulnerability rule that\n  fires on safe code). Surface the finding ARN, the rule id, and open\n  a Support case.\n- **NEED_MORE_INFO** — A specific probe requires operator input. List\n  the missing pieces (SSM agent not enabled, ECR scan not configured,\n  Lambda layer ARN unknown) and the next probe to run once the info is\n  available.\n\n## Output format\n\n```text\nTARGET: \u003Cresource-arn>\nVERDICT: ROOT_CAUSE_FOUND | NEED_MORE_INFO | ESCALATE\nREASON: \u003C1-2 sentences naming the finding type, the vulnerable artifact,\n  and the failing probe that confirmed the cause>\nFINDING_TYPE: \u003CPACKAGE_VULNERABILITY | NETWORK_REACHABILITY |\n               CODE_VULNERABILITY | UNKNOWN>\nSEVERITY: \u003CCRITICAL | HIGH | MEDIUM | LOW | INFORMATIONAL>\nLAYER: \u003CEC2_OS_PACKAGE | ECR_BASE_IMAGE | LAMBDA_LAYER |\n        LAMBDA_DEPLOYMENT_PACKAGE | LAMBDA_RUNTIME |\n        LAMBDA_SOURCE_DEFECT | SG_OVERLY_PERMISSIVE | SG_BROAD_CIDR |\n        PUBLIC_IP_VIA_IGW | SBOM_SCOPE | NO_FIX_AVAILABLE |\n        STALE_FINDING | STALE_IMAGE | UNKNOWN>\nEVIDENCE:\n  - \u003Cobserved finding — type, CVE, severity, last-observed time>\n  - \u003Cfailing probe — command and its output that confirms the cause>\n  - \u003Cpassing probes — layers ruled out>\nREMEDIATION:\n  1. \u003Cspecific action with CLI command — see references\u002Ffinding-types-reference.md\n     for copy-pasteable per-layer commands>\n  2. \u003Cverification command after the fix>\nCONFIRM: Before executing any state-changing CLI, emit and await operator\n  approval: \"CONFIRM: About to \u003Caction> on \u003Cresource-arn>. Proceed?\n  (yes\u002Fno)\"\n```\n\n### Worked example — Critical package CVE on EC2\n\n```text\nTARGET: arn:aws:ec2:us-east-1:111:instance\u002Fi-0abc123\nVERDICT: ROOT_CAUSE_FOUND\nREASON: Instance i-0abc123 has openssl-3.0.7 at version 3.0.7-1.amzn2023.1\n  which is within CVE-2024-XXXX vulnerable range (\u003C 3.0.8); the fixed\n  version 3.0.8-1.amzn2023.1 is available in the SSM Patch Baseline.\nFINDING_TYPE: PACKAGE_VULNERABILITY\nSEVERITY: CRITICAL\nLAYER: EC2_OS_PACKAGE\nEVIDENCE:\n  - Finding: PACKAGE_VULNERABILITY, CVE-2024-XXXX, severity CRITICAL,\n    lastObservedAt 2026-08-09T18:00Z.\n  - Probe: aws ssm list-inventory-entries --instance-id i-0abc123\n    --type AWS:Application --filters Key=Name,Values=openssl\n    returns Version: 3.0.7-1.amzn2023.1.\n  - Probe: aws ssm describe-patches --filters Key=PRODUCT,\n    Values=AmazonLinux2023 | jq '.[] | select(.CVEIds|\n    contains(\"CVE-2024-XXXX\"))' returns Version: 3.0.8-1.amzn2023.1.\n  - Passing: instance is SSM-managed; SSM agent online; patch baseline\n    assigned.\nREMEDIATION:\n  1. Apply the missing update via SSM Run Command (see references for\n     full command).\n  2. After the command completes, wait for the next Inspector scan; the\n     finding auto-closes when the patched version is detected.\n  3. Verify: aws ssm list-inventory-entries --instance-id i-0abc123\n    --type AWS:Application --filters Key=Name,Values=openssl\n    returns Version: 3.0.8-1.amzn2023.1.\nCONFIRM: Before running AWS-RunPatchBaseline, emit and await:\n  \"CONFIRM: About to apply patches on i-0abc123 (openssl 3.0.7 -> 3.0.8).\n   Proceed? (yes\u002Fno)\"\n```\n\nAdditional worked examples — Lambda hardcoded secret, SG overly\npermissive: see `references\u002Fworked-examples.md`.\n\nFinding triage priority matrix (exposure × severity): see `references\u002Fadvanced-patterns.md` § Triage priority.\n\n## Anti-Patterns — NEVER (top 5)\n\n1. **NEVER declare ROOT_CAUSE_FOUND without a failing probe that matches\n   the finding.** \"Must be the package\" without SSM inventory or ECR\n   scan output erodes trust. Every verdict needs a confirming probe.\n\n2. **NEVER confuse package vulnerability and reachability.** A\n   `PACKAGE_VULNERABILITY` finding is fixed by patching the package;\n   a `NETWORK_REACHABILITY` finding is fixed by restricting the SG or\n   removing the public IP. The finding type tells you the fix surface.\n\n3. **NEVER recommend patching a Lambda function's runtime for a code\n   vulnerability.** Code vulnerabilities are source defects — the fix\n   is in the application code. Updating the runtime does NOT close a\n   code finding. Read the `CodeSnippet` first.\n\n4. **NEVER manually close a finding that should auto-close on rescan.**\n   Inspector sets `State: CLOSED` when a rescan confirms the issue is\n   resolved. Manually closing creates audit noise. Use suppression\n   (`update-configuration` → filter) ONLY for confirmed false positives.\n\n5. **NEVER assume a Critical CVE is exploitable without checking the\n   conditions.** Many CVEs have conditions: only on specific OS, only\n   with a specific config, only if a vulnerable code path is called.\n   A Critical CVSS score does not mean the vulnerability is reachable.\n   Check the CVE description and upstream advisory first.\n\n**Additional critical mistakes:** `list-findings` returns a summary (use\n`batch-get-finding-details` for full JSON); never patch an ECR image in\nplace (rebuild); a Lambda layer CVE affects every function using the\nlayer ARN; never suppress without a documented reason; SBOM export is\nseparate from findings (use SBOM for scope, findings for action).\n\n## Pre-flight safety checks (run before any state-changing CLI)\n\n- **MANDATORY CONFIRMATION GATE.** Before any state-changing operation\n  (`send-command`, `update-function-code`, `revoke-security-group-ingress`,\n  `batch-delete-image`), emit and await operator approval.\n- **Read-only first.** Every probe (`batch-get-finding-details`,\n  `list-inventory-entries`, `describe-image-scan-findings`,\n  `get-function-configuration`, `describe-security-groups`,\n  `list-sbom-export`, `batch-get-code-snippets`) is read-only.\n- **SSM patches may require a reboot.** Verify the instance has a\n  maintenance window or is in an ASG that handles reboots.\n- **Lambda updates cause a cold start** on the next invocation.\n- **ECR image deletion is irreversible.** Verify no running task uses\n  the image digest first.\n- **SG changes affect all attached instances** — apply immediately.\n- **Inspector rescan is throttled.** The next scan cycle is usually\n  sufficient; avoid triggering immediate rescans.\n\nFor per-layer copy-pasteable remediation commands, see\n`references\u002Ffinding-types-reference.md`.\n\n## References (load on demand)\n\n- [Diagnostic commands](references\u002Fdiagnostic-commands.md) — read-only probes per diagnostic step\n- [Worked examples](references\u002Fworked-examples.md) — full walkthroughs\n- [Advanced patterns](references\u002Fadvanced-patterns.md) — non-obvious behaviours, triage matrix, 2024-2026 features\n- [Finding types reference](references\u002Ffinding-types-reference.md) — finding JSON format and per-layer remediation\n- [Remediation CLI commands](references\u002Fremediation-cli-commands.md) — copy-pasteable state-changing commands per LAYER verdict\n\n## Domain\n\nAWS CloudOps \u002F Inspector v2 Vulnerability Diagnostics, SBOM Integration,\nLambda Code Scanning, ECR Image Scanning, and SSM Patch Coordination.\n\nRecent AWS features (SBOM export, Lambda code scanning, ECR enhanced scanning, deep inspection): see `references\u002Fadvanced-patterns.md`.\n\n## AWS documentation\n\n- **Inspector User Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002Finspector\u002Flatest\u002Fuser\u002Finspector_v2.html\n- **Inspector finding types** — https:\u002F\u002Fdocs.aws.amazon.com\u002Finspector\u002Flatest\u002Fuser\u002Ffindings.html\n- **Inspector SBOM export** — https:\u002F\u002Fdocs.aws.amazon.com\u002Finspector\u002Flatest\u002Fuser\u002Fsbom-export.html\n- **Inspector Lambda code scanning** — https:\u002F\u002Fdocs.aws.amazon.com\u002Finspector\u002Flatest\u002Fuser\u002Flambda-code-scanning.html\n- **Inspector ECR scanning** — https:\u002F\u002Fdocs.aws.amazon.com\u002Finspector\u002Flatest\u002Fuser\u002Fec2-scanning.html\n- **Inspector suppression filters** — https:\u002F\u002Fdocs.aws.amazon.com\u002Finspector\u002Flatest\u002Fuser\u002Ffilters.html\n- **AWS CLI Inspector v2** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Freference\u002Finspector2\u002F\n- **SSM Patch Manager** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fsystems-manager\u002Flatest\u002Fuserguide\u002Fsysman-patch.html\n",{"name":5,"license":15,"metadata":24,"description":7,"compatibility":42},{"tags":25,"phase":26,"author":27,"domain":28,"family":29,"version":30,"keywords":31,"task_type":32,"complexity":33,"entry_point":34,"skill_class":35,"when_to_use":36,"dependencies":37,"requires_llm":38,"verdict_shape":39,"when_not_to_use":40,"lifecycle_status":41,"supports_pipeline":38},"aws, inspector, inspector2, vulnerability, cve, sbom, ecr-scan, lambda-scan, security, troubleshoot","2","Jacky Chan — AWS Community Builder","aws-cloudops","Security","0.1.0","aws, inspector, inspector v2, inspector2, vulnerability, CVE, network reachability, package vulnerability, code vulnerability, SBOM, software bill of materials, Lambda layer scanning, ECR image scanning, Lambda code scanning, patch management, SSM Patch Manager, security groups, SCA, SAST, cloudops, troubleshoot, security","troubleshoot","high","false","capability","Diagnosing an Amazon Inspector v2 finding — a CVE on an EC2 instance, ECR image, or Lambda function; a network reachability finding flagging an unintended internet-exposed port; a package vulnerability in an OS package, language ecosystem (npm, pip, gem, go, maven), or Lambda layer; a code vulnerability from Inspector code scanning for Lambda (injection, hardcoded secrets, path traversal); an SBOM export showing vulnerable packages; triaging a Critical or High finding; deciding whether to patch, suppress, or restrict; or running a \"what does this Inspector finding mean and how do I fix it\" page where the root cause may be a stale package, an unintended SG rule, a Lambda layer rebuild, or a code fix — not necessarily the resource itself.","aws-orchestrator","true","ROOT_CAUSE_FOUND | NEED_MORE_INFO | ESCALATE","Configuration posture audits (use securityhub-finding-auditor for control findings, AWS Config rule violations), Amazon Macie data classification alerts, Amazon GuardDuty threat detections (runtime threats — use guardduty-finding-troubleshooter), or AWS WAF blocks (use alb-5xx-troubleshooter step 5). This skill diagnoses Inspector scan findings (vulnerability + reachability + code), not detection services.","active","Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). Offline finding classification works from pasted finding JSON and CVE metadata. Live-account diagnosis uses aws inspector2 list-findings, describe-findings, batch-get-finding-details, list-coverage, list-sbom-export, batch-get-code-snippets, aws ecr describe-images and describe-image-scan-findings, aws lambda get-function-configuration, aws ssm list-inventory-entries, aws ec2 describe-security-groups, and aws...","main","eeace51bd5dd1db2030729d83eeab988861553aa","skills\u002Finspector2-finding-troubleshooter",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":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add jhkchan\u002Faws-agent-skills --skill inspector2-finding-troubleshooter",{"tool":57,"command":58},"bunx","bunx skills add jhkchan\u002Faws-agent-skills --skill inspector2-finding-troubleshooter",{"tool":60,"command":61},"pnpm","pnpm dlx skills add jhkchan\u002Faws-agent-skills --skill inspector2-finding-troubleshooter","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Finspector2-finding-troubleshooter\u002FSKILL.md",true,[65,71,75,79,83,87,91,95,99,103,107,111,115,119,123,127,131,135,139,143],{"path":66,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":70},"eval\u002Ftest-cases.yaml","REFERENCE","参考文档",5691,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Finspector2-finding-troubleshooter\u002Feval\u002Ftest-cases.yaml",{"path":72,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":73,"sourceHtmlUrl":74},"evals\u002Fbaselines\u002Fcritical-package-cve-ec2.md",635,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Finspector2-finding-troubleshooter\u002Fevals\u002Fbaselines\u002Fcritical-package-cve-ec2.md",{"path":76,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":77,"sourceHtmlUrl":78},"evals\u002Fbaselines\u002Flambda-code-vulnerability-hardcoded-secret.md",706,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Finspector2-finding-troubleshooter\u002Fevals\u002Fbaselines\u002Flambda-code-vulnerability-hardcoded-secret.md",{"path":80,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":81,"sourceHtmlUrl":82},"evals\u002Fbaselines\u002Fmissing-finding-context.md",558,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Finspector2-finding-troubleshooter\u002Fevals\u002Fbaselines\u002Fmissing-finding-context.md",{"path":84,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":85,"sourceHtmlUrl":86},"evals\u002Fbaselines\u002Fnetwork-reachability-sg-overly-permissive.md",714,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Finspector2-finding-troubleshooter\u002Fevals\u002Fbaselines\u002Fnetwork-reachability-sg-overly-permissive.md",{"path":88,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":89,"sourceHtmlUrl":90},"evals\u002Fbaselines\u002Fstale-finding-already-patched.md",571,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Finspector2-finding-troubleshooter\u002Fevals\u002Fbaselines\u002Fstale-finding-already-patched.md",{"path":92,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":93,"sourceHtmlUrl":94},"evals\u002Feval_config.yaml",1913,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Finspector2-finding-troubleshooter\u002Fevals\u002Feval_config.yaml",{"path":96,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":97,"sourceHtmlUrl":98},"evals\u002Fevals.json",10506,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Finspector2-finding-troubleshooter\u002Fevals\u002Fevals.json",{"path":100,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":101,"sourceHtmlUrl":102},"evals\u002Fprompts\u002Fcritical-package-cve-ec2.md",665,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Finspector2-finding-troubleshooter\u002Fevals\u002Fprompts\u002Fcritical-package-cve-ec2.md",{"path":104,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":105,"sourceHtmlUrl":106},"evals\u002Fprompts\u002Flambda-code-vulnerability-hardcoded-secret.md",606,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Finspector2-finding-troubleshooter\u002Fevals\u002Fprompts\u002Flambda-code-vulnerability-hardcoded-secret.md",{"path":108,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":109,"sourceHtmlUrl":110},"evals\u002Fprompts\u002Fmissing-finding-context.md",284,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Finspector2-finding-troubleshooter\u002Fevals\u002Fprompts\u002Fmissing-finding-context.md",{"path":112,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":113,"sourceHtmlUrl":114},"evals\u002Fprompts\u002Fnetwork-reachability-sg-overly-permissive.md",569,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Finspector2-finding-troubleshooter\u002Fevals\u002Fprompts\u002Fnetwork-reachability-sg-overly-permissive.md",{"path":116,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":117,"sourceHtmlUrl":118},"evals\u002Fprompts\u002Fstale-finding-already-patched.md",518,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Finspector2-finding-troubleshooter\u002Fevals\u002Fprompts\u002Fstale-finding-already-patched.md",{"path":120,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":121,"sourceHtmlUrl":122},"examples\u002FREADME.md",5136,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Finspector2-finding-troubleshooter\u002Fexamples\u002FREADME.md",{"path":124,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":125,"sourceHtmlUrl":126},"references\u002Fadvanced-patterns.md",5417,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Finspector2-finding-troubleshooter\u002Freferences\u002Fadvanced-patterns.md",{"path":128,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":129,"sourceHtmlUrl":130},"references\u002Fdiagnostic-commands.md",5457,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Finspector2-finding-troubleshooter\u002Freferences\u002Fdiagnostic-commands.md",{"path":132,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":133,"sourceHtmlUrl":134},"references\u002Ffinding-types-reference.md",10101,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Finspector2-finding-troubleshooter\u002Freferences\u002Ffinding-types-reference.md",{"path":136,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":137,"sourceHtmlUrl":138},"references\u002Fremediation-cli-commands.md",6282,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Finspector2-finding-troubleshooter\u002Freferences\u002Fremediation-cli-commands.md",{"path":140,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":141,"sourceHtmlUrl":142},"references\u002Fworked-examples.md",2739,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Finspector2-finding-troubleshooter\u002Freferences\u002Fworked-examples.md",{"path":144,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":145,"sourceHtmlUrl":146},"skill.usf.yaml",4635,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Finspector2-finding-troubleshooter\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",[],[]]