Infrastructure and network security

    Network Security Policy: Firewalls, Monitoring and Hardening for Cloud-First Companies

    By Throughline11 min readLast updated
    SOC 2ISO 27001
    In this guide

    Quick answer: A network security policy sets how your company protects its networks and infrastructure from unauthorized access and attacks. It should cover firewalls and network boundaries (default-deny rules, restricted admin access, alerts on changes), web application firewalls, network segmentation, encryption in transit, logging and monitoring for suspicious activity, threat detection, secure configuration baselines, and regular reviews of firewall rules and infrastructure settings.

    At a glance
    Who typically owns itCTO, with the security manager or infrastructure lead enforcing it
    Who should read and acknowledge itInfrastructure, platform and security engineers
    Typical review cyclePolicy annually; firewall rules and configuration baselines at least annually, ideally monitored continuously
    Relevant frameworksSOC 2 (CC6.6, CC6.7, CC7.1, CC7.2), ISO 27001 (Annex A 8.9, 8.15, 8.16, 8.20 to 8.22)
    Works withEncryption, Vulnerability Management, Change Management, Incident Management and Access Control policies

    What is a network security policy?

    A network security policy defines the controls that protect information as it moves across your networks and systems. It covers the boundary between your systems and the internet, how traffic is filtered, how infrastructure is configured, and how you watch for suspicious activity.

    For most modern companies, "the network" isn't a server room. It's cloud infrastructure: virtual private clouds, security groups, load balancers, managed databases and serverless functions, plus the SaaS tools and devices your team uses. A good network security policy reflects that reality.

    Why does your company need a network security policy?

    Because exposed services, misconfigured cloud resources and undetected intrusions are common causes of breaches. A clear policy sets the baseline every engineer works to.

    It also:

    • Meets audit requirements. SOC 2 CC6.6 covers protection against threats from outside the system boundary, CC7.1 covers detecting configuration changes and vulnerabilities, and CC7.2 covers monitoring for anomalies. ISO 27001 Annex A 8.20 to 8.22 cover network security, network services and segregation of networks, and 8.15 and 8.16 cover logging and monitoring.
    • Gives engineers clear defaults, such as default-deny firewall rules and required logging, so security isn't reinvented for every new service.
    • Supports incident response, because logs and alerts are what tell you something happened and what was affected.

    When does a network security policy matter most?

    The weight of this policy depends on how much network infrastructure you actually run yourself.

    It carries more weight when:

    • You run virtual machines, containers or Kubernetes, and manage the networking around them.
    • You have offices with local networks, or connect to customers' networks.
    • You expose many services, APIs or administrative interfaces to the internet.
    • You handle regulated or highly sensitive data in your own infrastructure.

    It can be lighter when:

    • You run mostly on managed or serverless services, where the provider handles servers and patching.
    • Production is reached only through a small number of public endpoints behind a CDN or load balancer.
    • You're fully remote, with no office networks to manage.

    In the lighter case, a short policy covering cloud network boundaries, logging, alerting and configuration monitoring is usually enough.

    What should a network security policy include?

    SectionWhat it covers
    Purpose and scopeThe networks, infrastructure and connections covered: cloud, office, remote access and public networks
    Roles and responsibilitiesPolicy owner, who monitors and enforces it, and engineers' responsibilities
    Network boundaries and firewallsFirewalls at external connection points, default-deny rules allowing only authorized traffic, restricted access to firewall configuration, alerts on firewall changes and periodic rule reviews
    Web application firewallProtection for public web applications and APIs
    SegmentationSeparating production from development and testing, and restricting access to sensitive systems
    EncryptionEncryption in transit for all network connections, and at rest for production data stores
    LoggingEvents logged to allow detection and investigation of suspicious activity
    Monitoring and threat detectionTools that detect and alert on suspicious traffic and threats, and who responds
    Secure configurationHardening baselines for critical infrastructure and periodic configuration reviews
    Managed and serverless servicesWhich security responsibilities sit with your cloud provider
    Remote accessHow engineers access production and internal systems
    Compliance monitoringHow infrastructure compliance is checked continuously
    Compliance and exemptionsConsequences of breaches and who approves exceptions

    What should you adapt when starting from a network security template?

    1. Translate firewalls into cloud terms. Templates often talk about "network firewalls at external connectivity points." In a cloud environment, that means security groups, network ACLs, private subnets, load balancers and, where you use it, a managed network firewall. Describe your actual architecture so engineers and auditors recognize it.

    2. Only claim what's true about serverless. Some templates say you use a serverless architecture where the cloud provider handles server hardening and patching. That's only true if you actually do. If you run virtual machines or containers, you're responsible for hardening and patching them, and the policy needs to say how.

    3. Name your monitoring and detection tools. Replace template examples with what you actually run, such as Datadog for monitoring and AWS GuardDuty or Microsoft Defender for Cloud for threat detection, and say who receives alerts and how quickly they respond.

    4. Define your hardening baseline. "Security hardening requirements are defined" isn't enough. Reference a recognized hardening benchmark or your cloud provider's security best practices, or your own baseline enforced through infrastructure as code.

    5. Decide whether reviews are periodic or continuous. Templates often require an annual firewall and configuration review. If you have continuous cloud posture monitoring, say so, and keep a lightweight annual review on top as evidence that someone looked at the whole picture.

    6. Set log retention. State how long logs are kept. Twelve months is common, with at least some period immediately searchable. Make sure it matches your customer commitments and your data classification policy.

    7. Add office networks only if you have offices. If you have offices, cover Wi-Fi encryption, guest network separation and physical network equipment. If you're fully remote, focus on cloud infrastructure and secure remote access.

    What context does AI need to draft a good network security policy?

    Network security templates often describe firewalls and data centers you don't have. Give your AI assistant a clear picture of your architecture:

    Context to provideWhy it matters
    Cloud provider and architecture: managed services, serverless, VMs or containersDecides which responsibilities are yours
    How traffic reaches production: CDN, WAF, load balancersFills the boundary and WAF sections
    How production and non-production are separatedFills segmentation
    How infrastructure changes are made, such as infrastructure as codeShapes change control for network rules
    Logging, monitoring and threat detection tools, and who responds to alertsFills monitoring and response
    Log retention periodSets a retention commitment you meet
    Configuration monitoring or hardening baselineDescribes how secure configuration is checked
    How engineers access productionFills remote access
    Whether you have offices or office networksDecides whether to cover Wi-Fi and local networks

    Example prompt

    Example AI prompt
    Draft a network security policy for Acme, a SaaS company preparing for SOC 2.
    Production runs on AWS ECS Fargate and RDS in private subnets, with separate AWS accounts for prod and staging.
    Traffic comes through Cloudflare (WAF and DDoS) to an ALB. Infrastructure is managed in Terraform with
    pull request review. Logging: CloudTrail and VPC Flow Logs to Datadog, retained 12 months.
    GuardDuty alerts page the on-call engineer. Engineers reach production via SSM Session Manager.
    Fully remote, no offices. Describe only what we run.
    

    What's nice to have, and what can you leave out?

    Worth adding:

    • Infrastructure as code as the required way to change networks and firewalls, so every change is reviewed and recorded.
    • Zero-trust access for internal tools and production, using identity-aware proxies or session managers instead of open SSH ports or a flat VPN.
    • DDoS protection through your CDN or cloud provider.
    • Egress filtering to limit where production systems can send data.
    • DNS security and domain protections such as DNSSEC, SPF, DKIM and DMARC for email domains.
    • Time synchronization so logs from different systems line up during investigations.

    Usually safe to leave out:

    • Hardware firewall and switch rules if you have no physical network.
    • Detailed firewall rule sets, which belong in configuration code.
    • Wi-Fi rules for remote-only teams beyond what's in the acceptable use policy.

    Do employees need to sign the network security policy?

    Optional for most staff. This policy governs how infrastructure and security engineers design, configure and monitor systems. Everyday user rules, such as using encrypted Wi-Fi and being careful on public networks, belong in the acceptable use policy. Engineers who can change infrastructure should acknowledge the network security policy, because they directly operate its controls.

    How does a network security policy turn into day-to-day operations?

    Policy requirementHow it runs in practiceTypical systemsEvidence an auditor may ask for
    Default-deny boundariesSecurity groups and network ACLs allow only required ports and sources; databases in private subnetsAWS VPC, Google Cloud VPC, Azure VNets, AWS Network FirewallSecurity group rules, network diagram
    Web application firewallWAF in front of public applications and APIs with managed rule setsCloudflare, AWS WAF, Akamai, FastlyWAF configuration
    Restrict and alert on firewall changesChanges only through infrastructure as code with review; alerts on console changesTerraform, CloudFormation, Pulumi; AWS Config, CloudTrail alertsPull requests for changes, alert rules
    SegmentationSeparate accounts or projects for production and non-productionAWS Organizations, Google Cloud projects, Azure subscriptionsAccount structure
    Encryption in transitTLS enforced on all endpointsLoad balancers, CDNTLS configuration
    LoggingCloud audit logs, network flow logs and application logs centralized and retainedAWS CloudTrail, VPC Flow Logs, Datadog, Splunk, ElasticLog configuration and retention
    Threat detection and alertingManaged threat detection with alerts routed to on-callAWS GuardDuty, Microsoft Defender for Cloud, Google Security Command Center; PagerDuty, OpsgenieAlert configuration, sample alerts and responses
    Secure configurationBaselines enforced in code and checked continuouslyAWS Security Hub, cloud security posture tools, ProwlerPosture findings and remediation
    Configuration reviewsAt least annual review of firewall rules and infrastructure settingsReview tickets, posture reportsReview records
    Secure remote accessSession managers or identity-aware access instead of open SSH or RDPAWS Systems Manager Session Manager, Tailscale, Cloudflare Access, TeleportAccess configuration

    What systems and tools support network security?

    • Cloud-native network controls: VPCs, security groups, network ACLs and private networking.
    • A WAF and CDN for public applications.
    • Infrastructure as code so network changes are reviewed, versioned and repeatable.
    • Logging and monitoring platforms to centralize logs and alert on issues.
    • Threat detection services from your cloud provider.
    • Cloud security posture management to continuously check configurations against baselines.
    • Secure remote access tools to reach production without exposing it to the internet.

    What are the common challenges with network security?

    Console changes bypass review. Engineers make quick fixes in the cloud console that never go through code review. Restrict console write access in production and alert on changes made outside infrastructure as code.

    Alert fatigue. Threat detection produces many low-value alerts, so real ones get missed. Tune rules, route high-severity alerts to on-call, and review the rest on a schedule.

    Overly permissive rules. "Temporary" rules opening ports to the internet stay forever. Flag broad rules automatically and review them regularly.

    Logs without anyone watching. Logs are collected but never reviewed. Decide which events generate alerts, who responds, and how quickly.

    The policy describes a traditional network. A template written for offices and data centers doesn't match a cloud-native company. Rewrite it around your actual architecture.

    What do auditors typically look at?

    Auditors look at network controls in the context of your architecture and the services you rely on. They'll often look at:

    • How inbound access to production is restricted, and how changes to those rules are controlled.
    • Protection for public-facing applications, where your policy commits to it.
    • Logging and how long logs are kept.
    • How suspicious activity is detected and whether alerts are followed up.
    • How secure configuration is defined and checked, through reviews or continuous monitoring.
    • Separation between production and other environments.

    If you run on managed or serverless services, auditors typically rely on your cloud provider's assurance reports for the underlying infrastructure and focus on how you've configured your part.

    How often should you review network security?

    Review the policy annually. Monitor cloud configuration continuously if you can, and review firewall rules and infrastructure baselines at least annually. Review after major architecture changes, new regions or accounts, and security incidents.

    Frequently asked questions

    What should a network security policy include?

    Firewalls and network boundaries with default-deny rules, a web application firewall for public apps, segmentation between environments, encryption in transit, logging, monitoring and threat detection, secure configuration baselines, remote access rules, and regular reviews.

    Do cloud companies need a network security policy?

    Yes. The cloud provider secures the underlying infrastructure, but you're responsible for how you configure your networks, access, logging and monitoring. This is often called the shared responsibility model.

    How often should firewall rules be reviewed?

    At least annually, and many companies review more often or monitor continuously with automated tools. Review rules whenever architecture changes.

    What is default deny?

    A default-deny rule blocks all traffic unless it's explicitly allowed. It ensures only the connections you've intentionally permitted can reach your systems.

    Is a WAF required for SOC 2?

    SOC 2 doesn't require specific tools, but CC6.6 requires protection against external threats. A WAF is a common and widely accepted way to protect public web applications.

    How long should logs be kept?

    Twelve months is a common baseline, with recent logs easily searchable. Some regulations and customer contracts require longer. State the period in your policy and configure your tools to match.

    What is a hardening baseline?

    A defined set of secure configuration settings for a system, such as disabling unused services and enforcing secure defaults. Cloud providers and security organizations publish benchmark baselines for common platforms, operating systems and software.

    How Throughline helps

    Throughline is an independent audit firm for SOC 2, ISO 27001 and ISO 42001, and also covers SOC 1, HIPAA, GDPR and Australia's Consumer Data Right. We look at your network security controls the way a risk-based auditor should: does it fit your environment, does it match how you actually operate, and is there evidence to support it? Our SOC 2 engagements include readiness checks with a senior practitioner, so you know where your policies and controls stand before the audit begins.

    Give AI the context to draft these well

    Start with the free, open-source Compliance Brain to map your company context and guardrails. Use the example prompt in this guide, validate the result against real operations, and keep an accountable human owner.

    Try Compliance Brain