Skip to Content
Asterrr's Handbook
3 · Infrastructure security

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.

Reachability AnalyzerNetwork Access Analyzerhop by hopMatchPathsviolationsSourcePath analysisDestinationAccess scopeAnalysisFindings
Reachability Analyzer tests one named path. Network Access Analyzer scans for any path that violates a scope you define.

Which one to use

ToolQuestion it answersScopeSends 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 organizationNo
Inspector network reachability"Which EC2 ports are open to the internet or other networks, and through what?"Every scanned EC2 instanceNo
VPC Flow Logs"What traffic actually flowed, and was it accepted or rejected?"ENI, subnet, VPC or TGWRecords real traffic
ItemReachability AnalyzerNetwork Access Analyzer
Question"Can A reach B, and if not, what blocks it""What can reach my resources that should not"
InputOne source and one destinationA Network Access Scope with MatchPaths and optional ExcludePaths
OutputHop-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 useTroubleshoot, verify intended connectivity, automate checks after changesProve segmentation, internet exposure, trusted paths and trusted ranges for audits
BillingPer analysis runPer 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

Scenario
A healthcare company has 25 VPCs across 6 accounts connected through a transit gateway. Compliance requires proof, repeated weekly, that no network path exists from any internet gateway to any resource tagged DataClass=PHI unless it passes through the central Network Firewall. What should the security engineer use?

Further reading

On this page