SEC05-BP04SecuritySEC54 of 4 practices publishedReference content

Automate network protection

Framework question: How do you protect your network resources?

Risk if not established
Medium
Framework verified
23 Oct 2026

AWS Well-Architected Framework — SEC05-BP04 Automate network protection

Executive summary

Why this practice matters

Deploy network protections the same way as application code: defined in version-controlled templates, tested before release and rolled out through a pipeline. This gives a record of every change, speeds up response to new threats and makes drift from the intended configuration detectable. Split ownership sensibly between a central network function and workload teams.

Business impact

  • Gives an auditable history of every network protection change.
  • Reduces the time to roll out new protections when threats change.
  • Catches configuration drift before it becomes an exposure.
  • Cuts human error from manual firewall and rule changes.

Assign

Accountable and responsible roles

Responsibilities are held separately from roles, so accountability type and typical roles are stated explicitly.

ResponsibilityAccountability type

Provide network protection as code

Build and run the pipeline and templates for network foundations and shared protections.

Typical roles: Cloud / Platform Engineer, Network Engineer, Cloud Platform Engineer, Network Engineer

responsible

Manage workload rules through the pipeline

Workload teams manage their own flow rules through the pipeline, within central guardrails.

Typical roles: DevOps Engineer, DevOps Engineer

responsible

Set pre-deployment policy checks

Define the policy checks network changes must pass before deployment.

Typical roles: Security Engineer, Security Engineer

consulted

Assessment

Assessment and evidence state

States describe how far the practice has moved from intent to something continuously validated.

  1. 0

    Not Assessed

    Network protection automation has not been reviewed.

    Indicators

    • No record of how network protections are deployed.
  2. 1

    Not Implemented

    Network protections are changed by hand.

    Indicators

    • No version history of rule changes.
    • Changes made directly in the console.
  3. 2

    Partially Implemented

    Some protections are templated, but changes bypass the pipeline and drift isn't detected.

    Indicators

    • Manual console changes still common.
    • No pre-deployment checks.
  4. 3

    Implemented

    Network protections are defined as code, tested and deployed through a pipeline.

    Indicators

    • Changes deploy through CI/CD.
    • Managed rules update automatically.
  5. 4

    Continuously Validated

    Drift from the defined configuration is detected and corrected automatically or promptly.

    Indicators

    • Drift alerts are acted on.
    • Pipeline enforces policy checks.

Assessment dimensions

  • Network protection as code

    Practice-specific

    Console · Partial · Fully templated

  • Pre-deployment testing

    Practice-specific

    None · Manual · Automated policy checks

  • Drift detection

    Practice-specific

    None · Periodic · Continuous

  • Ownership model

    Practice-specific

    Unclear · All-central or all-team · Shared and defined

Caution

Infrastructure as code that people bypass in the console isn't automation. Look for evidence that changes go through the pipeline and that drift is detected.

Standard

What you should be able to demonstrate

Statements a reviewer should be able to confirm from evidence, not from intent.

  • Network resources and protections are defined in version-controlled templates.
  • Changes are tested with policy and static checks before deployment.
  • Changes reach production through a pipeline, with a separate test environment.
  • Ownership is shared deliberately between a central network function and workload teams.
  • Managed rule sets update automatically from threat intelligence.
  • Drift from the defined configuration is detected and corrected.

Trade-offs to hold in view

  • A pipeline adds process to urgent changes; define a controlled emergency path rather than allowing console edits.
  • Central templates give consistency but can slow workload teams if every change needs the central team.
  • Automated managed-rule updates reduce effort but can occasionally block legitimate traffic, so monitor after updates.

Assess

Questions to ask

Each question exposes the difference between an intention and an operating practice.

  • discovery

    Which network protections are still changed directly in the console?

    Finds what sits outside the pipeline.

    Usually asked by: Network Engineer, DevOps Engineer

  • challenge

    Who owns which part of the network stack, and where do central and workload responsibilities meet?

    Both all-central and all-team models fail.

    Usually asked by: Cloud / Platform Engineer, Security Architect

  • evidence

    Show the history of the last network protection change, from commit to deployment.

    Proves changes are versioned and traceable.

    Usually asked by: DevOps Engineer

  • executive

    How quickly could we roll out a new network protection across all workloads if a threat emerged today?

    Frames automation as response speed.

    Usually asked by: Security Leader, Technology Executive

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.

EVD-SEC-007coreReusable

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 as primary evidence that network protections are defined in code and deployed consistently.

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.

EVD-SEC-009supportingReusable

Network Inspection & Protection Rule Set

A record of where network traffic is inspected, which rules and managed rule sets apply at each inspection point, how the rules are maintained, and how inspection findings feed detection and response.

Use the rule maintenance section of the Network Inspection & Protection Rule Set to show managed rules update automatically.

Minimum expected content

  • Inspection points: where traffic is inspected (public endpoints, between layers, egress) and the inspection model (inline, centralised, out-of-band)
  • Inspection technology at each point (e.g. web application firewall, network firewall, intrusion prevention)
  • Rule sets applied at each point: custom rules and managed/threat-intelligence rule groups
  • Handling of encrypted traffic (where TLS is inspected or not, and why)
  • Baseline of normal traffic used to spot anomalies
  • Rule ownership, change process and update cadence
  • How alerts and blocked traffic reach detection and response
  • Known gaps or uninspected paths, with owner and rationale

Anti-patterns

  • Only port and protocol rules; no content or behaviour inspection
  • Inspection only at the internet edge
  • Rules written for one past threat and never revisited
  • Alerts go to a mailbox nobody reads
  • No baseline, so anomalies can't be recognised
  • Encrypted traffic is assumed safe without a decision recorded

Review: Review rule sets continuously through managed updates; review custom rules, coverage and gaps after material threat, topology or workload changes and at least periodically.

EVD-SEC-008supportingReusable

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 Network Segmentation & Traffic Flow Model to show the templates match the intended design.

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.

Diagnosis

Common evidence gaps

  • Manual console changes

    Firewall rules and security groups are edited directly, with no history or review.

  • Fully decentralised

    Every workload team builds its own network stack and protections, inconsistently.

  • Fully centralised

    A central team owns every network detail and becomes a bottleneck.

  • Undetected drift

    Nobody notices when deployed configuration diverges from the templates.

Implementation

Implementation guidance

Define protections as code

Define networks, security groups, firewall policies and DNS filtering in version-controlled templates.

Test before deploying

Run policy and static checks on network changes before they deploy.

Separate test and production

Use separate environments to test network changes before production.

Share ownership deliberately

Let a central function own shared network foundations while workload teams manage their own flow rules within guardrails.

Use self-updating rules

Enable managed rule groups so threat signatures and reputation lists update without manual work.

Detect drift

Detect when deployed configuration diverges from templates, and correct it.

Measure

Measurements

  • Percentage of network protection resources defined in code.
  • Percentage of network changes deployed through the pipeline.
  • Number of drift events detected and time to correct.
  • Lead time from approved rule change to production.

Related

Outcomes and practices

Business outcomes

    Practices