Cybersecurity

Chapter 7
Network and Communication Security

Bachelors Program in Computer Applications
Cybersecurity   •   Bachelor

Network and Communication Security

Introduction

Modern organizations depend on networks to connect users, applications, cloud services, industrial systems, and business partners. This connectivity creates value, but it also creates pathways through which attackers can intercept communications, impersonate users, disrupt services, spread malware, or move from one compromised system to another. Network and communication security is therefore concerned not only with protecting individual devices, but also with designing trustworthy communication environments.

Network security applies the principles of confidentiality, integrity, availability, authenticity, accountability, and non-repudiation to data in transit and to the infrastructure that transports it. It combines architecture, protocols, access controls, monitoring, cryptography, operational procedures, and governance. A technically strong control can still fail if it is incorrectly configured, poorly monitored, or inconsistent with business requirements.

This chapter examines secure network architecture, segmentation, firewalls, virtual private networks, proxies, intrusion detection and prevention, DNS security, wireless controls, secure remote access, traffic analysis, common network attacks, and software-defined networking risks.

Learning Objectives

After completing this chapter, a student should be able to:

  1. Explain the security properties required for network communication.
  2. Design a segmented network using zones, trust boundaries, and least privilege.
  3. Compare firewalls, proxies, VPNs, IDS, IPS, and related controls.
  4. Explain the security roles of TLS, IPsec, DNS security, and wireless standards.
  5. Analyze common network attacks and select appropriate mitigations.
  6. Describe secure remote-access architectures and their operational risks.
  7. Evaluate software-defined networking and zero-trust approaches.
  8. Apply network-security principles to an organizational case.

1. Security Properties of Network Communication

A communication system should protect more than the secrecy of a message. Its principal security properties are:

  • Confidentiality: preventing unauthorized disclosure.
  • Integrity: detecting or preventing unauthorized alteration.
  • Availability: ensuring that authorized users can obtain services when needed.
  • Authentication: verifying the identity of a communicating party or device.
  • Authorization: determining what an authenticated entity may do.
  • Accountability: recording actions sufficiently to support investigation.
  • Non-repudiation: providing evidence that makes it difficult for a sender to falsely deny an action. Digital signatures can support this property, although no technical mechanism eliminates all legal or operational disputes.

Threats may target different layers. A physical attacker may attach a rogue device to a switch. A data-link attacker may perform ARP spoofing. A network-layer attacker may forge packets or scan ports. An application-layer attacker may exploit an insecure API. Effective security uses controls at several layers rather than assuming that one device, such as a firewall, can solve every problem.

The confidentiality of data in transit is commonly supported by encryption. Integrity and authenticity are commonly supported by message authentication codes, authenticated encryption, certificates, and digital signatures. Encryption alone does not prove who sent a message; a system also needs a trustworthy key-management and authentication process.

2. Secure Network Architecture

2.1 Zones and trust boundaries

A secure architecture separates systems according to business function, sensitivity, exposure, and required communication. Typical zones include:

  • Internet or untrusted zone: external networks beyond organizational control.
  • Perimeter or edge zone: routers, gateways, and public-facing security controls.
  • DMZ: public-facing services such as web servers, reverse proxies, and mail gateways.
  • User zone: employee workstations and ordinary endpoints.
  • Server zone: internal application and database services.
  • Management zone: administrative interfaces, logging systems, and monitoring tools.
  • Guest zone: visitor devices with Internet access but no internal access.
  • Restricted or high-value zone: payment systems, identity services, research data, or operational technology.

A trust boundary is a point at which traffic is inspected, authenticated, filtered, or logged. Boundaries should be based on risk, not merely on physical location. A cloud workload, a home worker, and a mobile device may all require controls even though they are not inside a traditional corporate perimeter.

2.2 Segmentation and microsegmentation

Segmentation limits the paths available to an attacker. It can be implemented with VLANs, routed subnets, access-control lists, firewalls, security groups, host firewalls, and software-defined policies. VLAN separation alone is not a complete security control: a routing device may still permit unrestricted communication between VLANs, and a compromised administrator account may alter the configuration.

Microsegmentation applies policy to individual workloads, identities, or application groups. For example, an application server may be allowed to contact a database only on a specified service port, while an employee workstation cannot contact the database at all. The design principle is deny by default, followed by explicit authorization of necessary flows.

A practical segmentation process is:

  1. Identify assets, owners, data classifications, and dependencies.
  2. Map normal communication flows, including protocols and ports.
  3. Define zones according to exposure and impact.
  4. Establish default-deny rules between zones.
  5. Permit only documented business flows.
  6. Log decisions and review them periodically.
  7. Test whether segmentation still works after changes.

Segmentation is not a substitute for endpoint security. An attacker who compromises two systems in the same zone may still move laterally. Likewise, excessive segmentation can create operational complexity, hidden dependencies, and insecure exceptions.

2.3 Defense in depth and zero trust

Defense in depth uses multiple partially independent controls. If a malicious email bypasses filtering, endpoint protection, identity controls, segmentation, and monitoring may still prevent compromise or limit its impact.

Zero trust is a security model rather than a single product. Its central ideas are that no connection should be trusted solely because of network location, access should be explicitly authorized, and access decisions should be continuously informed by identity, device state, resource sensitivity, and context. Zero trust does not mean that every packet must be treated identically; it means that trust is not automatically inherited from a perimeter or subnet.

3. Firewalls and Proxies

A firewall enforces rules governing traffic between interfaces, networks, hosts, or applications. Common categories include:

TypeMain basis of decisionTypical strengthTypical limitation
Stateless packet filterAddresses, protocols, ports, directionFast and simpleDoes not understand connection state
Stateful firewallConnection state plus packet fieldsBlocks many invalid sessionsState tables can be exhausted
Next-generation firewallApplications, users, content, and stateRich policy and visibilityMore complexity and false positives
Host firewallLocal process, port, and directionProtects individual systemsRequires endpoint management
Web application firewallHTTP requests and application patternsMitigates some web attacksCannot replace secure application development

A stateful firewall records connection information such as source and destination addresses, ports, protocol, and TCP state. It can permit return traffic for an established connection without creating an independent broad rule. A good rule set is specific about source, destination, service, direction, identity where available, and logging requirements.

Firewall effectiveness depends on configuration and maintenance. Common weaknesses include an unrestricted outbound policy, obsolete rules, shadowed rules, overly broad address ranges, unmonitored logs, and direct administrative access from the Internet. Firewall logs should be time-synchronized and forwarded to a protected central system.

A proxy acts as an intermediary. A forward proxy represents internal clients when accessing external services; a reverse proxy represents internal servers to external clients. Proxies can enforce URL policy, conceal internal topology, terminate TLS, cache content, authenticate users, and apply application-layer inspection. They also introduce risks: certificate-management errors, privacy concerns, bottlenecks, and a single point of failure.

4. VPNs and Secure Remote Access

A virtual private network creates a protected logical connection across an untrusted network. A VPN may provide confidentiality, integrity, peer authentication, and controlled access, but these properties depend on protocol configuration and endpoint security.

IPsec operates at the network layer and commonly uses Internet Key Exchange for negotiation and authentication. It is widely used for site-to-site tunnels and can also support remote access. TLS-based VPNs commonly operate through a client or browser-oriented gateway and are useful for application or remote-user access. Modern protocols such as WireGuard use contemporary cryptographic designs and comparatively simple configurations, but operational security still depends on key management and access policy.

Important VPN design choices include:

  • Strong, managed authentication, preferably phishing-resistant multifactor authentication.
  • Current cryptographic algorithms and secure protocol versions.
  • Device posture checks, such as encryption, patch status, and endpoint protection.
  • Split tunneling decisions. Split tunneling can improve performance, but it may allow a remote device to bridge an untrusted network and the organization simultaneously.
  • Least-privilege authorization rather than broad network-level access.
  • Session timeouts, revocation, logging, and rapid response to lost devices.

A VPN encrypts traffic between defined endpoints; it does not automatically protect a compromised endpoint, malicious authorized user, or vulnerable application. A remote-access gateway should therefore be integrated with identity, endpoint detection, network segmentation, and monitoring.

5. Intrusion Detection and Prevention

An intrusion detection system (IDS) observes activity and generates alerts. An intrusion prevention system (IPS) is positioned to block or modify traffic. Both may use:

  • Signature detection: matching known patterns. It is precise for known threats but weak against novel variants.
  • Anomaly detection: identifying deviation from an established baseline. It may detect new attacks but can generate false positives.
  • Stateful protocol analysis: checking whether traffic conforms to expected protocol behavior.
  • Behavioral and threat-intelligence analysis: correlating activity with identities, assets, and known indicators.

Network sensors can be placed at Internet gateways, between zones, near critical servers, or at cloud traffic inspection points. Placement determines visibility. Encrypted traffic reduces content visibility, so organizations may use endpoint telemetry, TLS metadata, controlled decryption, or application logs. Decryption must consider privacy, legal requirements, certificate handling, and performance.

Detection quality can be discussed using four outcomes: true positives, true negatives, false positives, and false negatives. A false positive is benign activity incorrectly treated as malicious; a false negative is malicious activity that is missed. Security teams must tune rules, establish baselines, prioritize alerts by asset criticality, and connect detections to incident-response procedures.

6. DNS Security

The Domain Name System translates names into records such as IP addresses. Its distributed design and caching improve performance, but DNS is also abused for redirection, command-and-control, data exfiltration, and denial of service.

Common attacks include DNS cache poisoning, unauthorized zone transfers, rogue resolvers, domain hijacking, DNS tunneling, and typosquatting. Defensive measures include:

  • Using managed recursive resolvers with logging and threat filtering.
  • Restricting zone transfers to authorized secondary servers.
  • Applying split-horizon DNS where internal and external answers must differ.
  • Monitoring unusual query volume, random-looking subdomains, and long encoded labels.
  • Registering defensive domain variants and protecting registrar accounts.
  • Using DNSSEC to authenticate DNS data origin and integrity.

DNSSEC uses digital signatures to allow a validating resolver to verify that signed records were produced by the authoritative domain hierarchy and were not altered in transit. DNSSEC does not encrypt ordinary DNS queries and does not by itself prevent every form of domain abuse. Encrypted DNS technologies, including DNS over HTTPS and DNS over TLS, protect the connection between a client and resolver from some observers, but they can complicate enterprise monitoring and policy enforcement.

7. Wireless Network Security

Wireless communication broadcasts over radio, so an attacker may observe or inject traffic without obtaining physical access to a cable. Secure wireless design includes:

  • WPA3-Enterprise where appropriate, using strong enterprise authentication.
  • Protected management frames where supported.
  • Separate guest, employee, voice, and sensitive-device networks.
  • Certificate-based authentication for managed devices.
  • Removal or control of insecure legacy protocols.
  • Regular rogue-access-point detection.
  • Careful radio planning, firmware updates, and controller protection.

Pre-shared keys are convenient for small environments but become difficult to control when many users share one secret. Enterprise authentication provides individual identity and easier revocation. A hidden network name is not a meaningful security control, and MAC-address filtering is weak because addresses can be observed and spoofed.

Wireless threats include evil-twin access points, deauthentication abuse, credential theft, weak encryption, misconfigured guest isolation, and vulnerable Internet-of-Things devices. Users should verify trusted enrollment processes rather than connecting to a similarly named network merely because its signal is strong.

8. Secure Protocols and Traffic Analysis

Secure protocols should provide authenticated endpoints, protected data, resistance to replay, and appropriate key management. Examples include HTTPS using TLS, SSH instead of Telnet, SFTP instead of unprotected file transfer, and secure email mechanisms where confidentiality and authenticity are required.

TLS normally uses certificates to authenticate a server and a key exchange to establish session keys. The certificate chain must lead to a trusted authority, the name must match, the certificate must be valid, and the protocol and cipher configuration must be acceptable. Certificate warnings should not be ignored casually; bypassing validation enables man-in-the-middle attacks.

Traffic analysis begins with a question: what is being determined? Useful data may include source and destination, timestamps, protocol, ports, packet sizes, flow duration, DNS queries, and authentication events. Packet capture tools can support troubleshooting and incident response, while flow records provide scalable summaries. Analysis should preserve evidence integrity, synchronize time across systems, and respect privacy and authorization.

A TCP connection scan may reveal listening services, but an open port is not itself proof of compromise. Analysts should correlate scans with asset inventories, authentication logs, process information, and known vulnerabilities. Baselines are valuable: a server that normally communicates with two database hosts but suddenly contacts hundreds of external addresses deserves investigation.

9. Common Network Attacks and Defenses

Man-in-the-middle attacks

An attacker secretly intercepts and possibly changes communication. Defenses include certificate validation, mutual authentication where appropriate, secure key exchange, protected wireless access, and user education. Encryption without endpoint authentication is insufficient.

ARP spoofing

On local IPv4 networks, an attacker may send false address-resolution messages so traffic is redirected through the attacker. Switch protections, dynamic ARP inspection, segmentation, encrypted protocols, and static controls for exceptional systems can reduce risk.

Denial-of-service and distributed denial-of-service

Attackers exhaust bandwidth, connection state, CPU, memory, or application resources. Mitigation may involve rate limiting, upstream filtering, load balancing, content distribution, resilient architecture, and an incident-response agreement with providers. A firewall alone may not absorb a volumetric attack if the link is already saturated.

Port scanning and reconnaissance

Scanning identifies reachable hosts and services. Exposure reduction, firewalls, service minimization, patching, and monitoring are appropriate defenses. Blocking every scan is unrealistic; the objective is to reduce exploitable exposure and detect meaningful patterns.

Spoofing and reflection

Attackers forge source addresses or abuse third-party services to amplify traffic toward a victim. Ingress and egress filtering, anti-spoofing controls, secure service configuration, and provider cooperation reduce the opportunity.

Lateral movement

After initial compromise, attackers seek credentials, administrative paths, and valuable systems. Segmentation, privileged-access management, multifactor authentication, workstation isolation, and monitoring of unusual internal connections are central defenses.

10. Software-Defined Networking Risks

Software-defined networking separates a logically centralized control plane from forwarding devices. Programmability can improve consistency, automation, and rapid policy deployment. However, the controller becomes a high-value target. Risks include controller compromise, insecure APIs, weak authentication between controller and switches, malicious applications, configuration errors, and loss of service when the controller is unavailable.

Secure SDN practice includes mutually authenticated control channels, role-based access, signed and tested applications, network-controller redundancy, strict API authorization, audit logging, configuration versioning, and segmentation of management traffic. Policies should be validated before deployment, with rollback procedures for incorrect rules. Centralization improves visibility but can also magnify the impact of one administrative error.

11. Applied Case: Illustrative University Network Redesign

Background

A university operates student residences, academic laboratories, administrative systems, a learning-management platform, public web services, and research servers. Students report frequent wireless disruptions, and a security review finds that residence networks can reach several internal services directly. Remote staff use a VPN that grants broad access after password-only authentication.

Problem

The university faces three main risks: lateral movement from unmanaged student devices, exposure of public services to internal systems, and compromise of remote accounts through password theft. It also lacks consistent logging across wireless controllers, firewalls, and VPN gateways.

Analysis

Asset classification identifies payment and student-record systems as high impact, research systems as sensitive, and student devices as untrusted. Flow analysis shows that public web servers require access to a database service, but no user workstation requires direct database access. Researchers require controlled access to selected laboratory systems, while guests need only Internet connectivity.

Approach and solution

The university creates separate guest, residence, staff, laboratory, server, management, and DMZ zones. Inter-zone traffic is denied by default. A reverse proxy publishes the learning platform while keeping application servers private. Database access is restricted to named application servers and administrative jump hosts. Remote access uses multifactor authentication, device posture checks, short-lived authorization, and role-specific application access rather than unrestricted network access.

Wireless authentication moves to individual enterprise credentials for staff and students, with certificate-based authentication for managed devices. Guest access is isolated. DNS requests are directed through managed resolvers, and unusual tunneling patterns are investigated. Network sensors monitor the Internet edge, server zone, and identity infrastructure. Logs are centralized with synchronized time and retained according to policy.

Outcome

A simulated compromised residence device can no longer reach administrative databases or management interfaces. Security staff receive alerts for repeated authentication failures, unusual DNS volume, and unexpected server-to-server connections. The university also documents exceptions, tests recovery procedures, and establishes a quarterly rule and certificate review.

Learning points

The case demonstrates that security is an architectural property. Segmentation reduces blast radius, but it must be supported by identity, endpoint controls, monitoring, and governance. Remote access should grant the minimum required capability, and controls must be tested using realistic attack paths rather than assumed to work because a diagram appears secure.

12. Governance, Ethics, and Professional Practice

Network monitoring can reveal personal communications, location information, health-related activity, and professional behavior. Monitoring must therefore have a lawful purpose, defined scope, appropriate retention, access restrictions, and transparent notices where required. Security teams should avoid collecting more data than necessary and should protect collected logs as sensitive assets.

Organizations should maintain approved network-security policies, asset inventories, configuration baselines, change control, incident-response plans, and vendor-risk processes. Security decisions should consider availability and accessibility; an excessively restrictive policy may prevent legitimate study, emergency work, or essential services. Professional practice requires documenting assumptions, testing controls, communicating residual risk, and escalating unresolved weaknesses.

13. Contemporary Developments and Best Practices

Cloud networking, edge computing, 5G, container orchestration, and operational technology have expanded the number and diversity of connected assets. Identity-aware controls, infrastructure as code, cloud security groups, service meshes, and continuous configuration assessment are increasingly important. Artificial intelligence can assist with anomaly detection and alert triage, but models may inherit biased baselines, be manipulated by adversarial traffic, or generate opaque decisions. Human validation remains essential for high-impact actions.

A practical network-security program should:

  1. Maintain accurate asset and dependency inventories.
  2. Classify data and systems by impact.
  3. Segment by risk and explicitly document permitted flows.
  4. Use secure protocols and managed cryptography.
  5. Apply strong identity, multifactor authentication, and least privilege.
  6. Patch network devices, endpoints, applications, and firmware.
  7. Centralize protected logs and synchronize time.
  8. Monitor both north-south and east-west traffic.
  9. Test firewall, VPN, DNS, wireless, and recovery configurations.
  10. Review rules, certificates, accounts, and exceptions regularly.
  11. Exercise incident-response and business-continuity plans.
  12. Measure outcomes such as unauthorized exposure, time to detect, time to contain, and percentage of critical assets covered by monitoring.

Chapter Summary

Network and communication security protects data, services, and users as they communicate across trusted and untrusted environments. Secure architecture uses zones, segmentation, least privilege, defense in depth, and—where appropriate—zero-trust principles. Firewalls filter traffic, proxies mediate connections, VPNs protect defined tunnels, and IDS/IPS technologies detect or block suspicious activity. DNSSEC protects the integrity and origin of signed DNS data, while encrypted DNS addresses a different problem: protecting the resolver connection from some observers. Wireless security depends on strong authentication, isolation, protected management frames, and control of rogue access points.

Effective defense requires more than deploying appliances. Organizations must authenticate endpoints, validate certificates, monitor traffic, protect management interfaces, maintain accurate inventories, and test controls. Common attacks include man-in-the-middle attacks, ARP spoofing, denial of service, scanning, spoofing, and lateral movement. Software-defined networking improves automation but concentrates risk in controllers and APIs. Ethical monitoring, legal compliance, documentation, and continuous review are essential to sustainable network security.

Key Terms

Confidentiality: Protection against unauthorized disclosure of information.

Integrity: Assurance that data has not been altered without authorization.

Availability: The property that authorized users can access services when required.

Segmentation: Dividing a network into controlled security zones.

Microsegmentation: Applying fine-grained policy to individual workloads, identities, or applications.

DMZ: A controlled network zone for services exposed to external users.

Firewall: A device or software system that enforces traffic-control rules.

Proxy: An intermediary that makes or receives connections on behalf of another party.

VPN: A protected logical connection across an untrusted network.

IDS: A system that detects and reports suspicious activity.

IPS: A system that can detect and actively block suspicious activity.

DNSSEC: Extensions that use digital signatures to authenticate DNS data.

TLS: A protocol that protects authenticated network communication, commonly used by HTTPS.

Zero trust: A model requiring explicit, context-sensitive authorization rather than implicit network trust.

Lateral movement: An attacker’s movement between systems after initial compromise.

ARP spoofing: Forging local address-resolution information to redirect traffic.

Evil twin: A fraudulent wireless access point impersonating a legitimate network.

Software-defined networking: A programmable architecture separating network control from forwarding functions.

North-south traffic: Traffic entering or leaving an organizational network.

East-west traffic: Traffic moving between internal systems or zones.

Review Questions

Short Answer Questions

  1. What are the differences between authentication and authorization?
  2. Why is VLAN separation alone not a complete security control?
  3. State two advantages and two limitations of intrusion detection systems.
  4. What security problem does DNSSEC address, and what problem does it not address?
  5. Why should remote VPN access be combined with endpoint and identity controls?

Long Answer Questions

  1. Explain how a university could design DMZ, user, server, management, and guest zones using defense in depth.
  2. Compare stateless firewalls, stateful firewalls, next-generation firewalls, and proxies.
  3. Describe the security architecture of a secure remote-access service, including authentication, authorization, monitoring, and revocation.
  4. Explain common wireless attacks and develop a mitigation strategy for an enterprise WLAN.
  5. Discuss the benefits and risks of software-defined networking and recommend controls for protecting its controller and APIs.

Analytical / Application Questions

  1. A public web server is compromised. It can communicate freely with employee workstations and a database network. Analyze the architectural weaknesses and propose a prioritized redesign.
  2. A security team observes a sudden increase in long, random-looking DNS queries from one workstation. Develop an investigation plan, identify possible explanations, and recommend containment steps.
  3. An organization wants to enable split-tunnel VPN access for remote employees. Evaluate the security and performance trade-offs and specify conditions under which the design could be acceptable.

Multiple Choice Questions with Answers

Question 1

Which principle most directly limits communication between a compromised workstation and unrelated internal systems?

A. Network segmentation

B. Data compression

C. Load balancing

D. Content caching

Correct Answer: A. Network segmentation

Question 2

What is the primary function of a stateful firewall?

A. Encrypting every file stored on a server

B. Tracking connection state when evaluating traffic

C. Replacing all endpoint security software

D. Registering domain names

Correct Answer: B. Tracking connection state when evaluating traffic

Question 3

Which statement about DNSSEC is correct?

A. It encrypts all ordinary DNS queries

B. It authenticates the origin and integrity of signed DNS data

C. It prevents every phishing attack

D. It replaces multifactor authentication

Correct Answer: B. It authenticates the origin and integrity of signed DNS data

Question 4

Which control is most appropriate for reducing the risk of password-only remote access?

A. Disabling network logging

B. Using multifactor authentication

C. Increasing wireless signal strength

D. Hiding the wireless network name

Correct Answer: B. Using multifactor authentication

Question 5

What distinguishes an IPS from a traditional IDS?

A. An IPS can actively block detected traffic

B. An IPS operates only on physical cables

C. An IPS cannot generate alerts

D. An IPS is used only for DNS resolution

Correct Answer: A. An IPS can actively block detected traffic

Question 6

Which attack redirects local IPv4 traffic by falsifying address-resolution information?

A. ARP spoofing

B. Typosquatting

C. Credential stuffing

D. SQL injection

Correct Answer: A. ARP spoofing

Question 7

Why can split tunneling create additional risk for a remote worker?

A. It prevents all encrypted communication

B. It may allow the device to connect simultaneously to an untrusted network and organizational resources

C. It makes multifactor authentication impossible

D. It disables endpoint patching by definition

Correct Answer: B. It may allow the device to connect simultaneously to an untrusted network and organizational resources

Question 8

Which wireless approach generally provides individual identity and easier revocation for enterprise users?

A. One shared pre-shared key for everyone

B. Open authentication

C. Enterprise authentication with managed credentials or certificates

D. MAC-address filtering alone

Correct Answer: C. Enterprise authentication with managed credentials or certificates

Question 9

In software-defined networking, why is the controller a high-value target?

A. It stores all user documents

B. Its compromise may enable broad policy or forwarding changes

C. It is always physically outside the organization

D. It cannot be protected with authentication

Correct Answer: B. Its compromise may enable broad policy or forwarding changes

Question 10

Which observation is most useful when investigating possible DNS tunneling?

A. A normal number of short queries to approved domains

B. Long, high-entropy subdomains and unusual query volume from one host

C. A valid TLS certificate on a web server

D. A correctly configured guest VLAN

Correct Answer: B. Long, high-entropy subdomains and unusual query volume from one host

Cybersecurity
Chapter 7 of 15