Network Access Analyzer and Reachability Analyzer
Two static VPC analysis tools. One finds unintended access, the other explains why a specific path is blocked.
Exam tasks: 3.3 (identifying unnecessary network access with Network Access Analyzer and Inspector network reachability findings)
The decision: which tool answers the question (can A reach B, which paths break my policy, or which ports are exposed) without sending traffic?
Both tools analyze your configuration (routes, security groups, NACLs, gateways, load balancers). Neither sends packets, and neither reads flow logs. They differ in the question asked.
Which one to use
| Tool | Question it answers | Scope | Sends traffic? |
|---|---|---|---|
| VPC Reachability Analyzer | "Can A reach B on port P, and if not, which component blocks it?" | One source and destination (instance, ENI, IGW, TGW attachment, VPC endpoint, peering, VPN gateway) | No. It analyzes configuration |
| Network Access Analyzer | "Which paths exist that break my policy?" (for example, anything from an IGW to a database subnet) | Whole accounts or an organization | No |
| Inspector network reachability | "Which EC2 ports are open to the internet or other networks, and through what?" | Every scanned EC2 instance | No |
| VPC Flow Logs | "What traffic actually flowed, and was it accepted or rejected?" | ENI, subnet, VPC or TGW | Records real traffic |
| Item | Reachability Analyzer | Network Access Analyzer |
|---|---|---|
| Question | "Can A reach B, and if not, what blocks it" | "What can reach my resources that should not" |
| Input | One source and one destination | A Network Access Scope with MatchPaths and optional ExcludePaths |
| Output | Hop-by-hop path if reachable, otherwise the blocking component (security group, NACL, route table, load balancer) | Findings, each a path that matches a match entry and no exclusion |
| Typical use | Troubleshoot, verify intended connectivity, automate checks after changes | Prove segmentation, internet exposure, trusted paths and trusted ranges for audits |
| Billing | Per analysis run | Per network interface analyzed |
Network Access Analyzer requirement examples.
- Network segmentation. Prod and dev VPCs, or a card-data network, must not connect.
- Internet accessibility. List resources reachable from an internet gateway and confirm only the intended ones.
- Trusted network paths. Every path to an internet gateway crosses a firewall or NAT gateway.
- Trusted network access. Resources are reachable only from approved CIDR ranges, ports and protocols.
Scopes can use resource IDs, resource types such as AWS::EC2::InternetGateway, tags, and address, port and protocol ranges. Use ExcludePaths for legitimate exceptions, such as paths that end at your web servers.
Exam signal
"Instance A cannot connect to instance B, find which rule blocks it without sending traffic" means Reachability Analyzer. "Demonstrate to auditors that no path from the internet reaches the database subnets" means Network Access Analyzer.
Exam trap
These tools do not show actual traffic or attacks. For real traffic use flow logs. For threats use GuardDuty.
Reachability Analyzer notes
- It works across accounts in an organization when trusted access is enabled.
- Use it after a change breaks connectivity, and to confirm a path is not reachable after you close it.
Network Access Analyzer scopes
Good scopes to know.
- Anything reachable from an internet gateway that isn't tagged as a web tier.
- Any path from dev VPCs to prod VPCs.
- Any path to the internet that doesn't go through the Network Firewall.
Run it on a schedule (EventBridge + Lambda or Systems Manager Automation) and send findings to Security Hub for continuous verification.
Inspector network reachability findings
- Inspector checks every EC2 instance about every 12 hours for open paths, with no agent. A finding names the port range, the open path (IGW, ELB, VPN, peering) and the security group or NACL that allows it.
- Findings are raised only for ports that are actually reachable from outside the VPC, so they're a good list of unnecessary exposure to close first. They also lower or raise the Inspector score of package findings on the same instance.
Exam signal
Pick Reachability Analyzer to troubleshoot one connection. Pick Network Access Analyzer to find every path that violates a segmentation rule across many VPCs. Pick Inspector for a continuously updated list of internet-reachable ports on EC2. None of them needs test traffic.
Exam signal
Pick Reachability Analyzer to troubleshoot one connection. Pick Network Access Analyzer to find every path that violates a segmentation rule across many VPCs. Pick Inspector for a continuously updated list of internet-reachable ports on EC2. None of them needs test traffic.
Scenarios
Network Access Analyzer is built to express "no path of this shape may exist" across many VPCs, with tag-based matching and exclusions for approved controls, and to report every violating path. Reachability Analyzer checks one pair at a time, which doesn't scale to proving a negative. Flow logs show only traffic that happened, not paths that exist. Inspector covers EC2 only and doesn't check the firewall condition.
Related
Further reading
Network segmentation
North/south and east/west traffic, public, private and isolated subnet tiers, and Transit Gateway route tables that keep environments apart.
VPC Flow Logs and Traffic Mirroring
Metadata logging versus full packet capture in a VPC, what flow logs miss, and how to tell NACL denies from security group denies.