[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ADMG7Y90N6EE2YTAQZK4YC":3,"skill-same:01M7ADMG7Y90N6EE2YTAQZK4YC":148},{"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":40,"commitSha":41,"skillDirectory":42,"forksCount":43,"repositoryHtmlUrl":44,"repositoryHomepageUrl":6,"ownerHtmlUrl":45,"ownerBlogUrl":6,"ownerDescription":46,"updatedAt":47,"install":48,"resources":61},"01M7ADMG7Y90N6EE2YTAQZK4YC","vpc-lattice-auth-auditor",null,"Audits VPC Lattice service networks for auth-policy absence (default-open posture), public Principal:\"*\" Invoke grants, NotAction inverse-wildcard traps, cross-account principal exposure without strong conditions, target group security (IP targets to untrusted CIDRs, type-mismatch health checks), cross-account RAM share coverage, routing-rule catch-all exposure, and service-level auth-policy overrides that silently bypass network-level guards. Emits a deterministic verdict (NO_AUTH_POLICY | PUBLIC_SERVICE_NETWORK | CONFIG_GAP | OK) per service network with enumerated findings and CLI remediation. Use when reviewing VPC Lattice auth policies, checking service-network access scope, validating cross-account sharing, auditing target group security, or hardening service-network posture before production deployment.","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\u002Fvpc-lattice-auth-auditor\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: vpc-lattice-auth-auditor\ndescription: Audits VPC Lattice service networks for auth-policy absence (default-open posture), public Principal:\"*\" Invoke grants, NotAction inverse-wildcard traps, cross-account principal exposure without strong conditions, target group security (IP targets to untrusted CIDRs, type-mismatch health checks), cross-account RAM share coverage, routing-rule catch-all exposure, and service-level auth-policy overrides that silently bypass network-level guards. Emits a deterministic verdict (NO_AUTH_POLICY | PUBLIC_SERVICE_NETWORK | CONFIG_GAP | OK) per service network with enumerated findings and CLI remediation. Use when reviewing VPC Lattice auth policies, checking service-network access scope, validating cross-account sharing, auditing target group security, or hardening service-network posture before production deployment.\nlicense: Apache-2.0\ncompatibility: Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). No AWS CLI required for offline auth-policy-document classification. Live-account audits use aws vpc-lattice get-auth-policy, aws vpc-lattice list-service-networks, aws vpc-lattice list-target-groups, and aws ram list-resources (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: NO_AUTH_POLICY | PUBLIC_SERVICE_NETWORK | CONFIG_GAP | OK\n  when_to_use: Reviewing a VPC Lattice service network auth policy before production deployment, checking for absent auth policy (default-open posture), auditing public Principal:\"*\" Invoke grants, validating cross-account RAM share coverage, inspecting target group security, or hardening service-network access scope.\n  activation_triggers: audit this VPC Lattice service network, is my service network public, check lattice auth policy, vpc lattice cross-account access, lattice target group security, lattice RAM share audit, no auth policy on service network, vpc-lattice:Invoke exposure\n  invocation_schema: 'Input shape (one of): (a) auth-policy JSON + optional metadata (associations, services, target groups, RAM shares) for offline classification; (b) service-network identifier (sn-xxx) for live-account audit. Output shape: { SERVICE_NETWORK, VERDICT, REASON, FINDINGS[], REMEDIATION } where VERDICT ∈ { NO_AUTH_POLICY, PUBLIC_SERVICE_NETWORK, CONFIG_GAP, OK, ERROR }.'\n  version: 0.1.0\n  author: Jacky Chan — AWS Community Builder\n  keywords: VPC Lattice, auth policy, service network, vpc-lattice:Invoke, Principal:\"*\", cross-account, RAM share, target group, routing rule, resource policy, NotAction, service auth policy, lattice security, application networking, invoke access, auth policy override\n  tags: vpc-lattice, security, auth-policy, service-network, cross-account, ram, target-group, routing, audit\n---\n\n# VPC Lattice Auth Auditor\n\n## Mindset\n\n**One-line takeaway:** the verdict is the **worst** finding across all\ndimensions, and VPC Lattice has a trap unique among AWS resource-based\npolicies — **absence of an auth policy is the default state, and it means\n\"open within associated VPCs,\" not \"no access.\"**\n\nVPC Lattice is the application-networking layer between your services. Its\nauth model differs from KMS or S3 in a critical way:\n- **Auth policy absence is the DEFAULT.** A new service network has NO\n  resource-based auth policy. Without one, any resource in an associated VPC\n  can invoke any service in the network — IAM identity-based policy alone is\n  the only gate.\n- **`vpc-lattice:Invoke` is the blast-radius action.** One permission grants\n  the ability to call any service in the network. Unlike `kms:Decrypt` (data\n  exposure), Invoke grants **service-call access** — the caller can hit every\n  endpoint, API, and microservice behind the network.\n- **Service-level auth policy overrides network-level.** A service can carry\n  its OWN auth policy that silently replaces the service network's. A secure\n  network-level policy is bypassed by a permissive service-level override.\n\n## Quick-start (90-second audit)\n\nFor first-pass triage — full classification logic, edge cases, and remediation below.\n\n1. **Auth policy present?** `NOT_SET` → **NO_AUTH_POLICY** (default-open, worst verdict). Stop.\n2. **Any `Principal: \"*\"` with Invoke or `vpc-lattice:*` or `NotAction`?** → **PUBLIC_SERVICE_NETWORK**. Stop.\n3. **Any cross-account principal with Invoke?** → **CONFIG_GAP** (always, even with strong conditions). Stop.\n4. **IP targets outside VPC CIDR, RAM share without scoped policy, or permissive service-level override?** → **CONFIG_GAP**.\n5. **All dimensions clean?** → **OK**.\n\nWorst finding wins: NO_AUTH_POLICY > PUBLIC_SERVICE_NETWORK > CONFIG_GAP > OK.\n\n## Quick reference — verdict matrix\n\n| Condition | Verdict | Rule |\n|---|---|---|\n| No auth policy on service network (and no service-level policy) | **NO_AUTH_POLICY** | Step 1 |\n| Auth policy + `Principal: \"*\"` + Invoke\u002Fvpc-lattice:*\u002F* + no strong condition | **PUBLIC_SERVICE_NETWORK** | Rule 5a |\n| Auth policy + `Principal: \"*\"` + NotAction (inverse wildcard) | **PUBLIC_SERVICE_NETWORK** | Rule 5b |\n| Auth policy + cross-account + Invoke + no condition | **CONFIG_GAP** | Rule 5c |\n| Auth policy + cross-account + Invoke + STRONG condition | **CONFIG_GAP** | Rule 5d |\n| Auth policy + IP target group + targets outside VPC CIDR | **CONFIG_GAP** | Step 6 |\n| Auth policy + RAM share to external account + no scoped policy | **CONFIG_GAP** | Step 7 |\n| Auth policy + same-account + Invoke + STRONG condition + clean targets | **OK** | Step 9 |\n\nSee the ordered steps below for edge cases. Deep VPC Lattice authorization\ninternals are in the [Deep reference](#deep-reference-lattice-authorization)\nsection.\n\n## Pre-flight: service-network metadata gate (run before auth-policy classification)\n\nBefore evaluating the auth policy, classify the service network itself.\n\nLive-account pre-flight checks (run before auth-policy classification) — moved verbatim.\nFull detail: [Diagnostic commands](references\u002Fdiagnostic-commands.md).\n\n| Attribute | Value | Effect on audit |\n|---|---|---|\n| Auth policy state | `NOT_SET` | **No auth policy.** Default-open: any resource in an associated VPC can invoke services. Jump to Step 1. |\n| Auth policy state | `ACTIVE` | Proceed with full audit. |\n| Service count | 0 | Empty service network — no services to invoke. Note as operational but not a security verdict driver. |\n| VPC associations | 0 | No VPCs associated — the service network is not routable. Low risk but flag as orphaned. |\n| RAM shares | External account | Cross-account exposure — check auth policy covers the consumer account. |\n| RAM shares | None | No cross-account sharing. Proceed with same-account audit. |\n\nMalformed auth-policy ERROR output (pre-flight gate) — moved verbatim.\nFull detail: [Error handling](references\u002Ferror-handling.md).\n\n## Process — Classification logic (apply in order, aggregate worst)\n\n### Step 0: Critical classification rules (see Expert Knowledge for depth)\n\n- **No auth policy = DEFAULT-OPEN**, not locked down. Any resource in an\n  associated VPC can invoke. This drives Step 1.\n- **NotAction in an Allow = inverse wildcard.** Invoke is included. Treat\n  as INVOKE_ACCESS. This drives Rule 5b.\n- **Cross-account Invoke is ALWAYS CONFIG_GAP**, even with a STRONG\n  condition. Same-account + STRONG = OK (Rule 5h). This drives Step 5.\n- **Service-level auth policy silently overrides network-level.** Always\n  enumerate service-level policies independently. This drives Step 8.\n- **CloudTrail does NOT log `vpc-lattice:Invoke`** data-plane events.\n  Forensics need VPC Flow Logs, not CloudTrail.\n- **The `Resource` element is effectively ignored** in Lattice auth policies.\n  Use Principal and Condition to scope, never Resource.\n\nFull rationale and additional non-obvious behaviors in\n[Expert knowledge](#expert-knowledge-non-obvious-vpc-lattice-behaviors)\nat the end.\n\n### Step 1: Auth-policy presence (highest priority — default-open exposure)\n\nIf the service network has NO auth policy (`state: NOT_SET`) and NO\nservice-level auth policy:\n\n- **NO_AUTH_POLICY.** The service network is default-open. Any resource in\n  an associated VPC can invoke any service. If the network is shared\n  cross-account via RAM, the consumer account's VPC resources can also\n  invoke. This is the single most common VPC Lattice security finding.\n\nStep 1 rationale — why NO_AUTH_POLICY outranks a permissive policy — moved verbatim.\nFull detail: [Advanced Patterns](references\u002Fadvanced-patterns.md).\n\n### Step 2: Principal scope classification\n\nFor each `Effect: Allow` statement in the auth policy, classify the principal:\n\n- **WILDCARD_PRINCIPAL** — Principal is `\"*\"`, `{\"AWS\": \"*\"}`, or any\n  construct resolving to all principals.\n\n- **CROSS_ACCOUNT** — Principal includes an ARN whose 12-digit account ID\n  differs from the service network's owning account. Example: service\n  network in `111111111111` with principal\n  `arn:aws:iam::222222222222:role\u002Fconsumer-app`.\n\n- **SAME_ACCOUNT** — All principals share the owning account ID.\n\nA statement with BOTH same-account and cross-account principals is\nclassified by the **widest** scope — CROSS_ACCOUNT.\n\n### Step 3: Action danger classification\n\nClassify the action set in each Allow statement by danger level:\n\n| Danger level | Actions | Why |\n|---|---|---|\n| **INVOKE_ACCESS** | `vpc-lattice:Invoke`, `vpc-lattice:*`, `*`, NotAction in Allow | Can call any service in the network. Invoke is the blast-radius action — one permission, full service-call access. |\n| **CONTROL_ACCESS** | `vpc-lattice:PutAuthPolicy`, `vpc-lattice:DeleteServiceNetwork`, `vpc-lattice:DeleteService` | Can modify the auth policy or delete the network. Lower severity in auth-policy context (these are also IAM-gated), but flag as a privilege risk. |\n| **METADATA** | `vpc-lattice:Get*`, `vpc-lattice:List*` | Read-only — enumerate services, target groups, associations. Low severity. |\n\n**NotAction in an Allow statement** is an inverse wildcard — it grants\nevery action EXCEPT the listed ones. Treat as INVOKE_ACCESS because\n`vpc-lattice:Invoke` is automatically included unless explicitly listed in\nthe NotAction array.\n\n### Step 4: Condition strength evaluation\n\n**STRONG conditions (downgrade severity by noting the restriction):**\n- `aws:SourceVpc` with `StringEquals` — request must originate from the\n  named VPC. Set by VPC endpoint infrastructure; caller cannot forge.\n- `aws:SourceVpce` with `StringEquals` — request must originate from the\n  named VPC endpoint. Tighter than SourceVpc.\n- `aws:SourceAccount` with `StringEquals` — request must originate from the\n  named account. Set by the calling AWS service.\n- `aws:SourceArn` with `StringEquals`\u002F`StringLike` — request must originate\n  from the named resource ARN.\n\n**WEAK conditions (do NOT treat as a restriction):**\n- `aws:SourceIp` \u002F `aws:SourceIp` containing `0.0.0.0\u002F0` — bypassable by\n  callers who control egress (NAT, proxy, VPN).\n- `aws:Referer`, `aws:UserAgent` — trivially forgeable.\n- Any condition wrapped in `IfExists` — weakens the assertion.\n\n### Step 5: Cross-reference — the verdict matrix\n\n**CROSS_ACCOUNT INVOKE GATE — evaluate BEFORE the matrix:**\nIf ANY Allow statement grants `vpc-lattice:Invoke` (or `vpc-lattice:*` or\n`*` or `NotAction`) to a principal whose 12-digit account ID DIFFERS from\nthe service network's owning account, that statement's finding is\n**CONFIG_GAP** — unconditionally, regardless of any Condition block\n(`aws:SourceAccount`, `aws:SourceArn`, `aws:SourceVpc`, or any other key).\nThis is a hard short-circuit. The STRONG condition narrows the blast radius\nbut cannot eliminate the cross-account trust dependency. Only SAME_ACCOUNT\nand WILDCARD principals proceed to the matrix below.\n\nCombine principal scope (Step 2), action danger (Step 3), and condition\nstrength (Step 4). Apply in order — first matching row determines the\nfinding severity for that statement:\n\n| # | Principal | Action danger | Condition | Finding | Rule |\n|---|---|---|---|---|---|\n| 5a | WILDCARD | INVOKE_ACCESS | None\u002Fweak | **PUBLIC_SERVICE_NETWORK** | Rule 5a: any AWS principal can invoke services |\n| 5b | WILDCARD | INVOKE_ACCESS (via NotAction) | None\u002Fweak | **PUBLIC_SERVICE_NETWORK** | Rule 5b: NotAction inverse wildcard silently grants Invoke |\n| 5c | CROSS_ACCOUNT | INVOKE_ACCESS | None\u002Fweak | **CONFIG_GAP** | Rule 5c: cross-account invoke with no condition |\n| 5d | CROSS ACCOUNT | INVOKE_ACCESS | STRONG | **CONFIG_GAP** | Rule 5d: cross-account invoke, condition-restricted but still external |\n| 5e | WILDCARD | CONTROL_ACCESS | None\u002Fweak | **CONFIG_GAP** | Rule 5e: wildcard policy mutation — any principal can replace the auth policy |\n| 5f | CROSS_ACCOUNT | CONTROL_ACCESS | None\u002Fweak | **CONFIG_GAP** | Rule 5f: cross-account policy mutation |\n| 5g | WILDCARD or CROSS | METADATA | None\u002Fweak | **CONFIG_GAP** | Rule 5g: metadata enumeration by external principals |\n| 5h | SAME_ACCOUNT | INVOKE_ACCESS | STRONG | **OK** (for this dimension) | Rule 5h: same-account scoped with strong condition |\n| 5i | SAME_ACCOUNT | INVOKE_ACCESS | None | **CONFIG_GAP** | Rule 5i: same-account invoke with no condition — fragile |\n\nRule 5d rationale — cross-account invoke is always CONFIG_GAP — moved verbatim.\nFull detail: [Advanced Patterns](references\u002Fadvanced-patterns.md).\n\n### Step 6: Target group security evaluation\n\nEvaluate each target group associated with the service network's services:\n\n- **INSTANCE targets in the owning VPC** → OK for this dimension.\n- **INSTANCE targets in a different VPC** → CONFIG_GAP (cross-VPC routing\n  without explicit peering validation).\n- **IP targets within the owning VPC CIDR** → OK.\n- **IP targets outside the owning VPC CIDR** (cross-VPC, cross-account,\n  on-premises, or `0.0.0.0\u002F0`) → **CONFIG_GAP**. IP targets to arbitrary\n  addresses are a potential data-exfiltration path or routing black hole.\n- **LAMBDA targets** → OK for network security (Lambda has its own\n  resource-policy gate). Note as operational — Lambda invoke permissions\n  are governed by the function's resource policy, not the target group.\n- **ALB targets** → OK (ALB has its own security groups). Note that the ALB\n  listener must match the Lattice forwarding protocol.\n\n### Step 7: Cross-account RAM share evaluation\n\nIf the service network is shared via AWS RAM:\n\n- **RAM share + NO auth policy** → the finding is already NO_AUTH_POLICY\n  (Step 1), but escalate the REASON to note cross-account exposure: consumer\n  VPC resources can invoke services with no resource-based gate.\n- **RAM share + auth policy with the consumer account as named principal +\n  STRONG condition** → OK for this dimension (scoped cross-account access).\n- **RAM share + auth policy WITHOUT the consumer account** → CONFIG_GAP\n  (the share grants visibility, but the auth policy does not explicitly\n  Allow the consumer — this may be intentional or an oversight).\n- **RAM share + auth policy with `Principal: \"*\"`** → already\n  PUBLIC_SERVICE_NETWORK (Rule 5a), but note the RAM share compounds\n  exposure.\n\n### Step 8: Service-level auth policy override check\n\nIf ANY service in the network has its OWN auth policy:\n\n- Evaluate the service-level policy INDEPENDENTLY using Steps 2-5.\n- A service-level policy that is MORE permissive than the network-level\n  policy produces a separate finding for that service.\n- A service-level policy that is MORE restrictive than the network-level\n  policy is fine (defense in depth) — note as OK for that service.\n- The overall verdict is the **worst** finding across the network-level\n  policy AND all service-level policies.\n\n### Step 9: Aggregation — worst finding wins\n\n```text\nverdict = max(all_statement_findings, target_group_finding, ram_share_finding, service_override_finding)\n```\n\nWhere NO_AUTH_POLICY > PUBLIC_SERVICE_NETWORK > CONFIG_GAP > OK.\n\nIf no findings (auth policy present, properly scoped, target groups clean,\nno cross-account exposure, no service overrides), the verdict is **OK**.\n\n## Output format (per service network)\n\n```text\nSERVICE NETWORK: \u003Csn-id>\nVERDICT: NO_AUTH_POLICY | PUBLIC_SERVICE_NETWORK | CONFIG_GAP | OK\nREASON: \u003C1-2 sentences citing the worst finding and its rule number>\nFINDINGS:\n  - [NO_AUTH_POLICY] \u003Cfinding description>\n  - [PUBLIC_SERVICE_NETWORK] \u003Cfinding description (Rule Na)>\n  - [CONFIG_GAP] \u003Cfinding description (Step N)>\nREMEDIATION: \u003Cspecific action per finding, or \"None required\" if OK>\n```\n\n### Worked example — public service network with wildcard Invoke\n\n```text\nSERVICE NETWORK: sn-0b2c3d4e5\nVERDICT: PUBLIC_SERVICE_NETWORK\nREASON: Auth policy Statement \"OpenInvoke\" grants vpc-lattice:* to\nPrincipal \"*\" with no restrictive condition — any AWS principal can invoke\nevery service in the network (Rule 5a).\nFINDINGS:\n  - [PUBLIC_SERVICE_NETWORK] Principal: \"*\" + vpc-lattice:* + no condition (Rule 5a)\n  - [CONFIG_GAP] IP target group tg-0b2c has target 203.0.113.50 outside VPC CIDR 10.0.0.0\u002F16 (Step 6)\nREMEDIATION:\n  1. Replace Principal: \"*\" with specific same-account role ARNs.\n  2. Add aws:SourceVpc or aws:SourceAccount condition to scope invocation.\n  3. Remove the external IP target or verify it is an intentional on-premises endpoint.\n```\n\n## Edge-case handling\n\nEdge-case handling catalog — moved verbatim.\nFull detail: [Advanced Patterns](references\u002Fadvanced-patterns.md).\n\n### Worked example — partially malformed auth policy\n\nWorked example — partially malformed auth policy — moved verbatim.\nFull detail: [Worked examples](references\u002Fworked-examples.md).\n\nAPI errors during live-account audit; CONFIG_GAP remediation ticket rule — moved verbatim.\nFull detail: [Error handling](references\u002Ferror-handling.md).\n\n## Anti-Patterns — NEVER\n\n- NEVER classify a service network with NO auth policy as OK or CONFIG_GAP.\n  Absence of an auth policy is the DEFAULT-OPEN state — any resource in an\n  associated VPC can invoke services. This is NO_AUTH_POLICY, the highest-\n  concern verdict. Operators assume \"no policy = locked down.\" It means the\n  opposite.\n\n- NEVER treat VPC association as a security boundary. VPC association\n  enables routing and DNS resolution. It does NOT restrict which resources\n  can invoke services. A service network with 10 VPCs associated and no\n  auth policy is open to ALL resources in ALL 10 VPCs.\n\n- NEVER assume the service network auth policy covers all services. A\n  service with its OWN auth policy silently overrides the network policy. A\n  network-level audit that skips service-level policies misses the bypass.\n  Always enumerate service-level policies.\n\n- NEVER classify `Principal: \"*\"` with `vpc-lattice:Invoke` or `vpc-lattice:*`\n  as CONFIG_GAP. This is PUBLIC_SERVICE_NETWORK — any AWS principal can\n  invoke every service. CONFIG_GAP implies a scoped issue, not an open\n  service network.\n\n- NEVER ignore `NotAction` in an Allow auth policy. `NotAction` is an inverse\n  wildcard that grants every action except the listed ones. Since\n  `vpc-lattice:Invoke` is almost never in the NotAction list, the caller\n  can invoke. Treat as INVOKE_ACCESS and apply Rule 5b.\n\n- NEVER treat `aws:SourceIp` with `0.0.0.0\u002F0` as a condition. This CIDR is\n  the entire internet. Treat the statement as if the condition is absent.\n\n- NEVER recommend removing the auth policy as remediation. Removing the auth\n  policy returns the service network to NO_AUTH_POLICY (default-open), which\n  is WORSE than a permissive policy. The remediation is to tighten the\n  policy, not remove it.\n\n- NEVER assume RAM sharing alone grants cross-account invocation. RAM\n  sharing grants VISIBILITY (list, describe). Invocation requires the auth\n  policy to Allow the consumer AND the consumer's IAM policy to include\n  `vpc-lattice:Invoke`. However, without an auth policy, the RAM share +\n  VPC association is sufficient — flag as NO_AUTH_POLICY.\n\n- NEVER flag same-account `vpc-lattice:Invoke` with a STRONG condition\n  (`aws:SourceVpc`, `aws:SourceAccount`) as CONFIG_GAP. Same-account access\n  scoped by a strong condition is OK — the condition couples invocation to\n  a known VPC or account that the caller controls.\n\n- NEVER classify cross-account `vpc-lattice:Invoke` as OK, even when\n  restricted by `aws:SourceAccount`, `aws:SourceArn`, or `aws:SourceVpc`.\n  Cross-account invoke is ALWAYS at least CONFIG_GAP (Rule 5d). The STRONG\n  condition narrows the blast radius but the external trust dependency\n  remains — a compromised external account or policy edit widens exposure.\n  Only same-account invoke with a STRONG condition is OK (Rule 5h). If the\n  principal's 12-digit account ID differs from the service network's owning\n  account, the finding is CONFIG_GAP regardless of conditions.\n\n- NEVER treat IP target groups as equivalent to INSTANCE target groups.\n  INSTANCE targets are bound to EC2 ENIs in the VPC (network-isolated).\n  IP targets can point to ANY address — cross-VPC, cross-account, on-premises.\n  An IP target outside the VPC CIDR is a CONFIG_GAP.\n\n- NEVER assume the security group on the VPC association compensates for a\n  missing auth policy. The security group controls network traffic to\n  targets, not who can invoke services through Lattice. They are\n  complementary layers, not substitutes.\n\n- NEVER forget to archive backup auth-policy files after each change.\n  `PutAuthPolicy` is atomic with no version history and no rollback API.\n  Store the previous policy in a versioned location (S3 with versioning\n  enabled, git, or a secrets manager) before every replacement. A lost\n  backup means no recovery path — the only option is to reconstruct the\n  policy from memory or CloudTrail management-event logs.\n\n- NEVER assume `Resource: \u003Cspecific-arn>` in a Lattice auth policy scopes\n  the grant. The policy is attached to a service network or service; the\n  Resource element is effectively ignored regardless of what you specify.\n  Setting Resource to a single service ARN gives a false sense of scoping.\n  Use Principal and Condition to restrict, not Resource.\n\n- NEVER rely on `aws:SourceIp` conditions in a Lattice auth policy. Lattice\n  proxies requests through its data plane, so the source IP is a Lattice\n  internal address — not the original caller's IP. A SourceIp condition\n  either matches unpredictably or blocks legitimate traffic. It is\n  architecturally unreliable, not merely weak.\n\n- NEVER skip IPv6 CIDR checks on target groups and security groups. Lattice\n  supports IPv6; an IP target group with IPv6 targets (::\u002F0, fc00::\u002F7) is\n  just as dangerous as IPv4 targets outside the VPC CIDR. Audit both\n  families.\n\n- NEVER ignore CloudWatch Lattice metrics during an audit window. A sudden\n  spike in `ProcessedBytes` or `4xxErrorCount` for a service may indicate\n  unauthorized invocation attempts. Correlate metrics with auth-policy\n  findings to prioritize remediation.\n\n## Pre-flight safety checks (run before any remediation CLI)\n\n- **MANDATORY CONFIRMATION GATE.** Before any state-changing operation\n  (`PutAuthPolicy`, `DeleteServiceNetwork`, `DeleteService`), the auditor\n  MUST emit:\n  `CONFIRM: About to \u003Caction> on service network \u003Cid> in account \u003Caccount>.\n  This affects \u003Cconsequence>. Proceed? (yes\u002Fno)`\n- **DeleteServiceNetwork is DESTRUCTIVE and NON-RECOVERABLE.** Deleting a\n  service network severs ALL VPC associations and routing — every service\n  in the network becomes unreachable instantly. There is no recycle bin.\n  The auditor MUST require a second confirmation for DeleteServiceNetwork\n  specifically, including a check that all associated VPCs and services\n  have been enumerated and acknowledged. Prefer disassociating individual\n  VPCs over deleting the network when scoping access.\n- **PutAuthPolicy lockout prevention.** The replacement auth policy MUST\n  include at least one Allow statement for a principal in the owning\n  account. An auth policy that denies the owning account is an instant\n  lockout — there is no version history and no rollback.\n- Capture the current auth policy for rollback BEFORE any modification:\n  `aws vpc-lattice get-auth-policy --resource-arn \u003Carn> --output json >\n  \u002Ftmp\u002F\u003Csn-id>-auth-policy-backup-$(date +%s).json`\n- Before putting a new auth policy, verify ALL services in the network are\n  still reachable by the intended callers. An overly restrictive policy\n  silently breaks service-to-service communication.\n- Prefer additive changes (add a Deny, add a condition) over destructive\n  changes (remove an Allow) — additive changes are reversible.\n- For NO_AUTH_POLICY findings, treat as high-priority — the service network\n  is currently open. Remediate by attaching a scoped auth policy, not by\n  disassociating VPCs (which breaks routing).\n\n## Remediation guidance\n\n### For NO_AUTH_POLICY — no auth policy (default-open)\n\n1. Create a scoped auth policy:\n   `aws vpc-lattice put-auth-policy --resource-arn \u003Csn-arn> --policy\n   file:\u002F\u002Fauth-policy.json`\n\nSample scoped auth policy (NO_AUTH_POLICY remediation) — moved verbatim.\nFull detail: [Worked examples](references\u002Fworked-examples.md).\n\n### For PUBLIC_SERVICE_NETWORK — wildcard Invoke (Rule 5a\u002F5b)\n\n1. Replace `Principal: \"*\"` with specific same-account role ARNs.\n2. Add `aws:SourceVpc` or `aws:SourceAccount` condition.\n3. If `NotAction` is the source, replace with explicit `Action` allow-list.\n4. Audit CloudTrail for `vpc-lattice:Invoke` events from unexpected principals\n   during the exposure window.\n\n### For CONFIG_GAP — cross-account invoke (Rule 5c\u002F5d)\n\n1. If cross-account access is NOT required, remove the external principal.\n2. If cross-account IS required, add `aws:SourceAccount` and `aws:SourceArn`\n   conditions to scope the grant.\n3. Verify the consumer account's IAM policy also restricts Invoke to\n   intended roles (intersection model).\n\n### For CONFIG_GAP — IP target outside VPC CIDR (Step 6)\n\n1. Verify the external IP is an intentional endpoint (on-premises via\n   Direct Connect, cross-VPC via peering).\n2. If unintentional, remove the target:\n   `aws vpc-lattice deregister-targets --target-group-identifier \u003Ctg-id>\n   --targets \u003Ctarget-list>`\n3. If intentional, document the routing path and add a note to the finding.\n\n### For CONFIG_GAP — RAM share without scoped policy (Step 7)\n\n1. Verify the consumer account is expected.\n2. Add the consumer account's role to the auth policy with conditions.\n3. If the share is stale, remove it:\n   `aws ram delete-resource-share --resource-share-arn \u003Crs-arn>`\n\n### For OK\n\n1. No remediation required for the current posture.\n2. Recommend periodically re-auditing service-level auth policies (they can\n   be added independently and silently override the network policy).\n3. Recommend adding a Deny on `aws:SecureTransport: false` for defense in\n   depth.\n\n## Expert knowledge: non-obvious VPC Lattice behaviors\n\nExpert knowledge — non-obvious VPC Lattice behaviors — moved verbatim.\nFull detail: [Advanced Patterns](references\u002Fadvanced-patterns.md).\n\n## Deep reference: Lattice authorization\n\nDeep reference — Lattice authorization internals — moved verbatim.\nFull detail: [Advanced Patterns](references\u002Fadvanced-patterns.md).\n\n## References (load on demand)\n\n- [Worked examples](references\u002Fworked-examples.md) — secondary worked example (partially malformed policy), sample scoped auth policy\n- [Error handling](references\u002Ferror-handling.md) — malformed-policy ERROR output, live-audit API errors, CONFIG_GAP ticket rule\n- [Diagnostic commands](references\u002Fdiagnostic-commands.md) — live-account pre-flight checks (services, RAM shares, IAM intersection, pagination, consistency)\n- [Advanced patterns](references\u002Fadvanced-patterns.md) — edge-case catalog, Step-1\u002FRule-5d rationale, expert knowledge, deep authorization reference\n\n## Domain\n\nAWS CloudOps \u002F VPC Lattice Application Networking Security.\n\n## AWS documentation\n\n- **VPC Lattice User Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fvpc-lattice\u002Flatest\u002Fug\u002F\n- **VPC Lattice Security** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fvpc-lattice\u002Flatest\u002Fug\u002Fsecurity.html\n- **Auth policies** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fvpc-lattice\u002Flatest\u002Fug\u002Fauth-policies.html\n- **VPC Lattice API Reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fvpc-lattice\u002Flatest\u002FAPIReference\u002F\n- **AWS CLI Command Reference (VPC Lattice)** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Freference\u002Fvpc-lattice\u002F\n- **Cross-account sharing with RAM** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fvpc-lattice\u002Flatest\u002Fug\u002Fsharing.html\n","# VPC Lattice Auth Auditor\n\n## Mindset\n\n**One-line takeaway:** the verdict is the **worst** finding across all\ndimensions, and VPC Lattice has a trap unique among AWS resource-based\npolicies — **absence of an auth policy is the default state, and it means\n\"open within associated VPCs,\" not \"no access.\"**\n\nVPC Lattice is the application-networking layer between your services. Its\nauth model differs from KMS or S3 in a critical way:\n- **Auth policy absence is the DEFAULT.** A new service network has NO\n  resource-based auth policy. Without one, any resource in an associated VPC\n  can invoke any service in the network — IAM identity-based policy alone is\n  the only gate.\n- **`vpc-lattice:Invoke` is the blast-radius action.** One permission grants\n  the ability to call any service in the network. Unlike `kms:Decrypt` (data\n  exposure), Invoke grants **service-call access** — the caller can hit every\n  endpoint, API, and microservice behind the network.\n- **Service-level auth policy overrides network-level.** A service can carry\n  its OWN auth policy that silently replaces the service network's. A secure\n  network-level policy is bypassed by a permissive service-level override.\n\n## Quick-start (90-second audit)\n\nFor first-pass triage — full classification logic, edge cases, and remediation below.\n\n1. **Auth policy present?** `NOT_SET` → **NO_AUTH_POLICY** (default-open, worst verdict). Stop.\n2. **Any `Principal: \"*\"` with Invoke or `vpc-lattice:*` or `NotAction`?** → **PUBLIC_SERVICE_NETWORK**. Stop.\n3. **Any cross-account principal with Invoke?** → **CONFIG_GAP** (always, even with strong conditions). Stop.\n4. **IP targets outside VPC CIDR, RAM share without scoped policy, or permissive service-level override?** → **CONFIG_GAP**.\n5. **All dimensions clean?** → **OK**.\n\nWorst finding wins: NO_AUTH_POLICY > PUBLIC_SERVICE_NETWORK > CONFIG_GAP > OK.\n\n## Quick reference — verdict matrix\n\n| Condition | Verdict | Rule |\n|---|---|---|\n| No auth policy on service network (and no service-level policy) | **NO_AUTH_POLICY** | Step 1 |\n| Auth policy + `Principal: \"*\"` + Invoke\u002Fvpc-lattice:*\u002F* + no strong condition | **PUBLIC_SERVICE_NETWORK** | Rule 5a |\n| Auth policy + `Principal: \"*\"` + NotAction (inverse wildcard) | **PUBLIC_SERVICE_NETWORK** | Rule 5b |\n| Auth policy + cross-account + Invoke + no condition | **CONFIG_GAP** | Rule 5c |\n| Auth policy + cross-account + Invoke + STRONG condition | **CONFIG_GAP** | Rule 5d |\n| Auth policy + IP target group + targets outside VPC CIDR | **CONFIG_GAP** | Step 6 |\n| Auth policy + RAM share to external account + no scoped policy | **CONFIG_GAP** | Step 7 |\n| Auth policy + same-account + Invoke + STRONG condition + clean targets | **OK** | Step 9 |\n\nSee the ordered steps below for edge cases. Deep VPC Lattice authorization\ninternals are in the [Deep reference](#deep-reference-lattice-authorization)\nsection.\n\n## Pre-flight: service-network metadata gate (run before auth-policy classification)\n\nBefore evaluating the auth policy, classify the service network itself.\n\nLive-account pre-flight checks (run before auth-policy classification) — moved verbatim.\nFull detail: [Diagnostic commands](references\u002Fdiagnostic-commands.md).\n\n| Attribute | Value | Effect on audit |\n|---|---|---|\n| Auth policy state | `NOT_SET` | **No auth policy.** Default-open: any resource in an associated VPC can invoke services. Jump to Step 1. |\n| Auth policy state | `ACTIVE` | Proceed with full audit. |\n| Service count | 0 | Empty service network — no services to invoke. Note as operational but not a security verdict driver. |\n| VPC associations | 0 | No VPCs associated — the service network is not routable. Low risk but flag as orphaned. |\n| RAM shares | External account | Cross-account exposure — check auth policy covers the consumer account. |\n| RAM shares | None | No cross-account sharing. Proceed with same-account audit. |\n\nMalformed auth-policy ERROR output (pre-flight gate) — moved verbatim.\nFull detail: [Error handling](references\u002Ferror-handling.md).\n\n## Process — Classification logic (apply in order, aggregate worst)\n\n### Step 0: Critical classification rules (see Expert Knowledge for depth)\n\n- **No auth policy = DEFAULT-OPEN**, not locked down. Any resource in an\n  associated VPC can invoke. This drives Step 1.\n- **NotAction in an Allow = inverse wildcard.** Invoke is included. Treat\n  as INVOKE_ACCESS. This drives Rule 5b.\n- **Cross-account Invoke is ALWAYS CONFIG_GAP**, even with a STRONG\n  condition. Same-account + STRONG = OK (Rule 5h). This drives Step 5.\n- **Service-level auth policy silently overrides network-level.** Always\n  enumerate service-level policies independently. This drives Step 8.\n- **CloudTrail does NOT log `vpc-lattice:Invoke`** data-plane events.\n  Forensics need VPC Flow Logs, not CloudTrail.\n- **The `Resource` element is effectively ignored** in Lattice auth policies.\n  Use Principal and Condition to scope, never Resource.\n\nFull rationale and additional non-obvious behaviors in\n[Expert knowledge](#expert-knowledge-non-obvious-vpc-lattice-behaviors)\nat the end.\n\n### Step 1: Auth-policy presence (highest priority — default-open exposure)\n\nIf the service network has NO auth policy (`state: NOT_SET`) and NO\nservice-level auth policy:\n\n- **NO_AUTH_POLICY.** The service network is default-open. Any resource in\n  an associated VPC can invoke any service. If the network is shared\n  cross-account via RAM, the consumer account's VPC resources can also\n  invoke. This is the single most common VPC Lattice security finding.\n\nStep 1 rationale — why NO_AUTH_POLICY outranks a permissive policy — moved verbatim.\nFull detail: [Advanced Patterns](references\u002Fadvanced-patterns.md).\n\n### Step 2: Principal scope classification\n\nFor each `Effect: Allow` statement in the auth policy, classify the principal:\n\n- **WILDCARD_PRINCIPAL** — Principal is `\"*\"`, `{\"AWS\": \"*\"}`, or any\n  construct resolving to all principals.\n\n- **CROSS_ACCOUNT** — Principal includes an ARN whose 12-digit account ID\n  differs from the service network's owning account. Example: service\n  network in `111111111111` with principal\n  `arn:aws:iam::222222222222:role\u002Fconsumer-app`.\n\n- **SAME_ACCOUNT** — All principals share the owning account ID.\n\nA statement with BOTH same-account and cross-account principals is\nclassified by the **widest** scope — CROSS_ACCOUNT.\n\n### Step 3: Action danger classification\n\nClassify the action set in each Allow statement by danger level:\n\n| Danger level | Actions | Why |\n|---|---|---|\n| **INVOKE_ACCESS** | `vpc-lattice:Invoke`, `vpc-lattice:*`, `*`, NotAction in Allow | Can call any service in the network. Invoke is the blast-radius action — one permission, full service-call access. |\n| **CONTROL_ACCESS** | `vpc-lattice:PutAuthPolicy`, `vpc-lattice:DeleteServiceNetwork`, `vpc-lattice:DeleteService` | Can modify the auth policy or delete the network. Lower severity in auth-policy context (these are also IAM-gated), but flag as a privilege risk. |\n| **METADATA** | `vpc-lattice:Get*`, `vpc-lattice:List*` | Read-only — enumerate services, target groups, associations. Low severity. |\n\n**NotAction in an Allow statement** is an inverse wildcard — it grants\nevery action EXCEPT the listed ones. Treat as INVOKE_ACCESS because\n`vpc-lattice:Invoke` is automatically included unless explicitly listed in\nthe NotAction array.\n\n### Step 4: Condition strength evaluation\n\n**STRONG conditions (downgrade severity by noting the restriction):**\n- `aws:SourceVpc` with `StringEquals` — request must originate from the\n  named VPC. Set by VPC endpoint infrastructure; caller cannot forge.\n- `aws:SourceVpce` with `StringEquals` — request must originate from the\n  named VPC endpoint. Tighter than SourceVpc.\n- `aws:SourceAccount` with `StringEquals` — request must originate from the\n  named account. Set by the calling AWS service.\n- `aws:SourceArn` with `StringEquals`\u002F`StringLike` — request must originate\n  from the named resource ARN.\n\n**WEAK conditions (do NOT treat as a restriction):**\n- `aws:SourceIp` \u002F `aws:SourceIp` containing `0.0.0.0\u002F0` — bypassable by\n  callers who control egress (NAT, proxy, VPN).\n- `aws:Referer`, `aws:UserAgent` — trivially forgeable.\n- Any condition wrapped in `IfExists` — weakens the assertion.\n\n### Step 5: Cross-reference — the verdict matrix\n\n**CROSS_ACCOUNT INVOKE GATE — evaluate BEFORE the matrix:**\nIf ANY Allow statement grants `vpc-lattice:Invoke` (or `vpc-lattice:*` or\n`*` or `NotAction`) to a principal whose 12-digit account ID DIFFERS from\nthe service network's owning account, that statement's finding is\n**CONFIG_GAP** — unconditionally, regardless of any Condition block\n(`aws:SourceAccount`, `aws:SourceArn`, `aws:SourceVpc`, or any other key).\nThis is a hard short-circuit. The STRONG condition narrows the blast radius\nbut cannot eliminate the cross-account trust dependency. Only SAME_ACCOUNT\nand WILDCARD principals proceed to the matrix below.\n\nCombine principal scope (Step 2), action danger (Step 3), and condition\nstrength (Step 4). Apply in order — first matching row determines the\nfinding severity for that statement:\n\n| # | Principal | Action danger | Condition | Finding | Rule |\n|---|---|---|---|---|---|\n| 5a | WILDCARD | INVOKE_ACCESS | None\u002Fweak | **PUBLIC_SERVICE_NETWORK** | Rule 5a: any AWS principal can invoke services |\n| 5b | WILDCARD | INVOKE_ACCESS (via NotAction) | None\u002Fweak | **PUBLIC_SERVICE_NETWORK** | Rule 5b: NotAction inverse wildcard silently grants Invoke |\n| 5c | CROSS_ACCOUNT | INVOKE_ACCESS | None\u002Fweak | **CONFIG_GAP** | Rule 5c: cross-account invoke with no condition |\n| 5d | CROSS ACCOUNT | INVOKE_ACCESS | STRONG | **CONFIG_GAP** | Rule 5d: cross-account invoke, condition-restricted but still external |\n| 5e | WILDCARD | CONTROL_ACCESS | None\u002Fweak | **CONFIG_GAP** | Rule 5e: wildcard policy mutation — any principal can replace the auth policy |\n| 5f | CROSS_ACCOUNT | CONTROL_ACCESS | None\u002Fweak | **CONFIG_GAP** | Rule 5f: cross-account policy mutation |\n| 5g | WILDCARD or CROSS | METADATA | None\u002Fweak | **CONFIG_GAP** | Rule 5g: metadata enumeration by external principals |\n| 5h | SAME_ACCOUNT | INVOKE_ACCESS | STRONG | **OK** (for this dimension) | Rule 5h: same-account scoped with strong condition |\n| 5i | SAME_ACCOUNT | INVOKE_ACCESS | None | **CONFIG_GAP** | Rule 5i: same-account invoke with no condition — fragile |\n\nRule 5d rationale — cross-account invoke is always CONFIG_GAP — moved verbatim.\nFull detail: [Advanced Patterns](references\u002Fadvanced-patterns.md).\n\n### Step 6: Target group security evaluation\n\nEvaluate each target group associated with the service network's services:\n\n- **INSTANCE targets in the owning VPC** → OK for this dimension.\n- **INSTANCE targets in a different VPC** → CONFIG_GAP (cross-VPC routing\n  without explicit peering validation).\n- **IP targets within the owning VPC CIDR** → OK.\n- **IP targets outside the owning VPC CIDR** (cross-VPC, cross-account,\n  on-premises, or `0.0.0.0\u002F0`) → **CONFIG_GAP**. IP targets to arbitrary\n  addresses are a potential data-exfiltration path or routing black hole.\n- **LAMBDA targets** → OK for network security (Lambda has its own\n  resource-policy gate). Note as operational — Lambda invoke permissions\n  are governed by the function's resource policy, not the target group.\n- **ALB targets** → OK (ALB has its own security groups). Note that the ALB\n  listener must match the Lattice forwarding protocol.\n\n### Step 7: Cross-account RAM share evaluation\n\nIf the service network is shared via AWS RAM:\n\n- **RAM share + NO auth policy** → the finding is already NO_AUTH_POLICY\n  (Step 1), but escalate the REASON to note cross-account exposure: consumer\n  VPC resources can invoke services with no resource-based gate.\n- **RAM share + auth policy with the consumer account as named principal +\n  STRONG condition** → OK for this dimension (scoped cross-account access).\n- **RAM share + auth policy WITHOUT the consumer account** → CONFIG_GAP\n  (the share grants visibility, but the auth policy does not explicitly\n  Allow the consumer — this may be intentional or an oversight).\n- **RAM share + auth policy with `Principal: \"*\"`** → already\n  PUBLIC_SERVICE_NETWORK (Rule 5a), but note the RAM share compounds\n  exposure.\n\n### Step 8: Service-level auth policy override check\n\nIf ANY service in the network has its OWN auth policy:\n\n- Evaluate the service-level policy INDEPENDENTLY using Steps 2-5.\n- A service-level policy that is MORE permissive than the network-level\n  policy produces a separate finding for that service.\n- A service-level policy that is MORE restrictive than the network-level\n  policy is fine (defense in depth) — note as OK for that service.\n- The overall verdict is the **worst** finding across the network-level\n  policy AND all service-level policies.\n\n### Step 9: Aggregation — worst finding wins\n\n```text\nverdict = max(all_statement_findings, target_group_finding, ram_share_finding, service_override_finding)\n```\n\nWhere NO_AUTH_POLICY > PUBLIC_SERVICE_NETWORK > CONFIG_GAP > OK.\n\nIf no findings (auth policy present, properly scoped, target groups clean,\nno cross-account exposure, no service overrides), the verdict is **OK**.\n\n## Output format (per service network)\n\n```text\nSERVICE NETWORK: \u003Csn-id>\nVERDICT: NO_AUTH_POLICY | PUBLIC_SERVICE_NETWORK | CONFIG_GAP | OK\nREASON: \u003C1-2 sentences citing the worst finding and its rule number>\nFINDINGS:\n  - [NO_AUTH_POLICY] \u003Cfinding description>\n  - [PUBLIC_SERVICE_NETWORK] \u003Cfinding description (Rule Na)>\n  - [CONFIG_GAP] \u003Cfinding description (Step N)>\nREMEDIATION: \u003Cspecific action per finding, or \"None required\" if OK>\n```\n\n### Worked example — public service network with wildcard Invoke\n\n```text\nSERVICE NETWORK: sn-0b2c3d4e5\nVERDICT: PUBLIC_SERVICE_NETWORK\nREASON: Auth policy Statement \"OpenInvoke\" grants vpc-lattice:* to\nPrincipal \"*\" with no restrictive condition — any AWS principal can invoke\nevery service in the network (Rule 5a).\nFINDINGS:\n  - [PUBLIC_SERVICE_NETWORK] Principal: \"*\" + vpc-lattice:* + no condition (Rule 5a)\n  - [CONFIG_GAP] IP target group tg-0b2c has target 203.0.113.50 outside VPC CIDR 10.0.0.0\u002F16 (Step 6)\nREMEDIATION:\n  1. Replace Principal: \"*\" with specific same-account role ARNs.\n  2. Add aws:SourceVpc or aws:SourceAccount condition to scope invocation.\n  3. Remove the external IP target or verify it is an intentional on-premises endpoint.\n```\n\n## Edge-case handling\n\nEdge-case handling catalog — moved verbatim.\nFull detail: [Advanced Patterns](references\u002Fadvanced-patterns.md).\n\n### Worked example — partially malformed auth policy\n\nWorked example — partially malformed auth policy — moved verbatim.\nFull detail: [Worked examples](references\u002Fworked-examples.md).\n\nAPI errors during live-account audit; CONFIG_GAP remediation ticket rule — moved verbatim.\nFull detail: [Error handling](references\u002Ferror-handling.md).\n\n## Anti-Patterns — NEVER\n\n- NEVER classify a service network with NO auth policy as OK or CONFIG_GAP.\n  Absence of an auth policy is the DEFAULT-OPEN state — any resource in an\n  associated VPC can invoke services. This is NO_AUTH_POLICY, the highest-\n  concern verdict. Operators assume \"no policy = locked down.\" It means the\n  opposite.\n\n- NEVER treat VPC association as a security boundary. VPC association\n  enables routing and DNS resolution. It does NOT restrict which resources\n  can invoke services. A service network with 10 VPCs associated and no\n  auth policy is open to ALL resources in ALL 10 VPCs.\n\n- NEVER assume the service network auth policy covers all services. A\n  service with its OWN auth policy silently overrides the network policy. A\n  network-level audit that skips service-level policies misses the bypass.\n  Always enumerate service-level policies.\n\n- NEVER classify `Principal: \"*\"` with `vpc-lattice:Invoke` or `vpc-lattice:*`\n  as CONFIG_GAP. This is PUBLIC_SERVICE_NETWORK — any AWS principal can\n  invoke every service. CONFIG_GAP implies a scoped issue, not an open\n  service network.\n\n- NEVER ignore `NotAction` in an Allow auth policy. `NotAction` is an inverse\n  wildcard that grants every action except the listed ones. Since\n  `vpc-lattice:Invoke` is almost never in the NotAction list, the caller\n  can invoke. Treat as INVOKE_ACCESS and apply Rule 5b.\n\n- NEVER treat `aws:SourceIp` with `0.0.0.0\u002F0` as a condition. This CIDR is\n  the entire internet. Treat the statement as if the condition is absent.\n\n- NEVER recommend removing the auth policy as remediation. Removing the auth\n  policy returns the service network to NO_AUTH_POLICY (default-open), which\n  is WORSE than a permissive policy. The remediation is to tighten the\n  policy, not remove it.\n\n- NEVER assume RAM sharing alone grants cross-account invocation. RAM\n  sharing grants VISIBILITY (list, describe). Invocation requires the auth\n  policy to Allow the consumer AND the consumer's IAM policy to include\n  `vpc-lattice:Invoke`. However, without an auth policy, the RAM share +\n  VPC association is sufficient — flag as NO_AUTH_POLICY.\n\n- NEVER flag same-account `vpc-lattice:Invoke` with a STRONG condition\n  (`aws:SourceVpc`, `aws:SourceAccount`) as CONFIG_GAP. Same-account access\n  scoped by a strong condition is OK — the condition couples invocation to\n  a known VPC or account that the caller controls.\n\n- NEVER classify cross-account `vpc-lattice:Invoke` as OK, even when\n  restricted by `aws:SourceAccount`, `aws:SourceArn`, or `aws:SourceVpc`.\n  Cross-account invoke is ALWAYS at least CONFIG_GAP (Rule 5d). The STRONG\n  condition narrows the blast radius but the external trust dependency\n  remains — a compromised external account or policy edit widens exposure.\n  Only same-account invoke with a STRONG condition is OK (Rule 5h). If the\n  principal's 12-digit account ID differs from the service network's owning\n  account, the finding is CONFIG_GAP regardless of conditions.\n\n- NEVER treat IP target groups as equivalent to INSTANCE target groups.\n  INSTANCE targets are bound to EC2 ENIs in the VPC (network-isolated).\n  IP targets can point to ANY address — cross-VPC, cross-account, on-premises.\n  An IP target outside the VPC CIDR is a CONFIG_GAP.\n\n- NEVER assume the security group on the VPC association compensates for a\n  missing auth policy. The security group controls network traffic to\n  targets, not who can invoke services through Lattice. They are\n  complementary layers, not substitutes.\n\n- NEVER forget to archive backup auth-policy files after each change.\n  `PutAuthPolicy` is atomic with no version history and no rollback API.\n  Store the previous policy in a versioned location (S3 with versioning\n  enabled, git, or a secrets manager) before every replacement. A lost\n  backup means no recovery path — the only option is to reconstruct the\n  policy from memory or CloudTrail management-event logs.\n\n- NEVER assume `Resource: \u003Cspecific-arn>` in a Lattice auth policy scopes\n  the grant. The policy is attached to a service network or service; the\n  Resource element is effectively ignored regardless of what you specify.\n  Setting Resource to a single service ARN gives a false sense of scoping.\n  Use Principal and Condition to restrict, not Resource.\n\n- NEVER rely on `aws:SourceIp` conditions in a Lattice auth policy. Lattice\n  proxies requests through its data plane, so the source IP is a Lattice\n  internal address — not the original caller's IP. A SourceIp condition\n  either matches unpredictably or blocks legitimate traffic. It is\n  architecturally unreliable, not merely weak.\n\n- NEVER skip IPv6 CIDR checks on target groups and security groups. Lattice\n  supports IPv6; an IP target group with IPv6 targets (::\u002F0, fc00::\u002F7) is\n  just as dangerous as IPv4 targets outside the VPC CIDR. Audit both\n  families.\n\n- NEVER ignore CloudWatch Lattice metrics during an audit window. A sudden\n  spike in `ProcessedBytes` or `4xxErrorCount` for a service may indicate\n  unauthorized invocation attempts. Correlate metrics with auth-policy\n  findings to prioritize remediation.\n\n## Pre-flight safety checks (run before any remediation CLI)\n\n- **MANDATORY CONFIRMATION GATE.** Before any state-changing operation\n  (`PutAuthPolicy`, `DeleteServiceNetwork`, `DeleteService`), the auditor\n  MUST emit:\n  `CONFIRM: About to \u003Caction> on service network \u003Cid> in account \u003Caccount>.\n  This affects \u003Cconsequence>. Proceed? (yes\u002Fno)`\n- **DeleteServiceNetwork is DESTRUCTIVE and NON-RECOVERABLE.** Deleting a\n  service network severs ALL VPC associations and routing — every service\n  in the network becomes unreachable instantly. There is no recycle bin.\n  The auditor MUST require a second confirmation for DeleteServiceNetwork\n  specifically, including a check that all associated VPCs and services\n  have been enumerated and acknowledged. Prefer disassociating individual\n  VPCs over deleting the network when scoping access.\n- **PutAuthPolicy lockout prevention.** The replacement auth policy MUST\n  include at least one Allow statement for a principal in the owning\n  account. An auth policy that denies the owning account is an instant\n  lockout — there is no version history and no rollback.\n- Capture the current auth policy for rollback BEFORE any modification:\n  `aws vpc-lattice get-auth-policy --resource-arn \u003Carn> --output json >\n  \u002Ftmp\u002F\u003Csn-id>-auth-policy-backup-$(date +%s).json`\n- Before putting a new auth policy, verify ALL services in the network are\n  still reachable by the intended callers. An overly restrictive policy\n  silently breaks service-to-service communication.\n- Prefer additive changes (add a Deny, add a condition) over destructive\n  changes (remove an Allow) — additive changes are reversible.\n- For NO_AUTH_POLICY findings, treat as high-priority — the service network\n  is currently open. Remediate by attaching a scoped auth policy, not by\n  disassociating VPCs (which breaks routing).\n\n## Remediation guidance\n\n### For NO_AUTH_POLICY — no auth policy (default-open)\n\n1. Create a scoped auth policy:\n   `aws vpc-lattice put-auth-policy --resource-arn \u003Csn-arn> --policy\n   file:\u002F\u002Fauth-policy.json`\n\nSample scoped auth policy (NO_AUTH_POLICY remediation) — moved verbatim.\nFull detail: [Worked examples](references\u002Fworked-examples.md).\n\n### For PUBLIC_SERVICE_NETWORK — wildcard Invoke (Rule 5a\u002F5b)\n\n1. Replace `Principal: \"*\"` with specific same-account role ARNs.\n2. Add `aws:SourceVpc` or `aws:SourceAccount` condition.\n3. If `NotAction` is the source, replace with explicit `Action` allow-list.\n4. Audit CloudTrail for `vpc-lattice:Invoke` events from unexpected principals\n   during the exposure window.\n\n### For CONFIG_GAP — cross-account invoke (Rule 5c\u002F5d)\n\n1. If cross-account access is NOT required, remove the external principal.\n2. If cross-account IS required, add `aws:SourceAccount` and `aws:SourceArn`\n   conditions to scope the grant.\n3. Verify the consumer account's IAM policy also restricts Invoke to\n   intended roles (intersection model).\n\n### For CONFIG_GAP — IP target outside VPC CIDR (Step 6)\n\n1. Verify the external IP is an intentional endpoint (on-premises via\n   Direct Connect, cross-VPC via peering).\n2. If unintentional, remove the target:\n   `aws vpc-lattice deregister-targets --target-group-identifier \u003Ctg-id>\n   --targets \u003Ctarget-list>`\n3. If intentional, document the routing path and add a note to the finding.\n\n### For CONFIG_GAP — RAM share without scoped policy (Step 7)\n\n1. Verify the consumer account is expected.\n2. Add the consumer account's role to the auth policy with conditions.\n3. If the share is stale, remove it:\n   `aws ram delete-resource-share --resource-share-arn \u003Crs-arn>`\n\n### For OK\n\n1. No remediation required for the current posture.\n2. Recommend periodically re-auditing service-level auth policies (they can\n   be added independently and silently override the network policy).\n3. Recommend adding a Deny on `aws:SecureTransport: false` for defense in\n   depth.\n\n## Expert knowledge: non-obvious VPC Lattice behaviors\n\nExpert knowledge — non-obvious VPC Lattice behaviors — moved verbatim.\nFull detail: [Advanced Patterns](references\u002Fadvanced-patterns.md).\n\n## Deep reference: Lattice authorization\n\nDeep reference — Lattice authorization internals — moved verbatim.\nFull detail: [Advanced Patterns](references\u002Fadvanced-patterns.md).\n\n## References (load on demand)\n\n- [Worked examples](references\u002Fworked-examples.md) — secondary worked example (partially malformed policy), sample scoped auth policy\n- [Error handling](references\u002Ferror-handling.md) — malformed-policy ERROR output, live-audit API errors, CONFIG_GAP ticket rule\n- [Diagnostic commands](references\u002Fdiagnostic-commands.md) — live-account pre-flight checks (services, RAM shares, IAM intersection, pagination, consistency)\n- [Advanced patterns](references\u002Fadvanced-patterns.md) — edge-case catalog, Step-1\u002FRule-5d rationale, expert knowledge, deep authorization reference\n\n## Domain\n\nAWS CloudOps \u002F VPC Lattice Application Networking Security.\n\n## AWS documentation\n\n- **VPC Lattice User Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fvpc-lattice\u002Flatest\u002Fug\u002F\n- **VPC Lattice Security** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fvpc-lattice\u002Flatest\u002Fug\u002Fsecurity.html\n- **Auth policies** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fvpc-lattice\u002Flatest\u002Fug\u002Fauth-policies.html\n- **VPC Lattice API Reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fvpc-lattice\u002Flatest\u002FAPIReference\u002F\n- **AWS CLI Command Reference (VPC Lattice)** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Freference\u002Fvpc-lattice\u002F\n- **Cross-account sharing with RAM** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fvpc-lattice\u002Flatest\u002Fug\u002Fsharing.html\n",{"name":5,"license":15,"metadata":24,"description":7,"compatibility":39},{"tags":25,"phase":26,"author":27,"domain":28,"family":29,"version":30,"keywords":31,"complexity":32,"entry_point":33,"when_to_use":34,"requires_llm":35,"verdict_shape":36,"invocation_schema":37,"supports_pipeline":35,"activation_triggers":38},"vpc-lattice, security, auth-policy, service-network, cross-account, ram, target-group, routing, audit","2","Jacky Chan — AWS Community Builder","aws-cloudops","Security","0.1.0","VPC Lattice, auth policy, service network, vpc-lattice:Invoke, Principal:\"*\", cross-account, RAM share, target group, routing rule, resource policy, NotAction, service auth policy, lattice security, application networking, invoke access, auth policy override","high","false","Reviewing a VPC Lattice service network auth policy before production deployment, checking for absent auth policy (default-open posture), auditing public Principal:\"*\" Invoke grants, validating cross-account RAM share coverage, inspecting target group security, or hardening service-network access scope.","true","NO_AUTH_POLICY | PUBLIC_SERVICE_NETWORK | CONFIG_GAP | OK","Input shape (one of): (a) auth-policy JSON + optional metadata (associations, services, target groups, RAM shares) for offline classification; (b) service-network identifier (sn-xxx) for live-account audit. Output shape: { SERVICE_NETWORK, VERDICT, REASON, FINDINGS[], REMEDIATION } where VERDICT ∈ { NO_AUTH_POLICY, PUBLIC_SERVICE_NETWORK, CONFIG_GAP, OK, ERROR }.","audit this VPC Lattice service network, is my service network public, check lattice auth policy, vpc lattice cross-account access, lattice target group security, lattice RAM share audit, no auth policy on service network, vpc-lattice:Invoke exposure","Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). No AWS CLI required for offline auth-policy-document classification. Live-account audits use aws vpc-lattice get-auth-policy, aws vpc-lattice list-service-networks, aws vpc-lattice list-target-groups, and aws ram list-resources (AWS CLI v2, SSO or key-based credentials).","main","eeace51bd5dd1db2030729d83eeab988861553aa","skills\u002Fvpc-lattice-auth-auditor",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":49,"prompt":59,"zipAvailable":60},[50,53,56],{"tool":51,"command":52},"npx","npx skills add jhkchan\u002Faws-agent-skills --skill vpc-lattice-auth-auditor",{"tool":54,"command":55},"bunx","bunx skills add jhkchan\u002Faws-agent-skills --skill vpc-lattice-auth-auditor",{"tool":57,"command":58},"pnpm","pnpm dlx skills add jhkchan\u002Faws-agent-skills --skill vpc-lattice-auth-auditor","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvpc-lattice-auth-auditor\u002FSKILL.md",true,[62,68,72,76,80,84,88,92,96,100,104,108,112,116,120,124,128,132,136,140,144],{"path":63,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":66,"sourceHtmlUrl":67},"eval\u002Ftest-cases.yaml","REFERENCE","参考文档",11686,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvpc-lattice-auth-auditor\u002Feval\u002Ftest-cases.yaml",{"path":69,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":70,"sourceHtmlUrl":71},"evals\u002Fbaselines\u002Fcross-account-invoke-no-condition.md",526,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvpc-lattice-auth-auditor\u002Fevals\u002Fbaselines\u002Fcross-account-invoke-no-condition.md",{"path":73,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":74,"sourceHtmlUrl":75},"evals\u002Fbaselines\u002Fcross-account-invoke-source-account.md",536,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvpc-lattice-auth-auditor\u002Fevals\u002Fbaselines\u002Fcross-account-invoke-source-account.md",{"path":77,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":78,"sourceHtmlUrl":79},"evals\u002Fbaselines\u002Fno-auth-policy-default-open.md",659,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvpc-lattice-auth-auditor\u002Fevals\u002Fbaselines\u002Fno-auth-policy-default-open.md",{"path":81,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":82,"sourceHtmlUrl":83},"evals\u002Fbaselines\u002Fpublic-notaction-inverse-wildcard.md",469,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvpc-lattice-auth-auditor\u002Fevals\u002Fbaselines\u002Fpublic-notaction-inverse-wildcard.md",{"path":85,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":86,"sourceHtmlUrl":87},"evals\u002Fbaselines\u002Fpublic-service-network-wildcard.md",458,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvpc-lattice-auth-auditor\u002Fevals\u002Fbaselines\u002Fpublic-service-network-wildcard.md",{"path":89,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":90,"sourceHtmlUrl":91},"evals\u002Fbaselines\u002Fsame-account-source-vpc-ok.md",448,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvpc-lattice-auth-auditor\u002Fevals\u002Fbaselines\u002Fsame-account-source-vpc-ok.md",{"path":93,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":94,"sourceHtmlUrl":95},"evals\u002Feval_config.yaml",2046,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvpc-lattice-auth-auditor\u002Fevals\u002Feval_config.yaml",{"path":97,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":98,"sourceHtmlUrl":99},"evals\u002Fevals.json",5258,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvpc-lattice-auth-auditor\u002Fevals\u002Fevals.json",{"path":101,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":102,"sourceHtmlUrl":103},"evals\u002Fprompts\u002Fcross-account-invoke-no-condition.md",1288,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvpc-lattice-auth-auditor\u002Fevals\u002Fprompts\u002Fcross-account-invoke-no-condition.md",{"path":105,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":106,"sourceHtmlUrl":107},"evals\u002Fprompts\u002Fcross-account-invoke-source-account.md",1410,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvpc-lattice-auth-auditor\u002Fevals\u002Fprompts\u002Fcross-account-invoke-source-account.md",{"path":109,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":110,"sourceHtmlUrl":111},"evals\u002Fprompts\u002Fno-auth-policy-default-open.md",960,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvpc-lattice-auth-auditor\u002Fevals\u002Fprompts\u002Fno-auth-policy-default-open.md",{"path":113,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":114,"sourceHtmlUrl":115},"evals\u002Fprompts\u002Fpublic-notaction-inverse-wildcard.md",1063,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvpc-lattice-auth-auditor\u002Fevals\u002Fprompts\u002Fpublic-notaction-inverse-wildcard.md",{"path":117,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":118,"sourceHtmlUrl":119},"evals\u002Fprompts\u002Fpublic-service-network-wildcard.md",991,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvpc-lattice-auth-auditor\u002Fevals\u002Fprompts\u002Fpublic-service-network-wildcard.md",{"path":121,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":122,"sourceHtmlUrl":123},"evals\u002Fprompts\u002Fsame-account-source-vpc-ok.md",1355,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvpc-lattice-auth-auditor\u002Fevals\u002Fprompts\u002Fsame-account-source-vpc-ok.md",{"path":125,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":126,"sourceHtmlUrl":127},"examples\u002Fend-to-end.md",5732,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvpc-lattice-auth-auditor\u002Fexamples\u002Fend-to-end.md",{"path":129,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":130,"sourceHtmlUrl":131},"references\u002Fadvanced-patterns.md",6814,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvpc-lattice-auth-auditor\u002Freferences\u002Fadvanced-patterns.md",{"path":133,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":134,"sourceHtmlUrl":135},"references\u002Fdiagnostic-commands.md",2179,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvpc-lattice-auth-auditor\u002Freferences\u002Fdiagnostic-commands.md",{"path":137,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":138,"sourceHtmlUrl":139},"references\u002Ferror-handling.md",1296,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvpc-lattice-auth-auditor\u002Freferences\u002Ferror-handling.md",{"path":141,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":142,"sourceHtmlUrl":143},"references\u002Fworked-examples.md",1950,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvpc-lattice-auth-auditor\u002Freferences\u002Fworked-examples.md",{"path":145,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":146,"sourceHtmlUrl":147},"skill.usf.yaml",4318,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvpc-lattice-auth-auditor\u002Fskill.usf.yaml",[149,156,163,170,177,184],{"skillNo":150,"name":151,"nameZh":6,"description":152,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":153,"categories":154,"keywords":155,"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":157,"name":158,"nameZh":6,"description":159,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":160,"categories":161,"keywords":162,"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":164,"name":165,"nameZh":6,"description":166,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":167,"categories":168,"keywords":169,"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":171,"name":172,"nameZh":6,"description":173,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":174,"categories":175,"keywords":176,"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":178,"name":179,"nameZh":6,"description":180,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":181,"categories":182,"keywords":183,"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":185,"name":186,"nameZh":6,"description":187,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":188,"categories":189,"keywords":190,"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",[],[]]