Advanced Computer Networks

Chapter 11
Network Security and Zero-Trust Architecture

Post Graduate Program in Data science
Advanced Computer Networks   •   Post Graduate

Network Security and Zero-Trust Architecture

Introduction

Computer networks now connect cloud services, mobile devices, industrial systems, third-party platforms, and data-processing pipelines. This connectivity creates value but also expands the attack surface. Network security is therefore not merely the protection of a perimeter; it is the systematic management of confidentiality, integrity, availability, authenticity, accountability, and resilience across interconnected systems.

Traditional security architecture often assumed that users and devices inside an organisational network were trustworthy. Contemporary environments invalidate that assumption. Remote work, software-defined infrastructure, cloud-native applications, bring-your-own-device practices, and supply-chain dependencies require security controls that verify each access request and continuously evaluate risk. Zero-trust architecture expresses this principle as: never trust implicitly; verify explicitly; grant least-privileged access; and assume that compromise is possible.

This chapter integrates cryptography, secure protocols, VPNs, firewalls, intrusion detection and prevention, segmentation, identity-aware access, threat modelling, distributed denial-of-service mitigation, incident response, and zero-trust design.

Learning Objectives

After studying this chapter, the reader should be able to:

  1. Explain the security services provided by cryptography and distinguish encryption, hashing, authentication, and digital signatures.
  2. Analyse TLS, VPN, firewall, IDS/IPS, and segmentation designs.
  3. Apply threat-modelling methods to identify attack paths and controls.
  4. Design an identity-aware, least-privilege, zero-trust network architecture.
  5. Evaluate DDoS controls, incident-response procedures, and secure protocol designs.
  6. Discuss operational, ethical, regulatory, and managerial implications of network security decisions.

1. Security Objectives and Adversary Models

The classical objectives are often represented by the CIA triad:

  • Confidentiality: preventing unauthorised disclosure.
  • Integrity: preventing unauthorised modification or destruction.
  • Availability: ensuring that authorised users can obtain services when required.

Modern security engineering adds authenticity, non-repudiation, privacy, safety, and resilience. These objectives can conflict. For example, extensive inspection may improve detection but expose sensitive content; aggressive access controls may reduce compromise risk but impair availability.

A security design begins by defining the adversary. Relevant categories include:

AdversaryTypical capabilityExample concern
Opportunistic attackerAutomated scanning and common exploitsInternet-facing services
Criminal groupCredential theft, ransomware, extortionFinancial and operational disruption
InsiderLegitimate access combined with malicious or careless behaviourData exfiltration
Supply-chain adversaryCompromise of software, firmware, or providerTrusted update mechanism
Nation-state actorIntelligence, persistence, and advanced exploitationStrategic systems
Denial-of-service actorHigh-volume or protocol-exhaustion trafficService unavailability

Threat analysis should specify assets, trust boundaries, attack capabilities, assumptions, and consequences. A control is meaningful only relative to a defined threat model.

2. Cryptographic Foundations

Cryptography transforms information to provide security services. It does not, by itself, guarantee secure implementation, correct key management, or trustworthy endpoints.

2.1 Symmetric cryptography

Symmetric encryption uses the same secret key for encryption and decryption. Modern authenticated-encryption algorithms, such as AES-GCM and ChaCha20-Poly1305, provide confidentiality and integrity together. The encryption operation may be represented abstractly as:

C = EncK(N, P, A)

Here, P is plaintext, K is the secret key, N is a nonce, A is associated data authenticated but not encrypted, and C is ciphertext containing an authentication tag. The nonce must be unique for a given key in schemes such as AES-GCM; nonce reuse can seriously compromise security. The associated data may include protocol headers that must remain visible but protected from modification.

Symmetric cryptography is computationally efficient and suitable for bulk traffic. Its main challenge is secure key distribution and lifecycle management.

2.2 Asymmetric cryptography

Public-key cryptography uses a public key and a private key. It supports key establishment, signatures, and identity binding. A digital signature is generated with a private key and verified with the corresponding public key. Confidentiality and signatures are conceptually different: encrypting with a recipient’s public key supports confidentiality, whereas signing with a sender’s private key supports authenticity and integrity.

Public-key operations are generally more expensive than symmetric operations. Secure protocols therefore use asymmetric cryptography to authenticate parties and establish a session key, then use symmetric authenticated encryption for data transfer.

2.3 Hash functions and password protection

A cryptographic hash maps an input to a fixed-length digest. Desired properties include preimage resistance, second-preimage resistance, and collision resistance. Hashes are used for integrity checks, transcript binding, signatures, and content addressing.

Passwords should not be stored as ordinary hashes. Password-verification systems should use a deliberately expensive, salted password hashing function such as Argon2id, scrypt, or bcrypt. A unique salt prevents identical passwords from producing identical stored values and reduces the value of precomputed tables. Password hashing is distinct from general-purpose hashing because the computational cost is intentionally tunable.

2.4 Key management

Key management frequently determines whether cryptography succeeds in practice. A lifecycle includes generation, distribution, storage, rotation, revocation, backup, recovery, use restrictions, and destruction. Hardware security modules and cloud key-management services can protect high-value keys, but they introduce availability, configuration, and provider-dependency risks.

The security of a cryptosystem depends on the secrecy of private keys, the correctness of implementation, the quality of randomness, and the validity of key-to-identity bindings. Certificate authorities and public-key infrastructures help bind public keys to identities, but certificate issuance and revocation remain governance problems as well as technical ones.

3. TLS and Secure Protocol Design

Transport Layer Security (TLS) protects application traffic against eavesdropping, tampering, and impersonation when correctly configured. A contemporary TLS connection typically performs the following conceptual steps:

  1. The client and server negotiate supported protocol parameters.
  2. The server presents an identity certificate.
  3. The parties authenticate the certificate chain and endpoint identity.
  4. An ephemeral key exchange establishes shared keying material.
  5. Both parties derive traffic keys and verify the handshake transcript.
  6. Application data is protected using authenticated encryption.

Forward secrecy is obtained when ephemeral key exchange is used and long-term private keys are not sufficient to decrypt recorded historical sessions. TLS does not protect compromised endpoints, malicious application logic, or data after it has been decrypted by the application.

Secure protocol design should specify:

  • explicit message formats and versioning;
  • authentication of all security-critical identities;
  • freshness through nonces, timestamps, or sequence numbers;
  • replay detection;
  • fail-secure error handling;
  • bounded resource consumption;
  • confidentiality and integrity of metadata where necessary;
  • algorithm agility without insecure downgrade paths; and
  • logging that supports investigation without exposing secrets.

A protocol should not rely on obscurity, client-side claims, or an unverified hostname. Cryptographic checks must occur before sensitive actions are authorised.

4. VPNs, Firewalls, and Network Enforcement

A virtual private network creates a protected logical channel over an untrusted network. IPsec commonly operates at the network layer, while TLS-based VPNs operate closer to the application layer. VPN encryption protects traffic between tunnel endpoints; it does not automatically make the user, device, or destination trustworthy.

Important VPN design choices include endpoint authentication, route scope, split tunnelling, cryptographic policy, device posture, logging, and emergency revocation. Full-tunnel VPNs route all traffic through an inspection point but may increase latency and centralise failure. Split tunnelling can improve performance but may allow direct access to untrusted networks.

A firewall enforces traffic policy between interfaces or security zones. Packet filters use addresses, ports, protocols, and direction. Stateful firewalls additionally track connection state. Next-generation firewalls may inspect applications, identities, and content, although encrypted traffic limits visibility and inspection can create privacy and performance concerns.

A sound firewall policy follows least privilege:

  • deny by default where operationally feasible;
  • permit only required flows;
  • restrict both source and destination;
  • document business justification and ownership;
  • log security-relevant decisions;
  • review rules for shadowing, duplication, and expiration; and
  • separate administrative access from ordinary traffic.

Firewalls are control points, not complete security strategies. An attacker who compromises an allowed application channel may bypass a port-based policy.

5. IDS, IPS, and Security Monitoring

An intrusion-detection system (IDS) identifies suspicious activity and generates alerts. An intrusion-prevention system (IPS) can block or modify traffic. Detection methods include:

  • Signature-based detection: matches known patterns; precise for known attacks but weak against novel variants.
  • Anomaly-based detection: identifies deviations from a baseline; useful for unknown behaviour but vulnerable to false positives.
  • Behavioural and statistical detection: models sequences, relationships, or rates.
  • Host-based detection: observes processes, files, authentication, and system calls.
  • Network-based detection: observes flows, packets, protocols, and metadata.

Detection quality is not measured only by alert volume. A useful operational measure is analyst-confirmed precision, while recall concerns the proportion of relevant incidents detected. In a binary classification setting, if TP denotes true positives, FP false positives, and FN false negatives, then:

Precision = TP ÷ (TP + FP)
Recall = TP ÷ (TP + FN)

These metrics apply to a defined dataset and labelling process; they do not by themselves measure business impact or analyst workload. Monitoring should combine network telemetry, identity events, endpoint data, cloud logs, DNS, and application records. Time synchronisation, retention, access control, and evidence integrity are essential for investigation.

6. Segmentation and Identity-Aware Access

Segmentation limits lateral movement and reduces the consequences of compromise. Traditional segmentation uses VLANs, subnets, routing boundaries, and firewalls. Microsegmentation applies policy to workloads, applications, users, or processes at a finer granularity.

A useful segmentation design separates, where appropriate:

  • public-facing services;
  • application and database tiers;
  • management planes;
  • development and production environments;
  • user endpoints and privileged administration;
  • operational technology and safety-critical systems; and
  • backup and recovery infrastructure.

Segmentation is effective only when flows are understood and policy is maintained. Excessive segmentation can create complexity, brittle dependencies, and unsafe workarounds.

Identity-aware access evaluates who or what is requesting access, the resource, the action, the device condition, and contextual risk. Multi-factor authentication reduces the impact of stolen passwords. Stronger methods include phishing-resistant credentials based on hardware-backed cryptographic authentication.

Authorisation models include role-based access control, attribute-based access control, and relationship-based policies. A policy decision can be conceptualised as:

Decision = f(subject, resource, action, device, context, risk)

The function is organisation-specific; it should produce permit, deny, or a controlled challenge, with policy evaluation logged for accountability.

7. Zero-Trust Architecture

Zero trust is an architectural approach rather than a product. It rejects implicit trust based on network location. Each request is evaluated using identity, device posture, resource sensitivity, session context, and policy.

A practical zero-trust architecture contains:

  1. Policy engine: evaluates rules and risk.
  2. Policy administrator: establishes or terminates access decisions.
  3. Policy enforcement point: mediates the actual connection.
  4. Identity and access services: provide authentication, federation, and lifecycle management.
  5. Device and workload telemetry: reports posture and behaviour.
  6. Data and application controls: enforce access close to the protected resource.
  7. Continuous monitoring: detects changes and triggers re-evaluation.
Zero trust access architecture Subjectuser / workload Policy engineidentity + context + risk Telemetrydevice + behaviour Enforcementproxy / gateway Resourceapp / data
Zero trust access architecture showing a subject, policy decision components, enforcement point, and protected resources
Figure: Zero trust access architecture showing a subject, policy decision components, enforcement point, and protected resources

Figure: A zero-trust request is evaluated using identity and telemetry before an enforcement point permits access to a resource.

Zero trust is implemented incrementally. Organisations should first inventory resources and identities, establish strong authentication, remove excessive privileges, instrument critical flows, and then introduce fine-grained policy. It is not equivalent to placing more firewalls around an existing flat network.

8. Threat Modelling and Risk Analysis

Threat modelling is a structured method for anticipating abuse before deployment. The process commonly includes:

  1. define scope and security objectives;
  2. identify assets, actors, entry points, and trust boundaries;
  3. enumerate threats using a framework such as STRIDE;
  4. analyse attack paths and consequences;
  5. select preventive, detective, and corrective controls;
  6. validate assumptions through testing; and
  7. monitor changes throughout the system lifecycle.

STRIDE classifies threats as spoofing, tampering, repudiation, information disclosure, denial of service, and elevation of privilege. Attack trees and attack graphs are useful for analysing combinations of weaknesses rather than isolated vulnerabilities.

Risk is often prioritised qualitatively or with an expected-loss model:

Expected loss = Probability of event × Impact of event

The model assumes that probability and impact estimates are meaningful and comparable. In practice, uncertainty, dependence between events, insurance, recovery capability, and regulatory consequences complicate the calculation. Quantitative estimates should therefore support—not replace—expert judgement.

9. DDoS Mitigation and Resilience

Distributed denial-of-service attacks exhaust bandwidth, connection state, CPU, memory, or application resources. Volumetric attacks require upstream capacity and filtering; protocol attacks exploit stateful devices; application-layer attacks imitate legitimate requests and require application-aware controls.

Mitigation measures include:

  • rate limiting and connection quotas;
  • caching and content distribution;
  • anycast or distributed service architecture;
  • upstream scrubbing providers;
  • resilient DNS and routing arrangements;
  • autoscaling with cost controls;
  • graceful degradation and queue management;
  • protection of administrative and management channels; and
  • rehearsed communication and failover procedures.

Availability engineering must consider recovery time objective (RTO) and recovery point objective (RPO). RTO is the target time to restore a service; RPO is the maximum tolerable amount of data loss measured in time. These are business requirements, not merely network parameters.

10. Incident Response

Incident response transforms detection into controlled action. A mature lifecycle includes preparation; detection and analysis; containment; eradication; recovery; and lessons learned.

Preparation includes playbooks, contact lists, logging, backups, legal guidance, communication channels, and exercises. During analysis, responders establish scope, preserve evidence, identify affected identities and systems, and avoid destroying volatile information. Containment may be short-term isolation followed by durable controls. Eradication removes persistence and addresses root causes. Recovery restores services while monitoring for recurrence.

Actions must preserve chain of custody when evidence may support disciplinary or legal proceedings. Privacy principles require collecting only necessary information, restricting access, and retaining it for an approved period. Incident communication should be accurate, timely, and coordinated with regulators, customers, law enforcement, and suppliers when required.

11. Illustrative Case: Zero-Trust Migration in a Data-Analytics Firm

Background

An illustrative mid-sized analytics firm operates a public API, a cloud data lake, internal dashboards, contractor access, and a remote workforce. Its legacy network grants broad VPN access after password authentication. Development and production accounts share several administrative pathways.

Problem

A contractor’s password is stolen through phishing. The attacker connects through the VPN, discovers internal services, compromises a development workload, and attempts to reach production storage. Existing firewall logs show connections but do not associate them reliably with individuals or workloads.

Analysis

Threat modelling identifies three critical paths: stolen identity to VPN, development workload to production data, and administrative credentials to the cloud control plane. The principal weaknesses are implicit network trust, inadequate MFA, excessive privileges, and incomplete telemetry.

Approach

The firm adopts phishing-resistant MFA for privileged and contractor accounts, integrates device posture checks, and replaces broad VPN access with application-specific access gateways. Production data is separated from development through identity and workload policies. Short-lived credentials replace persistent shared secrets. Central logging correlates identity, device, workload, and data-access events. High-risk sessions require reauthentication or are blocked.

The firm also establishes a tested incident playbook, restricts egress from analytics workloads, and uses DDoS protection for the public API. Migration is staged so that critical services retain a documented fallback while policy decisions are validated.

Outcome

The stolen password alone no longer grants access. The contractor account is limited to approved applications, the unmanaged device fails posture checks, and the attempted development-to-production path is denied and alerted. The organisation improves investigation because events are tied to identities and resources rather than only IP addresses.

Learning Points

Zero trust reduces blast radius but does not eliminate phishing, compromised endpoints, malicious insiders, or application vulnerabilities. Success depends on asset inventory, reliable identity data, usable policy, telemetry, change management, and continuous testing.

12. Governance, Ethics, and Contemporary Developments

Network-security programmes must comply with applicable privacy, breach-notification, sectoral, and cybersecurity regulations. Governance should assign control owners, define risk acceptance, document exceptions, and review suppliers. Security monitoring can become excessive surveillance if purpose limitation, proportionality, transparency, and access controls are ignored.

Artificial intelligence can assist anomaly detection, alert correlation, malware analysis, and response prioritisation. However, models may produce false positives, inherit biased baselines, leak sensitive data, or be manipulated by adversarial inputs. AI-generated decisions should remain auditable, bounded by policy, and subject to human review for consequential actions.

Contemporary practice increasingly emphasises software supply-chain security, secure-by-design development, software bills of materials, hardware-backed identity, confidential computing, post-quantum cryptographic migration planning, and continuous control validation. These developments do not remove foundational responsibilities: accurate inventory, disciplined access control, patching, secure defaults, resilient backups, and trained personnel.

13. Best-Practice Design Principles

  1. Protect identities as primary security perimeters.
  2. Use modern authenticated encryption and secure protocol libraries; do not invent cryptographic algorithms.
  3. Prefer phishing-resistant MFA for high-value access.
  4. Deny unnecessary access and make privileges time-limited where practical.
  5. Segment critical assets and control east-west traffic.
  6. Treat logs as security infrastructure: protect, synchronise, retain, and test them.
  7. Design for compromise containment and recovery, not only prevention.
  8. Test backups, incident playbooks, failover, and DDoS procedures.
  9. Review third-party and software-supply-chain dependencies.
  10. Measure outcomes such as reduced attack paths, detection time, restoration time, and policy exceptions—not merely the number of deployed tools.

Chapter Summary

Network security combines technical controls, governance, and operational discipline. Cryptography provides confidentiality, integrity, authentication, and key-establishment mechanisms, but secure key management and endpoint protection remain essential. TLS protects authenticated sessions, while VPNs protect defined tunnel paths rather than creating universal trust. Firewalls, IDS/IPS, segmentation, and identity-aware policies reduce exposure and lateral movement when their rules are specific, monitored, and maintained.

Zero-trust architecture removes implicit trust based on network location. It evaluates identity, device posture, resource, action, and context through policy engines and enforcement points. Threat modelling identifies assets, trust boundaries, attack paths, and consequences; DDoS mitigation combines upstream, network, application, and resilience measures; and incident response provides a disciplined method for containment and recovery. Effective programmes also address privacy, regulation, suppliers, AI risks, usability, and organisational accountability.

Key Terms

Cryptography: The discipline of protecting information through mathematical techniques.

Symmetric encryption: Encryption using a shared secret key.

Authenticated encryption: Encryption that provides confidentiality and detects unauthorised modification.

Nonce: A value intended to be used once within a specified cryptographic context.

Hash function: A function that maps data to a fixed-length digest with security properties.

Digital signature: A cryptographic value used to authenticate a message or document and protect integrity.

Key management: The generation, distribution, storage, rotation, revocation, and destruction of cryptographic keys.

TLS: A protocol for protecting authenticated application sessions over networks.

VPN: A logical protected tunnel established across an untrusted network.

Firewall: A policy enforcement system that controls network traffic.

IDS: An intrusion-detection system that identifies suspicious activity.

IPS: An intrusion-prevention system that can block suspicious activity.

Segmentation: Dividing a network or environment into controlled security zones.

Microsegmentation: Fine-grained policy enforcement around workloads, applications, or processes.

Zero trust: An architecture that verifies access explicitly and grants least privilege without implicit network trust.

Threat modelling: A structured analysis of assets, threats, attack paths, and controls.

DDoS: Distributed denial of service intended to impair availability.

RTO: Target time for restoring a service after disruption.

RPO: Maximum tolerable data loss expressed as a time interval.

Incident response: The organised process of detecting, containing, investigating, recovering from, and learning from security incidents.

Review Questions

5 Short Answer Questions

  1. Distinguish confidentiality, integrity, and availability.
  2. Why must a nonce be unique in common authenticated-encryption schemes?
  3. What is the difference between an IDS and an IPS?
  4. Explain why a VPN does not automatically implement zero trust.
  5. Define recovery time objective and recovery point objective.

5 Long Answer Questions

  1. Explain how asymmetric and symmetric cryptography cooperate in a secure session protocol.
  2. Discuss the design principles of an effective firewall and segmentation policy.
  3. Describe the components and operation of a zero-trust architecture.
  4. Compare signature-based, anomaly-based, host-based, and network-based detection.
  5. Analyse the governance, privacy, and operational challenges of continuous security monitoring.

3 Analytical / Application Questions

  1. Design a threat model for a cloud-hosted data-analytics platform. Identify assets, trust boundaries, three attack paths, and preventive, detective, and corrective controls.
  2. A company permits all employees broad VPN access after password authentication. Propose a staged zero-trust migration, explaining identity, device, application, segmentation, telemetry, and incident-response changes.
  3. An online service experiences both volumetric traffic floods and expensive malicious API requests. Analyse why one mitigation is insufficient and design a layered availability strategy.

Multiple Choice Questions with Answers

Question 1

Which property is provided directly by authenticated encryption?

A. Confidentiality and detection of modification

B. Guaranteed endpoint security

C. Physical protection of servers

D. Automatic key distribution

Correct Answer: A. Confidentiality and detection of modification

Question 2

Why is nonce reuse dangerous in schemes such as AES-GCM?

A. It makes certificates expire early

B. It can compromise confidentiality and integrity

C. It prevents all routing

D. It disables DNS resolution

Correct Answer: B. It can compromise confidentiality and integrity

Question 3

Which statement best describes zero-trust architecture?

A. All internal traffic is trusted

B. Only internet traffic requires authentication

C. Each access request is evaluated explicitly and least privilege is applied

D. A single perimeter firewall is sufficient

Correct Answer: C. Each access request is evaluated explicitly and least privilege is applied

Question 4

What is the main purpose of a digital signature?

A. To provide sender authentication and message integrity

B. To compress a packet

C. To hide a public key

D. To increase network bandwidth

Correct Answer: A. To provide sender authentication and message integrity

Question 5

If TP = 80, FP = 20, and FN = 40, what is the precision of the detector?

A. 0.50

B. 0.67

C. 0.80

D. 0.90

Correct Answer: C. 0.80

Question 6

Which control most directly limits lateral movement between development and production?

A. Network segmentation with identity-aware policy

B. Increasing screen brightness

C. Disabling time synchronisation

D. Using longer hostnames

Correct Answer: A. Network segmentation with identity-aware policy

Question 7

What does forward secrecy primarily protect against?

A. Future loss of network availability

B. Decryption of recorded past sessions after a long-term key is compromised

C. All endpoint malware

D. Unauthorised physical entry

Correct Answer: B. Decryption of recorded past sessions after a long-term key is compromised

Question 8

Which DDoS mitigation is especially relevant to application-layer attacks that generate expensive requests?

A. Application-aware rate limiting and request controls

B. Changing monitor resolution

C. Removing all authentication

D. Disabling backups

Correct Answer: A. Application-aware rate limiting and request controls

Question 9

What is the principal purpose of a salt in password hashing?

A. To make passwords reversible

B. To ensure identical passwords have identical stored hashes

C. To reduce the effectiveness of precomputed attacks and distinguish equal passwords

D. To replace multi-factor authentication

Correct Answer: C. To reduce the effectiveness of precomputed attacks and distinguish equal passwords

Question 10

Which incident-response activity should occur before an incident when possible?

A. Preparation through playbooks, contacts, logging, and exercises

B. Deleting all logs

C. Publishing unverified conclusions

D. Rotating every public IP address without analysis

Correct Answer: A. Preparation through playbooks, contacts, logging, and exercises

Advanced Computer Networks
Chapter 11 of 15