Most security reviews stall on the same question, "can you show me how this actually connects?", because the only network diagram is three years old, drawn for a migration project, and silent on cloud, remote access and service-to-service traffic. This template gives network architects, security architects and assessors a standard pack of diagrams and supporting tables that a reviewer can test against reality. It covers the layers each diagram must show, how to mark zones and trust boundaries, how to record data flows including those made by service accounts, API keys and workloads, how to document remote and third-party access, and how to keep the pack current through a change log and a fixed review cadence. It is written to support PCI DSS network and data-flow diagram expectations, NIST SP 800-53 architecture controls and NIST CSF 2.0 ID.AM-03, but it works for any internal or external review.
How to use this template
- Replace text in square brackets, such as [Organisation], [System Name], [Network Owner] and [12 months], with your own names and values. Delete guidance notes in italics once the section is complete.
- "Must" is mandatory for any system in scope of this document. "Should" is recommended practice where a documented exception may be justified.
- Produce one documentation pack per system or environment in scope (for example the cardholder data environment, a production cloud account set, or an operational technology site). Do not try to show the whole enterprise on one page.
- Keep diagrams and tables in the same version-controlled location, ideally generated or checked from configuration (firewall rule bases, cloud VPC and security group exports, flow logs), so that the pack can be compared with what is deployed.
- Pair this pack with the Network Security Policy Template, which sets the rules the diagrams evidence. Segmentation design itself is covered in the Network Segmentation Guide.
- Classify the finished pack as [Confidential]. A complete, accurate network diagram is valuable to an attacker, so restrict access to named roles and share redacted versions with third parties.
1. Purpose and scope
1.1 Purpose
- This document records the network architecture, trust boundaries, data flows and external connections of [System Name] so that [Organisation] and its assessors can confirm that security controls are placed where risk requires them.
- It is the authoritative reference for security architecture reviews, change risk assessments, penetration test scoping, segmentation testing, incident response and compliance assessments, including [PCI DSS / ISO/IEC 27001 / SOC 2 / other].
1.2 Scope
- In scope: [list environments, sites, cloud accounts, subscriptions or projects, VPCs or VNets, data centres, branch networks and SaaS tenants].
- Out of scope: [list], with the reason and the control that separates out-of-scope networks from in-scope ones (cross-reference section 3).
- For PCI DSS, the scope must match the documented cardholder data environment (CDE) and every system that is connected to it or could affect its security. See the PCI DSS Scoping and Network Segmentation Guide.
1.3 Document control
| Field | Value |
|---|---|
| Document owner | [Network Owner, role not person] |
| Security reviewer | [Security Architect] |
| Version and date | [1.0, YYYY-MM-DD] |
| Last full review | [YYYY-MM-DD] |
| Next scheduled review | [YYYY-MM-DD, no more than [12 months] after the last] |
| Source of truth for diagrams | [Repository path, diagram tool, generation script] |
| Classification | [Confidential] |
2. Network overview diagram
Guidance: the overview is the first page a reviewer reads. It must fit on one screen and show every connection into and out of the in-scope environment. Detail goes in the layer diagrams below.
2.1 Required diagram layers
The pack must contain the following layers. Each may be a separate diagram or a filterable layer in one model.
| Layer | Must show | Typical source |
|---|---|---|
| L1 Context | The system, its users, external parties, internet, partner networks, SaaS dependencies and every inbound and outbound connection | Architecture records, contracts, DNS and egress logs |
| L2 Logical network | Zones, subnets and CIDR ranges, VLANs, VPCs or VNets, peering, transit gateways, VPN and private links, routing between zones | IPAM, cloud network exports, routing tables |
| L3 Security controls | Firewalls, cloud security groups and network ACLs, WAFs, proxies, load balancers, ZTNA gateways, IDS/IPS sensors, with the rule base or policy name each enforces | Firewall management, infrastructure as code |
| L4 Data flows | Each flow of sensitive data between components, with protocol, port, direction, encryption and the identity used (section 4) | Flow logs, application design, interviews |
| L5 Identity and management plane | Directories and identity providers, privileged access paths, jump hosts, management networks, CI/CD runners, secrets stores, monitoring and logging collectors | IAM exports, PAM configuration, pipeline definitions |
| L6 Physical and wireless | Sites, data centre halls, wireless networks and their connection to wired zones, out-of-band management | Site surveys, wireless controller exports |
2.2 Diagram conventions
- Every diagram must carry a title, version, date, owner and legend.
- Use one consistent symbol set and colour scheme across the pack. Trust boundaries must be drawn as a distinct line style that is never reused for anything else.
- Label every connection with an identifier that resolves to a row in the data flow register (section 4) or the external connection register (section 5).
- Show the whole path of a connection, including intermediate controls. A line drawn directly from the internet to a database hides the controls a reviewer needs to test.
- Diagrams must reflect the current state. Planned changes may be shown only on a separate, clearly marked "target state" diagram.
2.3 PCI DSS diagram expectations
PCI DSS v4.0.1 Requirement 1 expects an entity to keep an accurate network diagram showing all connections between the CDE and other networks, including wireless, and an accurate data-flow diagram showing all account data flows across systems and networks, both updated when the environment changes. PCI SSC defines a data-flow diagram as a diagram showing how and where data flows through an entity's applications, systems and networks, and to or from external parties. Requirement-level detail is in the PCI DSS Requirement 1 Guide. For a PCI pack, the L1, L2, L3 and L4 layers above must together show:
- CDE boundary: every system component that stores, processes or transmits account data, enclosed by a single, labelled boundary.
- Connected and security-impacting systems: systems outside the CDE that connect to it or can affect its security, such as directory services, patching, logging and jump hosts.
- Segmentation controls: the specific firewall, security group or other control that separates out-of-scope networks, so that segmentation testing can target it. See the Network Segmentation Testing Guide.
- Account data flows: capture, authorisation, settlement, storage, backup, tokenisation and any flow to service providers, with where the data is encrypted or truncated.
- Wireless: every wireless network and whether it connects to the CDE, even if the answer is "no, separated by [control]".
3. Zones and trust boundaries
3.1 Zone register
Every zone shown on the L2 diagram must have a row in the zone register.
| Zone ID | Name and purpose | Trust level | Address ranges or accounts | Data classification allowed | Enforcement point | Owner |
|---|---|---|---|---|---|---|
| [Z01] | [Internet edge, public load balancers] | [Untrusted] | [CIDR, account ID] | [Public] | [Edge firewall, WAF policy name] | [Role] |
| [Z02] | [Application tier] | [Restricted] | [CIDR] | [Confidential] | [Security group set name] | [Role] |
| [Z03] | [CDE data tier] | [Highly restricted] | [CIDR] | [Cardholder data] | [Internal firewall rule base] | [Role] |
| [Z04] | [Management and privileged access] | [Highly restricted] | [CIDR] | [Credentials, configuration] | [PAM gateway, jump host policy] | [Role] |
3.2 Trust boundary rules
- A trust boundary must be drawn wherever the level of trust, data classification, administrative control or ownership changes, including between cloud accounts, between tenants and between [Organisation] and a third party.
- Every boundary crossing must pass through a named enforcement point recorded in the zone register. A crossing with no enforcement point is a finding.
- Default posture at each boundary is deny. Each permitted crossing must trace to a data flow register entry and, for firewalls, to an approved rule request. See the Firewall Rule Request Template.
- Shared infrastructure that spans zones (hypervisors, container hosts, shared storage, management networks, identity providers) must be shown as crossing the boundaries it spans, with the control that prevents it becoming a path between zones.
- Identity-based boundaries count. Where access is enforced by workload identity, conditional access or a service mesh rather than an IP rule, draw the boundary and record the policy that enforces it. See Identity Segmentation vs Network Segmentation.
4. Data flows
4.1 Data flow register
Every line on the L4 diagram must have a row. Flows initiated by non-human identities (service accounts, workload identities, API keys, CI/CD pipelines, scheduled jobs and AI agents) must be recorded with the same detail as user flows. They are often the majority of traffic across a boundary and the least documented.
| Flow ID | Source (zone, component) | Destination (zone, component) | Protocol and port | Data and classification | Encryption in transit | Initiating identity and type | Credential type and store | Business justification |
|---|---|---|---|---|---|---|---|---|
| [F001] | [Z02 payment API] | [Z03 card vault] | [TCP 5432] | [PAN, Confidential] | [TLS 1.2+] | [svc-payments, service account] | [Short-lived database credential, secrets manager] | [Authorisation lookups] |
| [F002] | [CI/CD runner] | [Z02 deployment target] | [TCP 443] | [Build artefacts] | [TLS] | [Pipeline workload identity, federated OIDC] | [No stored secret] | [Deployments] |
| [F003] | [Z04 log collector] | [SaaS SIEM] | [TCP 443] | [Security logs] | [TLS] | [Ingestion API key] | [API key, vault path] | [Monitoring] |
4.2 Recording non-human identity flows
- For each NHI-initiated flow, record the identity name, its owner, the credential type (static key, certificate, federated token, managed identity), where the credential is stored and its rotation period.
- Mark flows that use a long-lived static secret across a trust boundary. These are priority candidates for replacement with federated or short-lived credentials. See the PCI DSS Requirements for Service Accounts and NHIs Guide (8.6) for card environments.
- Record AI agent and automation flows to external APIs and model providers, including the data the agent may send. See the Zero Trust for AI Agents Guide.
- Cross-check the register against flow logs at each review: any observed flow with no register entry is either undocumented or unauthorised, and both are findings.
Broader method for discovering and mapping flows is covered in Data flow mapping for security and privacy.
5. Remote and third-party access
5.1 External connection register
| Connection ID | Party | Type | Entry point and zone | Authentication | Reach (what it can access) | Contract or agreement reference | Review date |
|---|---|---|---|---|---|---|---|
| [X01] | [Staff remote access] | [ZTNA or VPN] | [Gateway, Z02] | [Phishing-resistant MFA, device posture] | [Named applications only] | [Policy reference] | [Date] |
| [X02] | [Managed service provider] | [Privileged remote support] | [PAM gateway, Z04] | [Named accounts, MFA, session recording] | [Listed hosts] | [Contract ID] | [Date] |
| [X03] | [Payment processor] | [Site-to-site or API] | [Edge, Z01 to Z03 via F00x] | [Mutual TLS, IP allow list] | [Authorisation endpoint] | [Agreement ID] | [Date] |
| [X04] | [SaaS integration] | [OAuth or API key] | [Outbound from Z02] | [Client credentials] | [Scopes granted] | [Vendor record] | [Date] |
5.2 Rules for external connections
- Every external connection must appear on the L1 context diagram and terminate at a documented entry point. No third party may connect directly into the [CDE / restricted zones] without passing through [PAM gateway / ZTNA / named control].
- Third-party access must use named, individually attributable accounts. Shared vendor accounts are not permitted except by documented exception approved by [CISO].
- Each connection must reference the agreement that defines security responsibilities. See the Shared Responsibility Matrix Template.
- Connections with no activity for [90 days] must be reviewed for removal.
6. Change log
- Every change to the network, a security control, a data flow or an external connection in scope must update the affected diagram and register before, or as part of, closing the change record.
- The change log must record each update in the table below and be kept for at least [three years] or the retention period required by applicable standards.
| Date | Version | Change record | Diagrams and registers updated | Summary | Updated by | Reviewed by |
|---|---|---|---|---|---|---|
| [YYYY-MM-DD] | [1.1] | [CHG-0000] | [L2, L3, F004] | [New peering to analytics VPC] | [Role] | [Security Architect] |
Implementation guidance
Rolling the template out
- Start with the highest-risk environment: the CDE, the production cloud estate or the system with the next external audit. Do not attempt every network at once.
- Collect from configuration first: export firewall rule bases, cloud network and security group configuration, routing tables and 30 days of flow logs before interviewing anyone. Interviews describe intent, exports describe reality.
- Draft the zone register and L2 diagram, then reconcile every allowed rule at each boundary to a flow. Unmatched rules go to the Firewall Rule Review Checklist process.
- Build the data flow register, including NHI flows found in flow logs and IAM logs, and confirm each with its application owner.
- Test the pack: pick five flows and five boundaries at random and verify them against live configuration. A reviewer, not the author, should do this.
- Wire it into change management so that the change log is updated with every relevant change, then schedule reviews.
Review cadence
| Trigger | Action | Owner |
|---|---|---|
| Any significant network, flow or connection change | Update affected diagrams and registers within the change | Change implementer, verified by [Network Owner] |
| [Quarterly] | Reconcile data flow register with flow logs and external connection register with access logs | [Security Operations] |
| [Every 6 months] for PCI environments | Align with firewall and security group rule review | [Network Owner] |
| [Annually] at minimum | Full review and re-approval of the whole pack, including scope confirmation | [Network Owner, Security Architect] |
| Before each penetration test, segmentation test or audit | Confirm the pack is current and share a redacted copy | [Security Architect] |
| After a security incident | Correct anything the investigation found to be wrong or missing | [Incident Manager] |
Set cadences to the stricter of your own risk appetite and any standard that applies to the environment.
Measuring whether the documentation is accurate
- Flow coverage: percentage of observed boundary-crossing flows in flow logs that map to a register entry. Target [95%] or above.
- Rule traceability: percentage of allow rules at trust boundaries that trace to a flow ID.
- NHI attribution: percentage of NHI-initiated flows with a named owner and recorded credential type.
- Staleness: days since last full review, and number of changes closed without a documentation update.
- Spot-check accuracy: discrepancies found per sampled flow or boundary at each review.
Framework mapping
| Framework | Reference | What this pack evidences |
|---|---|---|
| NIST CSF 2.0 | ID.AM-03 | Representations of authorised network communication and internal and external data flows are maintained |
| NIST CSF 2.0 | ID.AM-01, ID.AM-02 | Hardware, software, services and systems inventories feed the diagrams |
| NIST SP 800-53 Rev 5 | PL-8 Security and Privacy Architectures | Documented architecture and placement of controls |
| NIST SP 800-53 Rev 5 | CM-2 Baseline Configuration, CM-8 System Component Inventory | Diagrams reflect a maintained baseline and inventory |
| NIST SP 800-53 Rev 5 | CA-3 Information Exchange, CA-9 Internal System Connections | External connection register and internal NHI flows |
| NIST SP 800-53 Rev 5 | AC-4 Information Flow Enforcement, SC-7 Boundary Protection, AC-17 Remote Access | Trust boundaries, enforcement points and remote access |
| PCI DSS v4.0.1 | Requirement 1 network and data-flow diagrams | Sections 2.3, 3 and 4 |
Common failure patterns
- Diagram drawn once for an audit: accurate on the day, wrong within a quarter, because nothing links it to change management.
- Cloud left out: on-premises networks are drawn in detail while VPC peering, private endpoints and SaaS connections are a single cloud icon.
- Only human access shown: service-to-service, pipeline and agent traffic is missing, so the most privileged paths are never reviewed.
- Boundaries without enforcement points: zones are coloured on the diagram but nobody can name the rule that separates them.
- Over-sharing: the full pack is emailed to every bidder or auditor, creating an attacker's map outside [Organisation]'s control.
Related NHI Mgmt Group resources: Network Segmentation Guide, PCI DSS Scoping and Network Segmentation Guide, Network Threat Modelling Guide, Network Security Policy Template.