Control traffic flow within your network layers
Framework question: How do you protect your network resources?
- Risk if not established
- High
- Framework verified
- 23 Oct 2026
AWS Well-Architected Framework — SEC05-BP02 Control traffic flow within your network layers
Executive summary
Why this practice matters
Within and between network layers, allow only the specific flows each workload needs, covering inbound, outbound and internal traffic. Start with traffic crossing the boundary to external systems, then tighten flows between internal components. Network controls add a layer of authorisation; they don't replace application authentication.
Business impact
- Stops a compromised component moving freely inside the network.
- Limits data exfiltration by controlling where workloads can send traffic.
- Shrinks the scope of a security incident and speeds up investigation.
- Makes it possible to show reviewers exactly which communication is permitted and why.
Assign
Accountable and responsible roles
Responsibilities are held separately from roles, so accountability type and typical roles are stated explicitly.
| Responsibility | Accountability type | Typical roles |
|---|---|---|
Define permitted flows Identify and record the flows each workload needs, with purpose. Typical roles: Security Architect, Software Engineer, Security Architect, Software Engineer | responsible | Security ArchitectSoftware EngineerSecurity Architect, Software Engineer |
Implement and manage flow controls Configure security groups, routing, private connectivity, DNS filtering and firewalls, managed centrally. Typical roles: Network Engineer, Security Engineer, Network Engineer, Security Engineer | responsible | Network EngineerSecurity EngineerNetwork Engineer, Security Engineer |
Accept residual flow risk Decide on exceptions such as broad rules or open egress that can't yet be removed. Typical roles: Security Leader, Security Leader | consulted | Security LeaderSecurity Leader |
Assessment
Assessment and evidence state
States describe how far the practice has moved from intent to something continuously validated.
- 0
Not Assessed
Traffic flow control has not been reviewed.
Indicators
- No flow inventory exists.
- 1
Not Implemented
Traffic is controlled only at the perimeter, if at all.
Indicators
- Any-to-any rules inside layers.
- Egress is unrestricted.
- 2
Partially Implemented
Inbound rules are reasonable, but internal and outbound flows are loosely controlled.
Indicators
- Broad address-range rules remain.
- No DNS or domain filtering.
- 3
Implemented
Required flows are inventoried and enforced inbound, outbound and within layers.
Indicators
- Identity-based rules.
- Egress restricted to needed destinations.
- 4
Continuously Validated
Flow rules are centrally managed, monitored for drift and reduced over time.
Indicators
- Unused rules are detected and removed.
- Exceptions are tracked to closure.
Assessment dimensions
Flow inventory
Practice-specificNone · Partial · Complete with purpose
Egress control
Practice-specificOpen · Partial · Restricted and filtered
Within-layer control
Practice-specificImplicit trust · Some rules · Least privilege
Rule management
Practice-specificPer-team manual · Mixed · Central and automated
Caution
Perimeter rules alone don't satisfy this practice. Look for evidence of control inside layers and on outbound traffic, not just inbound rules at the edge.
Standard
What you should be able to demonstrate
Statements a reviewer should be able to confirm from evidence, not from intent.
- Required flows are inventoried by source, destination, port, protocol and purpose.
- Both inbound and outbound traffic are restricted, at layer boundaries and within layers.
- Rules reference workload identities (such as security groups) rather than broad address ranges.
- Point-to-point connectivity is used where only specific components need to talk across networks.
- Outbound DNS and domain access is restricted to what workloads need.
- Firewall rules are managed centrally across the organisation.
Trade-offs to hold in view
- Fine-grained flow rules need maintenance as workloads change; without automation they drift or block legitimate traffic.
- Point-to-point private connectivity reduces exposure but adds per-endpoint cost compared with broad peering.
- Egress restriction can break dependencies that were never documented, so it needs a discovery phase first.
Assess
Questions to ask
Each question exposes the difference between an intention and an operating practice.
- discovery
Which flows between components inside the same layer are actually needed?
Exposes reliance on trust within a layer.
Usually asked by: Network Engineer, Software Engineer
- challenge
Where can workloads send traffic to the internet, and is each destination needed?
Open egress is a common, overlooked exfiltration path.
Usually asked by: Security Engineer, Network Engineer
- evidence
Which rules allow broad address ranges, and what justifies each one?
Broad rules quietly undo least-privilege design.
Usually asked by: Security Engineer
- executive
If one workload were compromised, could it send our data to an arbitrary external destination?
Frames egress control as a data-loss risk.
Usually asked by: Security Leader, Data Governance / Privacy
Evidence
Required and expected evidence
Reusable evidence definitions held once in the evidence library and referenced by every practice that relies on them. Each links to what good evidence looks like and to worked examples.
Network Segmentation & Traffic Flow Model
A current model of a workload's or environment's network layers and permitted traffic flows: the layers and why they exist, the components in each, the flows allowed into, out of, between and within layers, and the controls that enforce each boundary.
Use the permitted-flows and egress sections of the Network Segmentation & Traffic Flow Model as primary evidence.
Minimum expected content
- Scope: workloads, environments, VPCs/networks and accounts covered
- Layer inventory with the rationale for each layer (function, data sensitivity, behaviour)
- Components placed in each layer, including managed services and private endpoints
- Public entry points and how they are fronted (load balancer, CDN, API gateway)
- Permitted flows: source, destination, port/protocol, direction and business purpose, covering both external (north-south) and internal (east-west) traffic
- Controls enforcing each boundary and flow (e.g. security groups, route tables, network ACLs, private connectivity, firewalls)
- Egress policy, including which external domains or destinations are allowed
- Approach for connectivity between networks/accounts (point-to-point vs routed)
- Exceptions with owner, rationale and review/expiry date
- Date and method of the last reconciliation with actual configuration
Anti-patterns
- All resources sit in one network or subnet
- The diagram shows tiers, but security rules allow broad address ranges between them
- Only inbound traffic is controlled; outbound is open
- Traffic inside a layer is assumed to be trusted
- Networks are peered wholesale when only a few components need to talk
- The model has never been compared with the real configuration
- 'Temporary' rules have no owner or expiry
Review: Review when workloads, network topology or data sensitivity change materially, and reconcile periodically against actual configuration.
Standard Security Control Baseline / IaC Template
Version-controlled, reusable security-control definitions and infrastructure-as-code templates that deploy approved baseline controls consistently across workloads, accounts or environments, with automated tests and guardrails.
Use the Standard Security Control Baseline / IaC Template to show flow rules are defined consistently in code.
Minimum expected content
- Baseline/control package identity, version and owner
- Security control objectives implemented by the baseline
- Infrastructure-as-code, policy-as-code or configuration definitions
- Intended deployment scope/accounts/environments/workload classes
- Required inputs and permitted configuration variation
- Automated unit/static/policy/security tests
- Deployment pipeline and approval/change controls
- Guardrails preventing or detecting unsafe configuration
- Self-service consumption path for workload teams where applicable
- Drift/conformance monitoring after deployment
- Rollback/recovery and backup/version-retention approach
- Supported/deprecated versions and migration expectations
- Change history and review date
Anti-patterns
- A wiki page describes the baseline but teams implement it manually
- A central security team deploys every control by request
- Templates exist but have no automated security or policy tests
- Workload teams fork templates and cannot consume upstream security fixes
- Baseline success is measured by template deployment, not resulting control conformance
- Emergency manual changes are never reconciled back into code
- No supported-version or migration policy exists
Review: Review with every material baseline/template version and at a defined security-engineering cadence; retain version history and supported versions.
Threat Model
A maintained workload-level model of relevant security threats, attack paths and trust boundaries, their likelihood and impact, and the preventive, detective and responsive mitigations used to reduce exposure.
Use the Threat Model to show which flows were restricted in response to identified threats.
Minimum expected content
- Workload/system scope and security-relevant business assets
- Relevant architecture, data flows and trust boundaries
- Threat actors, threat sources and material assumptions
- Threat scenarios, attack paths or abuse cases
- Likelihood/probability and potential business/security impact
- Threat priority or risk ranking
- Preventive, detective and responsive mitigations planned or in place
- Residual exposure, gaps or accepted limitations
- Owner/action status for material unresolved threats
- Last reviewed date and explicit review/change triggers
Anti-patterns
- A one-time architecture diagram labelled as a threat model with no explicit threat scenarios
- A generic OWASP, STRIDE or MITRE list copied into the record without workload-specific analysis
- The model is not updated after material architecture, data-flow or trust-boundary changes
- Threats are listed but have no prioritisation, mitigation or owner
- Tool findings are treated as the threat model rather than inputs to analysis
- The model records only implemented controls and hides unresolved or residual exposure
- Threat modelling is performed only immediately before assurance review rather than as part of design and change
Review: Review on an agreed security/risk cadence and after material architecture, data-flow, trust-boundary, threat-intelligence, vulnerability or incident changes that could alter the threat picture.
Diagnosis
Common evidence gaps
Perimeter-only control
Traffic is filtered at the network edge, but everything inside a layer can talk freely.
Open egress
Workloads can reach any external destination, making data exfiltration easy.
Broad address-range rules
Rules allow whole subnets or networks where only a few components need access.
Network peering by default
Entire networks are peered when only specific services need to communicate.
Implementation
Implementation guidance
Inventory the flows
Map which components initiate connections to which others, over which ports and protocols, and why.
Control north-south first
Restrict traffic between external systems and the workload before refining internal (east-west) flows.
Use identity-based rules
Write rules that reference security groups or equivalent identities, so they stay correct as resources change.
Prefer point-to-point
Where only specific services need to talk across networks, use private point-to-point connectivity instead of peering whole networks.
Restrict egress and DNS
Limit outbound destinations and filter DNS lookups to the domains workloads actually need.
Manage rules centrally
Use central firewall management to apply and audit rules consistently across accounts.
Measure
Measurements
- Percentage of permitted flows with a recorded purpose.
- Number of any-to-any or broad address-range rules.
- Percentage of workloads with restricted egress.
- Number of network peerings that could be replaced by point-to-point connectivity.
Related
Outcomes and practices
Business outcomes
Practices