VPC Lattice Auth Auditor
Mindset
One-line takeaway: the verdict is the worst finding across all
dimensions, and VPC Lattice has a trap unique among AWS resource-based
policies — absence of an auth policy is the default state, and it means
"open within associated VPCs," not "no access."
VPC Lattice is the application-networking layer between your services. Its
auth model differs from KMS or S3 in a critical way:
- Auth policy absence is the DEFAULT. A new service network has NO
resource-based auth policy. Without one, any resource in an associated VPC
can invoke any service in the network — IAM identity-based policy alone is
the only gate.
vpc-lattice:Invoke is the blast-radius action. One permission grants
the ability to call any service in the network. Unlike kms:Decrypt (data
exposure), Invoke grants service-call access — the caller can hit every
endpoint, API, and microservice behind the network.
- Service-level auth policy overrides network-level. A service can carry
its OWN auth policy that silently replaces the service network's. A secure
network-level policy is bypassed by a permissive service-level override.
Quick-start (90-second audit)
For first-pass triage — full classification logic, edge cases, and remediation below.
- Auth policy present?
NOT_SET → NO_AUTH_POLICY (default-open, worst verdict). Stop.
- Any
Principal: "*" with Invoke or vpc-lattice:* or NotAction? → PUBLIC_SERVICE_NETWORK. Stop.
- Any cross-account principal with Invoke? → CONFIG_GAP (always, even with strong conditions). Stop.
- IP targets outside VPC CIDR, RAM share without scoped policy, or permissive service-level override? → CONFIG_GAP.
- All dimensions clean? → OK.
Worst finding wins: NO_AUTH_POLICY > PUBLIC_SERVICE_NETWORK > CONFIG_GAP > OK.
Quick reference — verdict matrix
| Condition |
Verdict |
Rule |
| No auth policy on service network (and no service-level policy) |
NO_AUTH_POLICY |
Step 1 |
Auth policy + Principal: "*" + Invoke/vpc-lattice:/ + no strong condition |
PUBLIC_SERVICE_NETWORK |
Rule 5a |
Auth policy + Principal: "*" + NotAction (inverse wildcard) |
PUBLIC_SERVICE_NETWORK |
Rule 5b |
| Auth policy + cross-account + Invoke + no condition |
CONFIG_GAP |
Rule 5c |
| Auth policy + cross-account + Invoke + STRONG condition |
CONFIG_GAP |
Rule 5d |
| Auth policy + IP target group + targets outside VPC CIDR |
CONFIG_GAP |
Step 6 |
| Auth policy + RAM share to external account + no scoped policy |
CONFIG_GAP |
Step 7 |
| Auth policy + same-account + Invoke + STRONG condition + clean targets |
OK |
Step 9 |
See the ordered steps below for edge cases. Deep VPC Lattice authorization
internals are in the Deep reference
section.
Pre-flight: service-network metadata gate (run before auth-policy classification)
Before evaluating the auth policy, classify the service network itself.
Live-account pre-flight checks (run before auth-policy classification) — moved verbatim.
Full detail: Diagnostic commands.
| Attribute |
Value |
Effect on audit |
| Auth policy state |
NOT_SET |
No auth policy. Default-open: any resource in an associated VPC can invoke services. Jump to Step 1. |
| Auth policy state |
ACTIVE |
Proceed with full audit. |
| Service count |
0 |
Empty service network — no services to invoke. Note as operational but not a security verdict driver. |
| VPC associations |
0 |
No VPCs associated — the service network is not routable. Low risk but flag as orphaned. |
| RAM shares |
External account |
Cross-account exposure — check auth policy covers the consumer account. |
| RAM shares |
None |
No cross-account sharing. Proceed with same-account audit. |
Malformed auth-policy ERROR output (pre-flight gate) — moved verbatim.
Full detail: Error handling.
Process — Classification logic (apply in order, aggregate worst)
Step 0: Critical classification rules (see Expert Knowledge for depth)
- No auth policy = DEFAULT-OPEN, not locked down. Any resource in an
associated VPC can invoke. This drives Step 1.
- NotAction in an Allow = inverse wildcard. Invoke is included. Treat
as INVOKE_ACCESS. This drives Rule 5b.
- Cross-account Invoke is ALWAYS CONFIG_GAP, even with a STRONG
condition. Same-account + STRONG = OK (Rule 5h). This drives Step 5.
- Service-level auth policy silently overrides network-level. Always
enumerate service-level policies independently. This drives Step 8.
- CloudTrail does NOT log
vpc-lattice:Invoke data-plane events.
Forensics need VPC Flow Logs, not CloudTrail.
- The
Resource element is effectively ignored in Lattice auth policies.
Use Principal and Condition to scope, never Resource.
Full rationale and additional non-obvious behaviors in
Expert knowledge
at the end.
Step 1: Auth-policy presence (highest priority — default-open exposure)
If the service network has NO auth policy (state: NOT_SET) and NO
service-level auth policy:
- NO_AUTH_POLICY. The service network is default-open. Any resource in
an associated VPC can invoke any service. If the network is shared
cross-account via RAM, the consumer account's VPC resources can also
invoke. This is the single most common VPC Lattice security finding.
Step 1 rationale — why NO_AUTH_POLICY outranks a permissive policy — moved verbatim.
Full detail: Advanced Patterns.
Step 2: Principal scope classification
For each Effect: Allow statement in the auth policy, classify the principal:
WILDCARD_PRINCIPAL — Principal is "*", {"AWS": "*"}, or any
construct resolving to all principals.
CROSS_ACCOUNT — Principal includes an ARN whose 12-digit account ID
differs from the service network's owning account. Example: service
network in 111111111111 with principal
arn:aws:iam::222222222222:role/consumer-app.
SAME_ACCOUNT — All principals share the owning account ID.
A statement with BOTH same-account and cross-account principals is
classified by the widest scope — CROSS_ACCOUNT.
Step 3: Action danger classification
Classify the action set in each Allow statement by danger level:
| Danger level |
Actions |
Why |
| 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. |
| 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. |
| METADATA |
vpc-lattice:Get*, vpc-lattice:List* |
Read-only — enumerate services, target groups, associations. Low severity. |
NotAction in an Allow statement is an inverse wildcard — it grants
every action EXCEPT the listed ones. Treat as INVOKE_ACCESS because
vpc-lattice:Invoke is automatically included unless explicitly listed in
the NotAction array.
Step 4: Condition strength evaluation
STRONG conditions (downgrade severity by noting the restriction):
aws:SourceVpc with StringEquals — request must originate from the
named VPC. Set by VPC endpoint infrastructure; caller cannot forge.
aws:SourceVpce with StringEquals — request must originate from the
named VPC endpoint. Tighter than SourceVpc.
aws:SourceAccount with StringEquals — request must originate from the
named account. Set by the calling AWS service.
aws:SourceArn with StringEquals/StringLike — request must originate
from the named resource ARN.
WEAK conditions (do NOT treat as a restriction):
aws:SourceIp / aws:SourceIp containing 0.0.0.0/0 — bypassable by
callers who control egress (NAT, proxy, VPN).
aws:Referer, aws:UserAgent — trivially forgeable.
- Any condition wrapped in
IfExists — weakens the assertion.
Step 5: Cross-reference — the verdict matrix
CROSS_ACCOUNT INVOKE GATE — evaluate BEFORE the matrix:
If ANY Allow statement grants vpc-lattice:Invoke (or vpc-lattice:* or
* or NotAction) to a principal whose 12-digit account ID DIFFERS from
the service network's owning account, that statement's finding is
CONFIG_GAP — unconditionally, regardless of any Condition block
(aws:SourceAccount, aws:SourceArn, aws:SourceVpc, or any other key).
This is a hard short-circuit. The STRONG condition narrows the blast radius
but cannot eliminate the cross-account trust dependency. Only SAME_ACCOUNT
and WILDCARD principals proceed to the matrix below.
Combine principal scope (Step 2), action danger (Step 3), and condition
strength (Step 4). Apply in order — first matching row determines the
finding severity for that statement:
| # |
Principal |
Action danger |
Condition |
Finding |
Rule |
| 5a |
WILDCARD |
INVOKE_ACCESS |
None/weak |
PUBLIC_SERVICE_NETWORK |
Rule 5a: any AWS principal can invoke services |
| 5b |
WILDCARD |
INVOKE_ACCESS (via NotAction) |
None/weak |
PUBLIC_SERVICE_NETWORK |
Rule 5b: NotAction inverse wildcard silently grants Invoke |
| 5c |
CROSS_ACCOUNT |
INVOKE_ACCESS |
None/weak |
CONFIG_GAP |
Rule 5c: cross-account invoke with no condition |
| 5d |
CROSS ACCOUNT |
INVOKE_ACCESS |
STRONG |
CONFIG_GAP |
Rule 5d: cross-account invoke, condition-restricted but still external |
| 5e |
WILDCARD |
CONTROL_ACCESS |
None/weak |
CONFIG_GAP |
Rule 5e: wildcard policy mutation — any principal can replace the auth policy |
| 5f |
CROSS_ACCOUNT |
CONTROL_ACCESS |
None/weak |
CONFIG_GAP |
Rule 5f: cross-account policy mutation |
| 5g |
WILDCARD or CROSS |
METADATA |
None/weak |
CONFIG_GAP |
Rule 5g: metadata enumeration by external principals |
| 5h |
SAME_ACCOUNT |
INVOKE_ACCESS |
STRONG |
OK (for this dimension) |
Rule 5h: same-account scoped with strong condition |
| 5i |
SAME_ACCOUNT |
INVOKE_ACCESS |
None |
CONFIG_GAP |
Rule 5i: same-account invoke with no condition — fragile |
Rule 5d rationale — cross-account invoke is always CONFIG_GAP — moved verbatim.
Full detail: Advanced Patterns.
Step 6: Target group security evaluation
Evaluate each target group associated with the service network's services:
- INSTANCE targets in the owning VPC → OK for this dimension.
- INSTANCE targets in a different VPC → CONFIG_GAP (cross-VPC routing
without explicit peering validation).
- IP targets within the owning VPC CIDR → OK.
- IP targets outside the owning VPC CIDR (cross-VPC, cross-account,
on-premises, or
0.0.0.0/0) → CONFIG_GAP. IP targets to arbitrary
addresses are a potential data-exfiltration path or routing black hole.
- LAMBDA targets → OK for network security (Lambda has its own
resource-policy gate). Note as operational — Lambda invoke permissions
are governed by the function's resource policy, not the target group.
- ALB targets → OK (ALB has its own security groups). Note that the ALB
listener must match the Lattice forwarding protocol.
Step 7: Cross-account RAM share evaluation
If the service network is shared via AWS RAM:
- RAM share + NO auth policy → the finding is already NO_AUTH_POLICY
(Step 1), but escalate the REASON to note cross-account exposure: consumer
VPC resources can invoke services with no resource-based gate.
- RAM share + auth policy with the consumer account as named principal +
STRONG condition → OK for this dimension (scoped cross-account access).
- RAM share + auth policy WITHOUT the consumer account → CONFIG_GAP
(the share grants visibility, but the auth policy does not explicitly
Allow the consumer — this may be intentional or an oversight).
- RAM share + auth policy with
Principal: "*" → already
PUBLIC_SERVICE_NETWORK (Rule 5a), but note the RAM share compounds
exposure.
Step 8: Service-level auth policy override check
If ANY service in the network has its OWN auth policy:
- Evaluate the service-level policy INDEPENDENTLY using Steps 2-5.
- A service-level policy that is MORE permissive than the network-level
policy produces a separate finding for that service.
- A service-level policy that is MORE restrictive than the network-level
policy is fine (defense in depth) — note as OK for that service.
- The overall verdict is the worst finding across the network-level
policy AND all service-level policies.
Step 9: Aggregation — worst finding wins
verdict = max(all_statement_findings, target_group_finding, ram_share_finding, service_override_finding)
Where NO_AUTH_POLICY > PUBLIC_SERVICE_NETWORK > CONFIG_GAP > OK.
If no findings (auth policy present, properly scoped, target groups clean,
no cross-account exposure, no service overrides), the verdict is OK.
Output format (per service network)
SERVICE NETWORK: <sn-id>
VERDICT: NO_AUTH_POLICY | PUBLIC_SERVICE_NETWORK | CONFIG_GAP | OK
REASON: <1-2 sentences citing the worst finding and its rule number>
FINDINGS:
- [NO_AUTH_POLICY] <finding description>
- [PUBLIC_SERVICE_NETWORK] <finding description (Rule Na)>
- [CONFIG_GAP] <finding description (Step N)>
REMEDIATION: <specific action per finding, or "None required" if OK>
Worked example — public service network with wildcard Invoke
SERVICE NETWORK: sn-0b2c3d4e5
VERDICT: PUBLIC_SERVICE_NETWORK
REASON: Auth policy Statement "OpenInvoke" grants vpc-lattice:* to
Principal "*" with no restrictive condition — any AWS principal can invoke
every service in the network (Rule 5a).
FINDINGS:
- [PUBLIC_SERVICE_NETWORK] Principal: "*" + vpc-lattice:* + no condition (Rule 5a)
- [CONFIG_GAP] IP target group tg-0b2c has target 203.0.113.50 outside VPC CIDR 10.0.0.0/16 (Step 6)
REMEDIATION:
1. Replace Principal: "*" with specific same-account role ARNs.
2. Add aws:SourceVpc or aws:SourceAccount condition to scope invocation.
3. Remove the external IP target or verify it is an intentional on-premises endpoint.
Edge-case handling
Edge-case handling catalog — moved verbatim.
Full detail: Advanced Patterns.
Worked example — partially malformed auth policy
Worked example — partially malformed auth policy — moved verbatim.
Full detail: Worked examples.
API errors during live-account audit; CONFIG_GAP remediation ticket rule — moved verbatim.
Full detail: Error handling.
Anti-Patterns — NEVER
NEVER classify a service network with NO auth policy as OK or CONFIG_GAP.
Absence of an auth policy is the DEFAULT-OPEN state — any resource in an
associated VPC can invoke services. This is NO_AUTH_POLICY, the highest-
concern verdict. Operators assume "no policy = locked down." It means the
opposite.
NEVER treat VPC association as a security boundary. VPC association
enables routing and DNS resolution. It does NOT restrict which resources
can invoke services. A service network with 10 VPCs associated and no
auth policy is open to ALL resources in ALL 10 VPCs.
NEVER assume the service network auth policy covers all services. A
service with its OWN auth policy silently overrides the network policy. A
network-level audit that skips service-level policies misses the bypass.
Always enumerate service-level policies.
NEVER classify Principal: "*" with vpc-lattice:Invoke or vpc-lattice:*
as CONFIG_GAP. This is PUBLIC_SERVICE_NETWORK — any AWS principal can
invoke every service. CONFIG_GAP implies a scoped issue, not an open
service network.
NEVER ignore NotAction in an Allow auth policy. NotAction is an inverse
wildcard that grants every action except the listed ones. Since
vpc-lattice:Invoke is almost never in the NotAction list, the caller
can invoke. Treat as INVOKE_ACCESS and apply Rule 5b.
NEVER treat aws:SourceIp with 0.0.0.0/0 as a condition. This CIDR is
the entire internet. Treat the statement as if the condition is absent.
NEVER recommend removing the auth policy as remediation. Removing the auth
policy returns the service network to NO_AUTH_POLICY (default-open), which
is WORSE than a permissive policy. The remediation is to tighten the
policy, not remove it.
NEVER assume RAM sharing alone grants cross-account invocation. RAM
sharing grants VISIBILITY (list, describe). Invocation requires the auth
policy to Allow the consumer AND the consumer's IAM policy to include
vpc-lattice:Invoke. However, without an auth policy, the RAM share +
VPC association is sufficient — flag as NO_AUTH_POLICY.
NEVER flag same-account vpc-lattice:Invoke with a STRONG condition
(aws:SourceVpc, aws:SourceAccount) as CONFIG_GAP. Same-account access
scoped by a strong condition is OK — the condition couples invocation to
a known VPC or account that the caller controls.
NEVER classify cross-account vpc-lattice:Invoke as OK, even when
restricted by aws:SourceAccount, aws:SourceArn, or aws:SourceVpc.
Cross-account invoke is ALWAYS at least CONFIG_GAP (Rule 5d). The STRONG
condition narrows the blast radius but the external trust dependency
remains — a compromised external account or policy edit widens exposure.
Only same-account invoke with a STRONG condition is OK (Rule 5h). If the
principal's 12-digit account ID differs from the service network's owning
account, the finding is CONFIG_GAP regardless of conditions.
NEVER treat IP target groups as equivalent to INSTANCE target groups.
INSTANCE targets are bound to EC2 ENIs in the VPC (network-isolated).
IP targets can point to ANY address — cross-VPC, cross-account, on-premises.
An IP target outside the VPC CIDR is a CONFIG_GAP.
NEVER assume the security group on the VPC association compensates for a
missing auth policy. The security group controls network traffic to
targets, not who can invoke services through Lattice. They are
complementary layers, not substitutes.
NEVER forget to archive backup auth-policy files after each change.
PutAuthPolicy is atomic with no version history and no rollback API.
Store the previous policy in a versioned location (S3 with versioning
enabled, git, or a secrets manager) before every replacement. A lost
backup means no recovery path — the only option is to reconstruct the
policy from memory or CloudTrail management-event logs.
NEVER assume Resource: <specific-arn> in a Lattice auth policy scopes
the grant. The policy is attached to a service network or service; the
Resource element is effectively ignored regardless of what you specify.
Setting Resource to a single service ARN gives a false sense of scoping.
Use Principal and Condition to restrict, not Resource.
NEVER rely on aws:SourceIp conditions in a Lattice auth policy. Lattice
proxies requests through its data plane, so the source IP is a Lattice
internal address — not the original caller's IP. A SourceIp condition
either matches unpredictably or blocks legitimate traffic. It is
architecturally unreliable, not merely weak.
NEVER skip IPv6 CIDR checks on target groups and security groups. Lattice
supports IPv6; an IP target group with IPv6 targets (::/0, fc00::/7) is
just as dangerous as IPv4 targets outside the VPC CIDR. Audit both
families.
NEVER ignore CloudWatch Lattice metrics during an audit window. A sudden
spike in ProcessedBytes or 4xxErrorCount for a service may indicate
unauthorized invocation attempts. Correlate metrics with auth-policy
findings to prioritize remediation.
Pre-flight safety checks (run before any remediation CLI)
- MANDATORY CONFIRMATION GATE. Before any state-changing operation
(
PutAuthPolicy, DeleteServiceNetwork, DeleteService), the auditor
MUST emit:
CONFIRM: About to <action> on service network <id> in account <account>. This affects <consequence>. Proceed? (yes/no)
- DeleteServiceNetwork is DESTRUCTIVE and NON-RECOVERABLE. Deleting a
service network severs ALL VPC associations and routing — every service
in the network becomes unreachable instantly. There is no recycle bin.
The auditor MUST require a second confirmation for DeleteServiceNetwork
specifically, including a check that all associated VPCs and services
have been enumerated and acknowledged. Prefer disassociating individual
VPCs over deleting the network when scoping access.
- PutAuthPolicy lockout prevention. The replacement auth policy MUST
include at least one Allow statement for a principal in the owning
account. An auth policy that denies the owning account is an instant
lockout — there is no version history and no rollback.
- Capture the current auth policy for rollback BEFORE any modification:
aws vpc-lattice get-auth-policy --resource-arn <arn> --output json > /tmp/<sn-id>-auth-policy-backup-$(date +%s).json
- Before putting a new auth policy, verify ALL services in the network are
still reachable by the intended callers. An overly restrictive policy
silently breaks service-to-service communication.
- Prefer additive changes (add a Deny, add a condition) over destructive
changes (remove an Allow) — additive changes are reversible.
- For NO_AUTH_POLICY findings, treat as high-priority — the service network
is currently open. Remediate by attaching a scoped auth policy, not by
disassociating VPCs (which breaks routing).
Remediation guidance
For NO_AUTH_POLICY — no auth policy (default-open)
- Create a scoped auth policy:
aws vpc-lattice put-auth-policy --resource-arn <sn-arn> --policy file://auth-policy.json
Sample scoped auth policy (NO_AUTH_POLICY remediation) — moved verbatim.
Full detail: Worked examples.
For PUBLIC_SERVICE_NETWORK — wildcard Invoke (Rule 5a/5b)
- Replace
Principal: "*" with specific same-account role ARNs.
- Add
aws:SourceVpc or aws:SourceAccount condition.
- If
NotAction is the source, replace with explicit Action allow-list.
- Audit CloudTrail for
vpc-lattice:Invoke events from unexpected principals
during the exposure window.
For CONFIG_GAP — cross-account invoke (Rule 5c/5d)
- If cross-account access is NOT required, remove the external principal.
- If cross-account IS required, add
aws:SourceAccount and aws:SourceArn
conditions to scope the grant.
- Verify the consumer account's IAM policy also restricts Invoke to
intended roles (intersection model).
For CONFIG_GAP — IP target outside VPC CIDR (Step 6)
- Verify the external IP is an intentional endpoint (on-premises via
Direct Connect, cross-VPC via peering).
- If unintentional, remove the target:
aws vpc-lattice deregister-targets --target-group-identifier <tg-id> --targets <target-list>
- If intentional, document the routing path and add a note to the finding.
For CONFIG_GAP — RAM share without scoped policy (Step 7)
- Verify the consumer account is expected.
- Add the consumer account's role to the auth policy with conditions.
- If the share is stale, remove it:
aws ram delete-resource-share --resource-share-arn <rs-arn>
For OK
- No remediation required for the current posture.
- Recommend periodically re-auditing service-level auth policies (they can
be added independently and silently override the network policy).
- Recommend adding a Deny on
aws:SecureTransport: false for defense in
depth.
Expert knowledge: non-obvious VPC Lattice behaviors
Expert knowledge — non-obvious VPC Lattice behaviors — moved verbatim.
Full detail: Advanced Patterns.
Deep reference: Lattice authorization
Deep reference — Lattice authorization internals — moved verbatim.
Full detail: Advanced Patterns.
References (load on demand)
- Worked examples — secondary worked example (partially malformed policy), sample scoped auth policy
- Error handling — malformed-policy ERROR output, live-audit API errors, CONFIG_GAP ticket rule
- Diagnostic commands — live-account pre-flight checks (services, RAM shares, IAM intersection, pagination, consistency)
- Advanced patterns — edge-case catalog, Step-1/Rule-5d rationale, expert knowledge, deep authorization reference
Domain
AWS CloudOps / VPC Lattice Application Networking Security.
AWS documentation
1---2name: vpc-lattice-auth-auditor3description: 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.4license: Apache-2.05compatibility: 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).6metadata:7 source: https://skillmd.com/skills/jhkchan/vpc-lattice-auth-auditor8 domain: aws-cloudops9 complexity: high10 requires_llm: 'true'11 phase: '2'12 supports_pipeline: 'true'13 entry_point: 'false'14 family: Security15 verdict_shape: NO_AUTH_POLICY | PUBLIC_SERVICE_NETWORK | CONFIG_GAP | OK16 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.17 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 exposure18 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 }.'19 version: 0.1.020 author: Jacky Chan — AWS Community Builder21 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 override22 tags: vpc-lattice, security, auth-policy, service-network, cross-account, ram, target-group, routing, audit23---2425# VPC Lattice Auth Auditor2627## Mindset2829**One-line takeaway:** the verdict is the **worst** finding across all30dimensions, and VPC Lattice has a trap unique among AWS resource-based31policies — **absence of an auth policy is the default state, and it means32"open within associated VPCs," not "no access."**3334VPC Lattice is the application-networking layer between your services. Its35auth model differs from KMS or S3 in a critical way:36- **Auth policy absence is the DEFAULT.** A new service network has NO37 resource-based auth policy. Without one, any resource in an associated VPC38 can invoke any service in the network — IAM identity-based policy alone is39 the only gate.40- **`vpc-lattice:Invoke` is the blast-radius action.** One permission grants41 the ability to call any service in the network. Unlike `kms:Decrypt` (data42 exposure), Invoke grants **service-call access** — the caller can hit every43 endpoint, API, and microservice behind the network.44- **Service-level auth policy overrides network-level.** A service can carry45 its OWN auth policy that silently replaces the service network's. A secure46 network-level policy is bypassed by a permissive service-level override.4748## Quick-start (90-second audit)4950For first-pass triage — full classification logic, edge cases, and remediation below.51521. **Auth policy present?** `NOT_SET` → **NO_AUTH_POLICY** (default-open, worst verdict). Stop.532. **Any `Principal: "*"` with Invoke or `vpc-lattice:*` or `NotAction`?** → **PUBLIC_SERVICE_NETWORK**. Stop.543. **Any cross-account principal with Invoke?** → **CONFIG_GAP** (always, even with strong conditions). Stop.554. **IP targets outside VPC CIDR, RAM share without scoped policy, or permissive service-level override?** → **CONFIG_GAP**.565. **All dimensions clean?** → **OK**.5758Worst finding wins: NO_AUTH_POLICY > PUBLIC_SERVICE_NETWORK > CONFIG_GAP > OK.5960## Quick reference — verdict matrix6162| Condition | Verdict | Rule |63|---|---|---|64| No auth policy on service network (and no service-level policy) | **NO_AUTH_POLICY** | Step 1 |65| Auth policy + `Principal: "*"` + Invoke/vpc-lattice:*/* + no strong condition | **PUBLIC_SERVICE_NETWORK** | Rule 5a |66| Auth policy + `Principal: "*"` + NotAction (inverse wildcard) | **PUBLIC_SERVICE_NETWORK** | Rule 5b |67| Auth policy + cross-account + Invoke + no condition | **CONFIG_GAP** | Rule 5c |68| Auth policy + cross-account + Invoke + STRONG condition | **CONFIG_GAP** | Rule 5d |69| Auth policy + IP target group + targets outside VPC CIDR | **CONFIG_GAP** | Step 6 |70| Auth policy + RAM share to external account + no scoped policy | **CONFIG_GAP** | Step 7 |71| Auth policy + same-account + Invoke + STRONG condition + clean targets | **OK** | Step 9 |7273See the ordered steps below for edge cases. Deep VPC Lattice authorization74internals are in the [Deep reference](#deep-reference-lattice-authorization)75section.7677## Pre-flight: service-network metadata gate (run before auth-policy classification)7879Before evaluating the auth policy, classify the service network itself.8081Live-account pre-flight checks (run before auth-policy classification) — moved verbatim.82Full detail: [Diagnostic commands](references/diagnostic-commands.md).8384| Attribute | Value | Effect on audit |85|---|---|---|86| Auth policy state | `NOT_SET` | **No auth policy.** Default-open: any resource in an associated VPC can invoke services. Jump to Step 1. |87| Auth policy state | `ACTIVE` | Proceed with full audit. |88| Service count | 0 | Empty service network — no services to invoke. Note as operational but not a security verdict driver. |89| VPC associations | 0 | No VPCs associated — the service network is not routable. Low risk but flag as orphaned. |90| RAM shares | External account | Cross-account exposure — check auth policy covers the consumer account. |91| RAM shares | None | No cross-account sharing. Proceed with same-account audit. |9293Malformed auth-policy ERROR output (pre-flight gate) — moved verbatim.94Full detail: [Error handling](references/error-handling.md).9596## Process — Classification logic (apply in order, aggregate worst)9798### Step 0: Critical classification rules (see Expert Knowledge for depth)99100- **No auth policy = DEFAULT-OPEN**, not locked down. Any resource in an101 associated VPC can invoke. This drives Step 1.102- **NotAction in an Allow = inverse wildcard.** Invoke is included. Treat103 as INVOKE_ACCESS. This drives Rule 5b.104- **Cross-account Invoke is ALWAYS CONFIG_GAP**, even with a STRONG105 condition. Same-account + STRONG = OK (Rule 5h). This drives Step 5.106- **Service-level auth policy silently overrides network-level.** Always107 enumerate service-level policies independently. This drives Step 8.108- **CloudTrail does NOT log `vpc-lattice:Invoke`** data-plane events.109 Forensics need VPC Flow Logs, not CloudTrail.110- **The `Resource` element is effectively ignored** in Lattice auth policies.111 Use Principal and Condition to scope, never Resource.112113Full rationale and additional non-obvious behaviors in114[Expert knowledge](#expert-knowledge-non-obvious-vpc-lattice-behaviors)115at the end.116117### Step 1: Auth-policy presence (highest priority — default-open exposure)118119If the service network has NO auth policy (`state: NOT_SET`) and NO120service-level auth policy:121122- **NO_AUTH_POLICY.** The service network is default-open. Any resource in123 an associated VPC can invoke any service. If the network is shared124 cross-account via RAM, the consumer account's VPC resources can also125 invoke. This is the single most common VPC Lattice security finding.126127Step 1 rationale — why NO_AUTH_POLICY outranks a permissive policy — moved verbatim.128Full detail: [Advanced Patterns](references/advanced-patterns.md).129130### Step 2: Principal scope classification131132For each `Effect: Allow` statement in the auth policy, classify the principal:133134- **WILDCARD_PRINCIPAL** — Principal is `"*"`, `{"AWS": "*"}`, or any135 construct resolving to all principals.136137- **CROSS_ACCOUNT** — Principal includes an ARN whose 12-digit account ID138 differs from the service network's owning account. Example: service139 network in `111111111111` with principal140 `arn:aws:iam::222222222222:role/consumer-app`.141142- **SAME_ACCOUNT** — All principals share the owning account ID.143144A statement with BOTH same-account and cross-account principals is145classified by the **widest** scope — CROSS_ACCOUNT.146147### Step 3: Action danger classification148149Classify the action set in each Allow statement by danger level:150151| Danger level | Actions | Why |152|---|---|---|153| **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. |154| **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. |155| **METADATA** | `vpc-lattice:Get*`, `vpc-lattice:List*` | Read-only — enumerate services, target groups, associations. Low severity. |156157**NotAction in an Allow statement** is an inverse wildcard — it grants158every action EXCEPT the listed ones. Treat as INVOKE_ACCESS because159`vpc-lattice:Invoke` is automatically included unless explicitly listed in160the NotAction array.161162### Step 4: Condition strength evaluation163164**STRONG conditions (downgrade severity by noting the restriction):**165- `aws:SourceVpc` with `StringEquals` — request must originate from the166 named VPC. Set by VPC endpoint infrastructure; caller cannot forge.167- `aws:SourceVpce` with `StringEquals` — request must originate from the168 named VPC endpoint. Tighter than SourceVpc.169- `aws:SourceAccount` with `StringEquals` — request must originate from the170 named account. Set by the calling AWS service.171- `aws:SourceArn` with `StringEquals`/`StringLike` — request must originate172 from the named resource ARN.173174**WEAK conditions (do NOT treat as a restriction):**175- `aws:SourceIp` / `aws:SourceIp` containing `0.0.0.0/0` — bypassable by176 callers who control egress (NAT, proxy, VPN).177- `aws:Referer`, `aws:UserAgent` — trivially forgeable.178- Any condition wrapped in `IfExists` — weakens the assertion.179180### Step 5: Cross-reference — the verdict matrix181182**CROSS_ACCOUNT INVOKE GATE — evaluate BEFORE the matrix:**183If ANY Allow statement grants `vpc-lattice:Invoke` (or `vpc-lattice:*` or184`*` or `NotAction`) to a principal whose 12-digit account ID DIFFERS from185the service network's owning account, that statement's finding is186**CONFIG_GAP** — unconditionally, regardless of any Condition block187(`aws:SourceAccount`, `aws:SourceArn`, `aws:SourceVpc`, or any other key).188This is a hard short-circuit. The STRONG condition narrows the blast radius189but cannot eliminate the cross-account trust dependency. Only SAME_ACCOUNT190and WILDCARD principals proceed to the matrix below.191192Combine principal scope (Step 2), action danger (Step 3), and condition193strength (Step 4). Apply in order — first matching row determines the194finding severity for that statement:195196| # | Principal | Action danger | Condition | Finding | Rule |197|---|---|---|---|---|---|198| 5a | WILDCARD | INVOKE_ACCESS | None/weak | **PUBLIC_SERVICE_NETWORK** | Rule 5a: any AWS principal can invoke services |199| 5b | WILDCARD | INVOKE_ACCESS (via NotAction) | None/weak | **PUBLIC_SERVICE_NETWORK** | Rule 5b: NotAction inverse wildcard silently grants Invoke |200| 5c | CROSS_ACCOUNT | INVOKE_ACCESS | None/weak | **CONFIG_GAP** | Rule 5c: cross-account invoke with no condition |201| 5d | CROSS ACCOUNT | INVOKE_ACCESS | STRONG | **CONFIG_GAP** | Rule 5d: cross-account invoke, condition-restricted but still external |202| 5e | WILDCARD | CONTROL_ACCESS | None/weak | **CONFIG_GAP** | Rule 5e: wildcard policy mutation — any principal can replace the auth policy |203| 5f | CROSS_ACCOUNT | CONTROL_ACCESS | None/weak | **CONFIG_GAP** | Rule 5f: cross-account policy mutation |204| 5g | WILDCARD or CROSS | METADATA | None/weak | **CONFIG_GAP** | Rule 5g: metadata enumeration by external principals |205| 5h | SAME_ACCOUNT | INVOKE_ACCESS | STRONG | **OK** (for this dimension) | Rule 5h: same-account scoped with strong condition |206| 5i | SAME_ACCOUNT | INVOKE_ACCESS | None | **CONFIG_GAP** | Rule 5i: same-account invoke with no condition — fragile |207208Rule 5d rationale — cross-account invoke is always CONFIG_GAP — moved verbatim.209Full detail: [Advanced Patterns](references/advanced-patterns.md).210211### Step 6: Target group security evaluation212213Evaluate each target group associated with the service network's services:214215- **INSTANCE targets in the owning VPC** → OK for this dimension.216- **INSTANCE targets in a different VPC** → CONFIG_GAP (cross-VPC routing217 without explicit peering validation).218- **IP targets within the owning VPC CIDR** → OK.219- **IP targets outside the owning VPC CIDR** (cross-VPC, cross-account,220 on-premises, or `0.0.0.0/0`) → **CONFIG_GAP**. IP targets to arbitrary221 addresses are a potential data-exfiltration path or routing black hole.222- **LAMBDA targets** → OK for network security (Lambda has its own223 resource-policy gate). Note as operational — Lambda invoke permissions224 are governed by the function's resource policy, not the target group.225- **ALB targets** → OK (ALB has its own security groups). Note that the ALB226 listener must match the Lattice forwarding protocol.227228### Step 7: Cross-account RAM share evaluation229230If the service network is shared via AWS RAM:231232- **RAM share + NO auth policy** → the finding is already NO_AUTH_POLICY233 (Step 1), but escalate the REASON to note cross-account exposure: consumer234 VPC resources can invoke services with no resource-based gate.235- **RAM share + auth policy with the consumer account as named principal +236 STRONG condition** → OK for this dimension (scoped cross-account access).237- **RAM share + auth policy WITHOUT the consumer account** → CONFIG_GAP238 (the share grants visibility, but the auth policy does not explicitly239 Allow the consumer — this may be intentional or an oversight).240- **RAM share + auth policy with `Principal: "*"`** → already241 PUBLIC_SERVICE_NETWORK (Rule 5a), but note the RAM share compounds242 exposure.243244### Step 8: Service-level auth policy override check245246If ANY service in the network has its OWN auth policy:247248- Evaluate the service-level policy INDEPENDENTLY using Steps 2-5.249- A service-level policy that is MORE permissive than the network-level250 policy produces a separate finding for that service.251- A service-level policy that is MORE restrictive than the network-level252 policy is fine (defense in depth) — note as OK for that service.253- The overall verdict is the **worst** finding across the network-level254 policy AND all service-level policies.255256### Step 9: Aggregation — worst finding wins257258```text259verdict = max(all_statement_findings, target_group_finding, ram_share_finding, service_override_finding)260```261262Where NO_AUTH_POLICY > PUBLIC_SERVICE_NETWORK > CONFIG_GAP > OK.263264If no findings (auth policy present, properly scoped, target groups clean,265no cross-account exposure, no service overrides), the verdict is **OK**.266267## Output format (per service network)268269```text270SERVICE NETWORK: <sn-id>271VERDICT: NO_AUTH_POLICY | PUBLIC_SERVICE_NETWORK | CONFIG_GAP | OK272REASON: <1-2 sentences citing the worst finding and its rule number>273FINDINGS:274 - [NO_AUTH_POLICY] <finding description>275 - [PUBLIC_SERVICE_NETWORK] <finding description (Rule Na)>276 - [CONFIG_GAP] <finding description (Step N)>277REMEDIATION: <specific action per finding, or "None required" if OK>278```279280### Worked example — public service network with wildcard Invoke281282```text283SERVICE NETWORK: sn-0b2c3d4e5284VERDICT: PUBLIC_SERVICE_NETWORK285REASON: Auth policy Statement "OpenInvoke" grants vpc-lattice:* to286Principal "*" with no restrictive condition — any AWS principal can invoke287every service in the network (Rule 5a).288FINDINGS:289 - [PUBLIC_SERVICE_NETWORK] Principal: "*" + vpc-lattice:* + no condition (Rule 5a)290 - [CONFIG_GAP] IP target group tg-0b2c has target 203.0.113.50 outside VPC CIDR 10.0.0.0/16 (Step 6)291REMEDIATION:292 1. Replace Principal: "*" with specific same-account role ARNs.293 2. Add aws:SourceVpc or aws:SourceAccount condition to scope invocation.294 3. Remove the external IP target or verify it is an intentional on-premises endpoint.295```296297## Edge-case handling298299Edge-case handling catalog — moved verbatim.300Full detail: [Advanced Patterns](references/advanced-patterns.md).301302### Worked example — partially malformed auth policy303304Worked example — partially malformed auth policy — moved verbatim.305Full detail: [Worked examples](references/worked-examples.md).306307API errors during live-account audit; CONFIG_GAP remediation ticket rule — moved verbatim.308Full detail: [Error handling](references/error-handling.md).309310## Anti-Patterns — NEVER311312- NEVER classify a service network with NO auth policy as OK or CONFIG_GAP.313 Absence of an auth policy is the DEFAULT-OPEN state — any resource in an314 associated VPC can invoke services. This is NO_AUTH_POLICY, the highest-315 concern verdict. Operators assume "no policy = locked down." It means the316 opposite.317318- NEVER treat VPC association as a security boundary. VPC association319 enables routing and DNS resolution. It does NOT restrict which resources320 can invoke services. A service network with 10 VPCs associated and no321 auth policy is open to ALL resources in ALL 10 VPCs.322323- NEVER assume the service network auth policy covers all services. A324 service with its OWN auth policy silently overrides the network policy. A325 network-level audit that skips service-level policies misses the bypass.326 Always enumerate service-level policies.327328- NEVER classify `Principal: "*"` with `vpc-lattice:Invoke` or `vpc-lattice:*`329 as CONFIG_GAP. This is PUBLIC_SERVICE_NETWORK — any AWS principal can330 invoke every service. CONFIG_GAP implies a scoped issue, not an open331 service network.332333- NEVER ignore `NotAction` in an Allow auth policy. `NotAction` is an inverse334 wildcard that grants every action except the listed ones. Since335 `vpc-lattice:Invoke` is almost never in the NotAction list, the caller336 can invoke. Treat as INVOKE_ACCESS and apply Rule 5b.337338- NEVER treat `aws:SourceIp` with `0.0.0.0/0` as a condition. This CIDR is339 the entire internet. Treat the statement as if the condition is absent.340341- NEVER recommend removing the auth policy as remediation. Removing the auth342 policy returns the service network to NO_AUTH_POLICY (default-open), which343 is WORSE than a permissive policy. The remediation is to tighten the344 policy, not remove it.345346- NEVER assume RAM sharing alone grants cross-account invocation. RAM347 sharing grants VISIBILITY (list, describe). Invocation requires the auth348 policy to Allow the consumer AND the consumer's IAM policy to include349 `vpc-lattice:Invoke`. However, without an auth policy, the RAM share +350 VPC association is sufficient — flag as NO_AUTH_POLICY.351352- NEVER flag same-account `vpc-lattice:Invoke` with a STRONG condition353 (`aws:SourceVpc`, `aws:SourceAccount`) as CONFIG_GAP. Same-account access354 scoped by a strong condition is OK — the condition couples invocation to355 a known VPC or account that the caller controls.356357- NEVER classify cross-account `vpc-lattice:Invoke` as OK, even when358 restricted by `aws:SourceAccount`, `aws:SourceArn`, or `aws:SourceVpc`.359 Cross-account invoke is ALWAYS at least CONFIG_GAP (Rule 5d). The STRONG360 condition narrows the blast radius but the external trust dependency361 remains — a compromised external account or policy edit widens exposure.362 Only same-account invoke with a STRONG condition is OK (Rule 5h). If the363 principal's 12-digit account ID differs from the service network's owning364 account, the finding is CONFIG_GAP regardless of conditions.365366- NEVER treat IP target groups as equivalent to INSTANCE target groups.367 INSTANCE targets are bound to EC2 ENIs in the VPC (network-isolated).368 IP targets can point to ANY address — cross-VPC, cross-account, on-premises.369 An IP target outside the VPC CIDR is a CONFIG_GAP.370371- NEVER assume the security group on the VPC association compensates for a372 missing auth policy. The security group controls network traffic to373 targets, not who can invoke services through Lattice. They are374 complementary layers, not substitutes.375376- NEVER forget to archive backup auth-policy files after each change.377 `PutAuthPolicy` is atomic with no version history and no rollback API.378 Store the previous policy in a versioned location (S3 with versioning379 enabled, git, or a secrets manager) before every replacement. A lost380 backup means no recovery path — the only option is to reconstruct the381 policy from memory or CloudTrail management-event logs.382383- NEVER assume `Resource: <specific-arn>` in a Lattice auth policy scopes384 the grant. The policy is attached to a service network or service; the385 Resource element is effectively ignored regardless of what you specify.386 Setting Resource to a single service ARN gives a false sense of scoping.387 Use Principal and Condition to restrict, not Resource.388389- NEVER rely on `aws:SourceIp` conditions in a Lattice auth policy. Lattice390 proxies requests through its data plane, so the source IP is a Lattice391 internal address — not the original caller's IP. A SourceIp condition392 either matches unpredictably or blocks legitimate traffic. It is393 architecturally unreliable, not merely weak.394395- NEVER skip IPv6 CIDR checks on target groups and security groups. Lattice396 supports IPv6; an IP target group with IPv6 targets (::/0, fc00::/7) is397 just as dangerous as IPv4 targets outside the VPC CIDR. Audit both398 families.399400- NEVER ignore CloudWatch Lattice metrics during an audit window. A sudden401 spike in `ProcessedBytes` or `4xxErrorCount` for a service may indicate402 unauthorized invocation attempts. Correlate metrics with auth-policy403 findings to prioritize remediation.404405## Pre-flight safety checks (run before any remediation CLI)406407- **MANDATORY CONFIRMATION GATE.** Before any state-changing operation408 (`PutAuthPolicy`, `DeleteServiceNetwork`, `DeleteService`), the auditor409 MUST emit:410 `CONFIRM: About to <action> on service network <id> in account <account>.411 This affects <consequence>. Proceed? (yes/no)`412- **DeleteServiceNetwork is DESTRUCTIVE and NON-RECOVERABLE.** Deleting a413 service network severs ALL VPC associations and routing — every service414 in the network becomes unreachable instantly. There is no recycle bin.415 The auditor MUST require a second confirmation for DeleteServiceNetwork416 specifically, including a check that all associated VPCs and services417 have been enumerated and acknowledged. Prefer disassociating individual418 VPCs over deleting the network when scoping access.419- **PutAuthPolicy lockout prevention.** The replacement auth policy MUST420 include at least one Allow statement for a principal in the owning421 account. An auth policy that denies the owning account is an instant422 lockout — there is no version history and no rollback.423- Capture the current auth policy for rollback BEFORE any modification:424 `aws vpc-lattice get-auth-policy --resource-arn <arn> --output json >425 /tmp/<sn-id>-auth-policy-backup-$(date +%s).json`426- Before putting a new auth policy, verify ALL services in the network are427 still reachable by the intended callers. An overly restrictive policy428 silently breaks service-to-service communication.429- Prefer additive changes (add a Deny, add a condition) over destructive430 changes (remove an Allow) — additive changes are reversible.431- For NO_AUTH_POLICY findings, treat as high-priority — the service network432 is currently open. Remediate by attaching a scoped auth policy, not by433 disassociating VPCs (which breaks routing).434435## Remediation guidance436437### For NO_AUTH_POLICY — no auth policy (default-open)4384391. Create a scoped auth policy:440 `aws vpc-lattice put-auth-policy --resource-arn <sn-arn> --policy441 file://auth-policy.json`442443Sample scoped auth policy (NO_AUTH_POLICY remediation) — moved verbatim.444Full detail: [Worked examples](references/worked-examples.md).445446### For PUBLIC_SERVICE_NETWORK — wildcard Invoke (Rule 5a/5b)4474481. Replace `Principal: "*"` with specific same-account role ARNs.4492. Add `aws:SourceVpc` or `aws:SourceAccount` condition.4503. If `NotAction` is the source, replace with explicit `Action` allow-list.4514. Audit CloudTrail for `vpc-lattice:Invoke` events from unexpected principals452 during the exposure window.453454### For CONFIG_GAP — cross-account invoke (Rule 5c/5d)4554561. If cross-account access is NOT required, remove the external principal.4572. If cross-account IS required, add `aws:SourceAccount` and `aws:SourceArn`458 conditions to scope the grant.4593. Verify the consumer account's IAM policy also restricts Invoke to460 intended roles (intersection model).461462### For CONFIG_GAP — IP target outside VPC CIDR (Step 6)4634641. Verify the external IP is an intentional endpoint (on-premises via465 Direct Connect, cross-VPC via peering).4662. If unintentional, remove the target:467 `aws vpc-lattice deregister-targets --target-group-identifier <tg-id>468 --targets <target-list>`4693. If intentional, document the routing path and add a note to the finding.470471### For CONFIG_GAP — RAM share without scoped policy (Step 7)4724731. Verify the consumer account is expected.4742. Add the consumer account's role to the auth policy with conditions.4753. If the share is stale, remove it:476 `aws ram delete-resource-share --resource-share-arn <rs-arn>`477478### For OK4794801. No remediation required for the current posture.4812. Recommend periodically re-auditing service-level auth policies (they can482 be added independently and silently override the network policy).4833. Recommend adding a Deny on `aws:SecureTransport: false` for defense in484 depth.485486## Expert knowledge: non-obvious VPC Lattice behaviors487488Expert knowledge — non-obvious VPC Lattice behaviors — moved verbatim.489Full detail: [Advanced Patterns](references/advanced-patterns.md).490491## Deep reference: Lattice authorization492493Deep reference — Lattice authorization internals — moved verbatim.494Full detail: [Advanced Patterns](references/advanced-patterns.md).495496## References (load on demand)497498- [Worked examples](references/worked-examples.md) — secondary worked example (partially malformed policy), sample scoped auth policy499- [Error handling](references/error-handling.md) — malformed-policy ERROR output, live-audit API errors, CONFIG_GAP ticket rule500- [Diagnostic commands](references/diagnostic-commands.md) — live-account pre-flight checks (services, RAM shares, IAM intersection, pagination, consistency)501- [Advanced patterns](references/advanced-patterns.md) — edge-case catalog, Step-1/Rule-5d rationale, expert knowledge, deep authorization reference502503## Domain504505AWS CloudOps / VPC Lattice Application Networking Security.506507## AWS documentation508509- **VPC Lattice User Guide** — https://docs.aws.amazon.com/vpc-lattice/latest/ug/510- **VPC Lattice Security** — https://docs.aws.amazon.com/vpc-lattice/latest/ug/security.html511- **Auth policies** — https://docs.aws.amazon.com/vpc-lattice/latest/ug/auth-policies.html512- **VPC Lattice API Reference** — https://docs.aws.amazon.com/vpc-lattice/latest/APIReference/513- **AWS CLI Command Reference (VPC Lattice)** — https://docs.aws.amazon.com/cli/latest/reference/vpc-lattice/514- **Cross-account sharing with RAM** — https://docs.aws.amazon.com/vpc-lattice/latest/ug/sharing.html