Network, Endpoint and Infrastructure SecurityIntroduction and ContextModern organisations depend on interconnected networks, cloud services, servers, wireless systems, laptops, mobile devices, industrial systems and Internet of Things (IoT) devices. This interdependence improves productivity but also creates multiple paths through which attackers may obtain access, move laterally, steal information or disrupt operations. Network, endpoint and infrastructure security therefore aims to protect the communication paths, computing devices and foundational services on which information systems depend. Security is not achieved by installing a single product. It requires defence in depth: prevention, detection, response, recovery and continuous improvement. A secure design limits unnecessary exposure, separates critical resources, verifies users and devices, maintains secure configurations, monitors activity and prepares for failure. Learning ObjectivesBy the end of this chapter, students should be able to: - explain the relationship between network, endpoint and infrastructure security;
- design basic network segmentation using security zones and access controls;
- compare firewalls, intrusion detection systems, intrusion prevention systems and VPNs;
- apply secure configuration, patch-management and endpoint-protection principles;
- explain endpoint detection and response (EDR) and zero-trust network access (ZTNA);
- evaluate wireless, server and cloud-infrastructure risks;
- develop a practical security architecture and incident-response approach;
- recognise legal, ethical, governance and operational constraints.
1. The Security SurfaceA network is the communication environment connecting systems. It includes switches, routers, wireless access points, firewalls, domain name services, remote-access services and cloud networking components. An endpoint is a device that communicates over a network, such as a workstation, laptop, smartphone, server, printer or sensor. Infrastructure refers to the underlying computing, storage, identity, virtualisation, cloud and facilities systems that support applications. The three areas overlap. A compromised laptop may provide an attacker with credentials for a server. A vulnerable wireless access point may expose an internal network. A misconfigured cloud security group may publish a database directly to the Internet. Effective security consequently considers the complete path from user and device to application and data. The principal security objectives are confidentiality, integrity, availability, authenticity and accountability. Confidentiality prevents unauthorised disclosure; integrity protects against unauthorised alteration; availability ensures dependable access; authenticity establishes that users, devices and services are genuine; and accountability connects actions to responsible identities or processes. 2. Defence in Depth and Security ArchitectureDefence in depth uses multiple independent or partially independent controls. If one control fails, another reduces the likelihood or impact of compromise. Typical layers include: - Governance: policies, risk assessment, roles, standards and acceptable-use rules.
- Physical security: controlled facilities, secure server rooms, power protection and environmental controls.
- Network controls: segmentation, routing restrictions, firewalls, secure protocols and monitoring.
- Identity controls: authentication, authorisation, privileged-access management and multi-factor authentication (MFA).
- Endpoint controls: hardening, anti-malware, application control, encryption and EDR.
- Data controls: classification, encryption, backup, retention and loss prevention.
- Operational controls: patching, vulnerability management, logging, incident response and recovery.
A control should be selected according to risk rather than fashion. For example, network encryption does not correct excessive administrator privileges, and anti-malware does not compensate for unsupported operating systems. A useful design principle is least privilege: users, devices and services should receive only the access necessary for an authorised task. Secure by default means that unnecessary services, ports, accounts and features are disabled unless there is a justified need. Fail securely means that a failure should not silently create excessive access. Separation of duties prevents one person from controlling every stage of a sensitive operation. 3. Network Segmentation and Access ControlSegmentation divides a network into security zones so that compromise of one area does not automatically expose every other area. Segmentation may be implemented with physical networks, virtual local area networks (VLANs), routing policies, firewalls, software-defined networking or cloud security groups. A typical organisation may define the following zones: | Zone | Typical assets | Main security objective |
|---|
| Public or untrusted | Internet-facing services | Minimise exposure and restrict inbound access | | Perimeter/DMZ | Web reverse proxies, mail gateways | Isolate public services from internal systems | | User network | Staff workstations | Control access to applications and servers | | Server network | Application and database servers | Permit only required service flows | | Management network | Administration interfaces | Restrict to authorised administrators and secure devices | | Guest wireless | Visitors and personal devices | Provide Internet access without internal access | | Restricted/critical | Payment, research or operational technology | Apply strong isolation and monitoring |
Segmentation is valuable only when traffic between zones is explicitly controlled. A VLAN alone is not a security boundary if routing permits unrestricted communication. Rules should identify source, destination, service, direction, identity or device condition where supported, and business justification. A default-deny policy blocks traffic unless it is explicitly authorised. Exceptions should be documented, reviewed and tested. Rules should be ordered carefully because many firewalls process rules from top to bottom. Broad rules placed before specific restrictions can unintentionally permit harmful traffic. Microsegmentation applies these principles at a finer level, potentially controlling communication between individual workloads, applications or devices. It is useful in cloud and virtualised environments but may be difficult to operate because application dependencies must be known and continuously maintained. Practical segmentation method- Identify assets, owners, data classifications and business dependencies.
- Map required communication flows, including protocols and ports.
- Group assets with similar trust and protection requirements.
- Place boundaries between groups and enforce them with policy controls.
- Test legitimate and prohibited flows.
- Monitor denied traffic and periodically remove obsolete rules.
4. Firewalls, IDS and IPSA firewall enforces a traffic policy between networks or hosts. Traditional packet-filtering firewalls inspect addresses, ports and protocols. Stateful firewalls also track connection state. Next-generation firewalls may inspect applications, users, encrypted traffic subject to lawful and technical constraints, and threat intelligence. A firewall should not be treated as a complete security solution. It cannot reliably prevent attacks delivered through authorised services, compromised credentials or malicious content that appears legitimate. It also cannot protect an endpoint that is already compromised unless endpoint controls and monitoring are present. An intrusion detection system (IDS) observes activity and generates alerts. A network IDS analyses traffic, while a host IDS analyses events on an individual system. An intrusion prevention system (IPS) operates inline or otherwise takes an action, such as blocking or resetting a connection. Detection systems use signatures, protocol analysis, reputation data, rules and behavioural techniques. | Control | Primary action | Advantage | Limitation |
|---|
| Firewall | Permit or deny traffic | Enforces communication boundaries | May not understand user intent or payload context | | IDS | Detect and alert | Provides visibility without inline disruption | Alerts require investigation; false positives occur | | IPS | Detect and block | Can stop known attacks quickly | Incorrect blocking may interrupt legitimate services | | EDR | Detect and respond on endpoints | Provides process, file and user context | Requires deployment, tuning and skilled investigation |
Detection quality depends on visibility, accurate time synchronisation, complete logs, suitable rules and analyst capacity. A large number of alerts does not necessarily represent strong security. Organisations should prioritise alerts by confidence, asset criticality, exploitability and potential impact. 5. Secure Remote Access and VPNsA virtual private network (VPN) creates an authenticated and cryptographically protected connection across an untrusted network. A remote-access VPN may connect a user device to an organisational network; a site-to-site VPN connects network gateways. VPNs provide confidentiality and integrity in transit, but they do not automatically establish that the endpoint is safe or that the user should access every internal resource. Good VPN practice includes MFA, certificate-based device identity where practical, strong cryptographic protocols, current software, restricted routes, split-tunnelling decisions based on risk, session timeouts and detailed logging. VPN credentials should not be shared. Remote users should be subject to the same access policies, device checks and monitoring as local users. ZTNA provides application-specific access rather than broad network-level access. It evaluates identity, device posture, location, requested application, risk signals and policy before granting a short-lived connection. ZTNA is consistent with zero-trust principles: no user or device is automatically trusted solely because it is inside a network. Zero trust is not a product or a claim that trust can be eliminated. It is an architectural and governance approach based on continuously verifying access, limiting privileges and assuming that compromise may occur. 6. Wireless SecurityWireless networks extend the security boundary beyond physical cabling. Threats include unauthorised access points, weak credentials, rogue clients, interception, denial of service, misconfigured guest access and insecure legacy protocols. Recommended practices include: - use current enterprise wireless security, preferably WPA3-Enterprise where supported, or an appropriately configured WPA2-Enterprise environment during transition;
- use 802.1X authentication with a suitable identity service rather than shared credentials for enterprise access;
- separate staff, guest, IoT and administrative wireless networks;
- disable insecure legacy protocols and change default administrative credentials;
- manage access points centrally and keep firmware current;
- monitor for rogue access points and unusual association behaviour;
- avoid treating a wireless password as a substitute for segmentation and authorisation.
Guest networks should provide Internet access without routes to internal systems. IoT devices often require special treatment because they may have weak update mechanisms, limited logging and long operational lifetimes. Network restrictions, inventory, vendor controls and compensating monitoring are therefore important. 7. Server and Infrastructure HardeningHardening reduces the attack surface of servers, network devices, hypervisors, containers and cloud resources. A secure baseline should address: - supported operating-system and firmware versions;
- removal or disabling of unnecessary services, packages, protocols and accounts;
- secure administrative protocols such as SSH or HTTPS instead of Telnet or unencrypted management services;
- MFA and privileged-access controls;
- host firewalls and restricted management interfaces;
- secure time synchronisation and centralised logging;
- disk or volume encryption where appropriate;
- backup, restoration and recovery testing;
- file permissions, service identities and secrets management;
- configuration review against recognised organisational or industry baselines.
Configuration management should be repeatable. Infrastructure as code and automated compliance checks can reduce configuration drift, but automation must itself be secured through code review, protected repositories, controlled credentials and change approval. Virtualisation and containers create additional concerns. The hypervisor, container runtime, orchestration control plane, images, registries and secrets all require protection. Containers are not equivalent to virtual machines; they share a kernel and must be treated as an application-isolation mechanism with its own limitations. Images should be sourced from trusted registries, scanned, minimised and rebuilt regularly. Cloud responsibility is shared. The provider usually secures the underlying physical and foundational services, while the customer remains responsible for identities, data, configurations, workloads and many network policies. Exact responsibilities vary by service model and contract. 8. Patch and Vulnerability ManagementPatching reduces exposure to known vulnerabilities, but it is an operational process rather than a single installation event. A mature process includes asset inventory, vulnerability identification, risk prioritisation, testing, deployment, verification and exception management. Risk prioritisation should consider severity, exploit availability, exposure, asset criticality, compensating controls and business impact. A severe vulnerability on an isolated, unsupported test system may require a different immediate action from a moderate vulnerability on an Internet-facing authentication server. A practical patch cycle is: - maintain an accurate inventory of hardware, software and ownership;
- monitor vendor advisories and vulnerability intelligence;
- assess affected assets and business exposure;
- test updates on representative systems;
- deploy according to risk-based service-level targets;
- verify installation and application function;
- monitor for regression and retain rollback plans;
- document exceptions with an owner, expiry date and compensating controls.
Unsupported software should be upgraded, isolated, replaced or formally accepted as a risk. Emergency changes may be necessary when active exploitation is occurring, but they should still receive retrospective review. 9. Endpoint Protection and EDREndpoint protection commonly combines anti-malware, host firewall, exploit prevention, web protection, application control, removable-media controls, encryption and device-management policies. Signature-based anti-malware remains useful but is insufficient against novel or fileless attacks. EDR collects endpoint telemetry such as process creation, command-line activity, parent-child process relationships, file changes, network connections, logons and persistence mechanisms. Analysts can use this information to investigate an alert, isolate a device, terminate a process, quarantine a file or collect evidence. An effective EDR programme requires: - broad and reliable deployment coverage;
- protected agents and secure management channels;
- appropriate retention and access controls for telemetry;
- tuned detections that reflect the organisation’s environment;
- documented investigation and containment procedures;
- integration with identity, vulnerability, SIEM and incident-response processes;
- skilled personnel able to distinguish malicious activity from administrative behaviour.
EDR can create privacy concerns because endpoint telemetry may reveal user behaviour, communications metadata or sensitive content. Collection should be proportionate, transparent, access-controlled and consistent with applicable law and organisational policy. 10. Monitoring, Logging and Incident ResponseSecurity monitoring depends on reliable evidence. Important sources include firewalls, VPN gateways, identity systems, endpoint agents, servers, cloud control planes, DNS, email security systems and wireless infrastructure. Logs should include accurate timestamps, source and destination information, event type, outcome and relevant identity or device context. Centralised collection improves correlation and protects logs from local tampering. Time synchronisation is essential when reconstructing an incident. Retention should reflect legal requirements, investigative value, storage cost and privacy obligations. A basic incident-response lifecycle consists of preparation; detection and analysis; containment; eradication; recovery; and lessons learned. Containment may involve isolating an endpoint, disabling an account, blocking an indicator or restricting a network segment. Actions should preserve evidence where possible and avoid destroying information needed to determine scope. Security operations should define escalation criteria, including suspected ransomware, privileged-account compromise, data exposure, widespread malware, critical-service disruption and evidence of ongoing attacker access. 11. Applied Case: Illustrative Regional College NetworkBackgroundA regional college operates student laboratories, administrative systems, a learning platform, research servers, wireless networks and a small data centre. Students and staff use personal devices, and several laboratory computers run specialised software that cannot be immediately upgraded. ProblemAn attacker obtains a student’s reused password through a phishing campaign. The account connects through the campus wireless network and begins scanning internal servers. The college has a perimeter firewall, but its internal network is largely flat, guest wireless is poorly separated, and endpoint alerts are not centrally reviewed. AnalysisThe immediate technical issue is unauthorised scanning, but the deeper weaknesses are excessive trust inside the network, weak identity practice, incomplete asset inventory, unsupported systems and insufficient monitoring. The perimeter firewall does not prevent lateral movement by an authenticated internal device. Approach and SolutionThe college establishes separate staff, student, guest, laboratory, server, research and management zones. Inter-zone traffic is denied by default and opened only for documented application requirements. Administrative interfaces are restricted to a management network. MFA is introduced for staff, administrators and remote access. Password-reuse education is supported by password-manager guidance and breached-password screening. The college deploys EDR to supported endpoints, centralises identity, firewall and endpoint logs, and creates alerts for unusual scanning and impossible travel. Laboratory systems that cannot yet be patched are isolated, restricted to required application servers and monitored more closely. A risk register records their owners, replacement dates and compensating controls. Guest wireless is Internet-only, while wireless administration is limited to authorised administrators. OutcomeA later compromised student device is isolated automatically after generating scanning behaviour. Because server access is segmented and the account lacks privileged rights, the incident is contained without compromise of research or administrative systems. Investigation confirms that the controls reduced blast radius even though the initial phishing attack succeeded. Learning PointsThe case demonstrates that prevention will sometimes fail. Segmentation, MFA, least privilege, endpoint telemetry and prepared response procedures reduce the consequences of that failure. It also shows that legacy systems require explicit risk ownership rather than silent acceptance. 12. Governance, Ethics and RegulationNetwork and endpoint security involves monitoring people and processing potentially sensitive information. Organisations should define a lawful purpose for monitoring, collect no more data than necessary, restrict access, protect retained data and communicate relevant policies clearly. Employee monitoring should not become unlimited surveillance. Security testing must be authorised, scoped and documented. Scanning systems without permission may violate law or organisational policy even when the intention is defensive. Penetration testing should include rules of engagement, emergency contacts, data-handling procedures and reporting requirements. Data-protection obligations may apply to logs, identifiers, device telemetry, IP addresses and incident records. Governance should specify retention, deletion, cross-border transfer, supplier responsibilities and breach-notification procedures where applicable. Security controls should support availability and accessibility rather than arbitrarily excluding legitimate users. 13. Contemporary Developments and LimitationsSecurity architectures increasingly combine cloud-native controls, identity-aware proxies, software-defined perimeters, automated configuration assessment, behavioural analytics and managed detection services. Artificial intelligence can assist with alert prioritisation, anomaly detection, malware classification and investigation summaries. However, AI systems may produce false positives, inherit biased training data, expose sensitive telemetry or be manipulated by adversarial inputs. Human review, provenance, access controls and testing remain necessary. Encryption can conceal both legitimate and malicious traffic from network sensors. Decrypting traffic may improve inspection but introduces privacy, performance, key-management and regulatory concerns. Organisations should define where inspection is justified and ensure that sensitive categories are handled lawfully. No architecture eliminates risk. Zero trust can become ineffective if identities are weak or device posture is inaccurate. Segmentation can become unmanageable when undocumented dependencies accumulate. EDR can generate overwhelming alerts. Patching can disrupt critical operations. Security engineering therefore requires measurement, testing and iterative improvement. Useful programme measures include asset-inventory coverage, percentage of supported systems, patch compliance by risk category, MFA coverage, mean time to detect, mean time to contain, backup-restoration success and the number of unauthorised exposed services. Metrics should support decisions rather than encourage superficial target chasing. Best-Practice Design ChecklistBefore approving a network or infrastructure design, ask: - Are all important assets, owners, dependencies and data classifications known?
- Are public, user, server, management, guest and critical systems appropriately separated?
- Are access rules default-deny, documented, tested and periodically reviewed?
- Are identities and devices verified before access is granted?
- Are MFA, least privilege and privileged-access controls applied?
- Are operating systems, firmware, applications and images supported and patched?
- Are secure configurations automated and checked for drift?
- Are endpoints protected, encrypted where appropriate and covered by EDR?
- Are logs centralised, time-synchronised, protected and actively reviewed?
- Can the organisation isolate systems, restore backups and communicate during an incident?
- Are monitoring, testing and telemetry proportionate, lawful and transparent?
Chapter SummaryNetwork, endpoint and infrastructure security protects the connected systems on which organisations depend. Defence in depth combines governance, segmentation, identity security, hardening, patching, endpoint protection, monitoring and incident response. Segmentation limits lateral movement, while firewalls enforce communication policy. IDS and IPS provide network detection and prevention, whereas EDR supplies detailed endpoint visibility and response capability. VPNs protect remote connections, but ZTNA provides more granular, identity- and context-aware access. Secure wireless design requires strong authentication, isolation and management. Servers, cloud resources, containers and network devices must be hardened, monitored and maintained through controlled configuration and patch processes. Effective security also depends on accurate inventories, risk-based prioritisation, tested recovery and skilled personnel. Ethical and regulatory responsibilities require proportionate monitoring, authorised testing, privacy protection and accountable governance. The central professional lesson is that security controls must work together to reduce both the likelihood and the impact of compromise. Key TermsDefence in depth: Use of multiple complementary security controls. Endpoint: A device that communicates over a network. Infrastructure: Foundational computing, networking, storage, identity and facilities systems. Network segmentation: Division of a network into controlled security zones. VLAN: A logical local-area network used to separate broadcast and administrative domains. DMZ: A controlled zone for services exposed to less-trusted networks. Firewall: A control that permits or denies traffic according to policy. IDS: An intrusion detection system that observes and alerts on suspicious activity. IPS: An intrusion prevention system that can block detected activity. VPN: A cryptographically protected connection across an untrusted network. ZTNA: Zero-trust network access that grants policy-based access to specific applications. Least privilege: Granting only the access required for an authorised task. Hardening: Reducing unnecessary services, weaknesses and exposure in a system. Patch management: The controlled assessment, testing, deployment and verification of updates. EDR: Endpoint detection and response technology for telemetry, investigation and containment. Configuration drift: Unauthorised or unintended change from an approved baseline. Microsegmentation: Fine-grained isolation between workloads, applications or devices. MFA: Authentication using two or more independent factors. Lateral movement: An attacker’s movement between systems after initial access. Security baseline: An approved minimum configuration and control standard. Review QuestionsShort Answer Questions- What is the purpose of network segmentation?
- Distinguish between an IDS and an IPS.
- Why is a VPN not a complete security solution?
- What information can EDR provide to an investigator?
- State two reasons why accurate asset inventory is important.
Long Answer Questions- Explain how defence in depth applies to a university network.
- Compare traditional VPN-based remote access with zero-trust network access.
- Describe a risk-based patch-management process from discovery to verification.
- Explain the security requirements of a hardened server and cloud workload.
- Discuss the ethical and privacy issues associated with endpoint monitoring.
Analytical / Application Questions- Design security zones and access rules for an organisation containing public web servers, staff devices, guest wireless, databases and an administrator network. Justify each boundary.
- A laboratory contains unsupported computers that cannot be replaced for twelve months. Develop a compensating-control plan and identify residual risks.
- An EDR alert shows a user workstation launching a scripting interpreter, contacting an unfamiliar external address and creating a persistence mechanism. Explain the investigation, containment, eradication and recovery actions you would recommend.
Multiple Choice Questions with AnswersQuestion 1What is the primary security benefit of network segmentation? A. It guarantees that malware cannot enter the organisation. B. It limits unauthorised movement between systems and zones. C. It eliminates the need for endpoint protection. D. It automatically encrypts all network traffic. Correct Answer: B. It limits unauthorised movement between systems and zones. Question 2Which control primarily observes suspicious activity and generates alerts without necessarily blocking it? A. IDS B. IPS C. Firewall rule D. Disk encryption Correct Answer: A. IDS Question 3Which approach is most consistent with zero-trust network access? A. Trust every device connected to the internal LAN. B. Grant broad access after a user passes one authentication check. C. Continuously evaluate identity, device posture and requested application. D. Allow access solely according to IP address. Correct Answer: C. Continuously evaluate identity, device posture and requested application. Question 4Which practice best protects a guest wireless network? A. Place guests on the same VLAN as administrators. B. Allow guests unrestricted routes to internal servers. C. Provide Internet access while blocking routes to internal systems. D. Use the administrator password as the guest password. Correct Answer: C. Provide Internet access while blocking routes to internal systems. Question 5What is a key limitation of signature-only anti-malware? A. It cannot scan any files. B. It may fail to recognise previously unseen malicious behaviour. C. It prevents operating-system updates. D. It only works on network routers. Correct Answer: B. It may fail to recognise previously unseen malicious behaviour. Question 6Which activity is part of mature patch management? A. Installing every update without testing or rollback planning. B. Ignoring asset ownership after deployment. C. Assessing risk, testing updates, deploying them and verifying results. D. Patching only systems that have already been compromised. Correct Answer: C. Assessing risk, testing updates, deploying them and verifying results. Question 7Which principle requires a user or service to receive only the access necessary for its task? A. Least privilege B. Open trust C. Maximum availability D. Network flattening Correct Answer: A. Least privilege Question 8What is a principal function of EDR? A. Replacing all network routing protocols B. Collecting endpoint activity and supporting investigation and containment C. Providing physical access to server rooms D. Guaranteeing that phishing messages are never delivered Correct Answer: B. Collecting endpoint activity and supporting investigation and containment Question 9Why is centralised, time-synchronised logging valuable during an incident? A. It prevents every attack automatically. B. It helps correlate events and reconstruct activity across systems. C. It removes the need for incident responders. D. It makes unsupported software secure. Correct Answer: B. It helps correlate events and reconstruct activity across systems. Question 10A public web server needs to communicate with a database. Which design is generally strongest? A. Permit all traffic between the Internet and the database. B. Place the database directly on the guest wireless network. C. Use controlled zones and permit only the required application-to-database flow. D. Disable logging to improve performance. Correct Answer: C. Use controlled zones and permit only the required application-to-database flow.
|