YourNextCert™ with Shubham Sharma

Chapter 9

Security Vulnerabilities, Threats, and Countermeasures

Weaknesses across computing architectures, from hardware, memory and storage to ICS, IoT, microservices, containers, virtualisation, embedded, edge and mobile systems, and how to mitigate them.

Status
In progress
Last updated

Video

The video for this chapter is not available yet.

Exam domains and objectives covered

Domain 3: Security Architecture and Engineering

  • 3.1 Research, implement and manage engineering processes using secure design principles
  • 3.5 Assess and mitigate the vulnerabilities of security architectures, designs, and solution elements

Objectives are numbered as in the official ISC2® CISSP exam outline.

Learning objectives

By the end of this chapter you should be able to:

  • Explain shared responsibility, data localisation and data sovereignty
  • Describe processor execution types, protection rings, process states, memory and storage, and their security issues
  • Recognise emanation, firmware and input/output device risks and their countermeasures
  • Identify the security challenges of client, server, distributed, parallel and HPC systems
  • Secure ICS/OT, IoT, embedded, static and edge/fog environments
  • Manage the risks of virtualisation, containers, microservices and infrastructure as code
  • Apply mobile device security features and choose a device deployment model
  • Explain covert channels, maintenance hooks, rootkits and incremental attacks

Key topics

  • Shared responsibility
  • Data localisation and sovereignty
  • Protection rings and process states
  • Memory and storage risks
  • Emanation security (TEMPEST/EMSEC)
  • UEFI, secure boot and measured boot
  • ICS, SCADA, DCS and PLCs
  • IoT, embedded and static systems
  • Edge and fog computing
  • Virtualisation and containers
  • Microservices, IaC and immutable architecture
  • Mobile device management and deployment models
  • Covert channels and incremental attacks

Chapter notes

Chapter overview

Every architecture brings its own weaknesses. This wide-ranging chapter tours the computing landscape, from processors and memory to cloud, containers and the devices in our pockets and factories. For each one, ask the same two questions: what can go wrong, and which controls reduce the risk? Expect scenario questions that hinge on recognising the architecture first and the right countermeasure second.

Key concepts

Shared responsibility

No organisation secures itself alone. Everyone uses the same protocols, operating systems and off-the-shelf products, so security is a joint effort:

  • inside the organisation, leaders set security direction, staff work within it and auditors check it;
  • with suppliers and cloud providers, each party must know exactly which controls it owns (the cloud shared responsibility model is covered in Chapter 16);
  • across the community, newly found vulnerabilities should be disclosed responsibly to the vendor or a threat-sharing body.

Threat intelligence is often exchanged automatically. In the US, the Automated Indicator Sharing (AIS) programme passes indicators of compromise between government and industry using STIX (a structured language for describing threats) carried over TAXII (the transport and exchange services).

Data localisation, sovereignty and portability

Term Focus
Data localisation A legal requirement that certain data is stored and processed inside a given country or region
Data sovereignty The wider principle that data is governed by the laws of the jurisdiction where it sits or originates, covering control, compliance and access as well as location
Data portability An individual’s ability to move their personal data from one service to another

Localisation is effectively a subset of sovereignty. Both shape where you can host data and which providers you can use.

Processor execution types

Term What it means
Multitasking Handling several tasks at once; on a single core the OS switches between them rapidly
Multicore One chip containing several independent execution cores
Multiprocessing Using more than one processor for a workload. Affinity pins a process or thread to a specific processor
Multiprogramming Older batch technique: while one program waits for I/O, the next runs; efficient overall but slow for any single job
Multithreading Several threads run within one process, avoiding the overhead of switching between processes

At larger scale, symmetric multiprocessing (SMP) shares one OS, bus and memory across many processors, while asymmetric multiprocessing (AMP) gives each processor its own OS and memory. Massively parallel processing (MPP) links many AMP nodes to split a huge task into pieces.

Protection rings and process states

In the classic ring model, lower numbers mean more privilege:

Ring Contents
0 OS kernel, always resident in memory
1 Other OS components loaded as needed
2 Device drivers and system utilities
3 User applications

Outer rings ask inner rings for services through system calls (mediated access). Most modern systems collapse this into two modes: kernel/supervisor mode (rings 0–2) and user mode (ring 3), where requests are checked. Unprivileged user mode is known as the problem state; the name reflects that such code must be policed, not that anything has gone wrong.

A process moves between ready (waiting for the CPU), running (executing in its time slice), waiting (blocked on I/O), supervisory (running with elevated privilege) and stopped (finished or terminated, with resources reclaimed).

Memory and storage

Type Volatile? Notes
ROM No Contents fixed at manufacture; holds boot code such as POST
PROM No Written once by the user, then fixed
EPROM / UVEPROM No Erased with ultraviolet light and rewritten
EEPROM No Erased electrically, byte by byte
Flash No Erased and written in blocks; used in SSDs, USB sticks and phones
Dynamic RAM Yes Capacitors that need constant refreshing; cheaper, slower
Static RAM Yes Flip-flops, no refresh; faster, dearer, used for cache
Registers Yes Tiny, fastest memory inside the CPU
Cache (L1–L4) Yes Keeps frequently used data close to the processor

Other distinctions: primary storage is RAM, secondary storage is disks, tape and flash; random access devices jump straight to any location, sequential devices (tape) must read through earlier data. Virtual memory extends RAM with a pagefile or swapfile on disk. Addressing schemes include register, immediate, direct, indirect and base+offset.

Security issues to remember:

  • Data remanence: deleted or reformatted data can be recovered, so sanitise or destroy media. SSDs use spare blocks and wear levelling, so a simple overwrite may miss data; prefer encryption plus vendor secure-erase or physical destruction.
  • Cold boot attacks chill RAM so its contents decay slowly enough to be read after power-off; memory and crash dumps can also expose keys.
  • Lost or stolen drives and removable media are a confidentiality problem, not a cost problem: use full-disk encryption.
  • Race conditions and bad pointer handling can crash systems or be exploited.

Emanations and peripheral devices

Electronic equipment leaks electromagnetic signals that can be intercepted and reconstructed (Van Eck phreaking). Countermeasures grew out of the US TEMPEST programme, now usually called EMSEC (emission security):

  • Faraday cage: a conductive enclosure, from a box to a whole building, that blocks signals in both directions;
  • white noise: deliberately generated interference that masks genuine emanations without stopping legitimate use;
  • control zone: a protected room, floor or building using cages and noise generation;
  • plus shielded cabling, fibre instead of copper, antenna management and physical access control.

Peripherals carry their own risks: shoulder surfing at monitors, printers and multifunction devices that store jobs on internal disks (and fax lines that can be abused), keyloggers and interceptable wireless keyboards, and legacy modems that bypass the perimeter. A device should not be connected by cable and wireless at the same time, as that can bridge networks.

Firmware, UEFI and boot security

Firmware is software stored in ROM, EEPROM or flash that runs devices from phones to ICS controllers. BIOS has largely given way to UEFI, which adds larger boot drives, faster starts and security features. Updating firmware is called flashing; installing malicious firmware is phlashing.

  • Secure boot only loads bootloaders, drivers and operating systems signed by trusted certificates, blocking many boot-level rootkits. It prevents.
  • Measured boot hashes each boot component and records the values in the TPM for later comparison. It records but does not stop booting, rather like a security camera.

Client-based systems

Client-side attacks target the user’s device, usually through the browser. Historic mobile code (Java® applets, ActiveX) ran downloaded programs locally; today the main concern is JavaScript. Browsers sandbox scripts and enforce the same-origin policy (scheme, host and port must match), but attackers still use XSS, CSRF and look-alike sites. Defences: patched browsers, a content security policy (CSP), server-side input validation and careful use of extensions. Local caches (DNS, ARP, temporary internet files) can be poisoned, so limit cache lifetime and size and clear them on exit where practical.

Server-based, distributed and large-scale systems

  • Data flow control keeps traffic moving reliably without overwhelming receivers; load balancers spread work across a server farm. Denial of service is the main threat.
  • Grid computing borrows spare capacity from many loosely joined nodes. Work packets can be read, kept or returned late or corrupted by participants, so grids are unsuitable for confidential data, and the central servers are a single point of failure.
  • Peer-to-peer (P2P) shares workloads with no central management, raising piracy, eavesdropping, oversight and bandwidth concerns.
  • Distributed computing environments (DCEs) look like one service to users but span many systems. Components talk through an interface definition language (IDL) such as RPC, CORBA or DCOM. Interconnection allows malware and attackers to pivot, so encrypt, use MFA, keep components consistent and watch for cross-border data sovereignty issues.
  • High-performance computing (HPC) balances compute, network and storage; a weak link causes a benign DoS (an outage from overload or failure, with no attacker involved).
  • A real-time operating system (RTOS) processes data as it arrives. Hard real-time means delay is unacceptable (vehicle safety); soft real-time tolerates small delays. RTOSs are often single-purpose with little room for security, so isolate and monitor them.

Industrial control systems (ICS/OT)

Component Scope Analogy
PLC Controls one machine or process A single transformer
DCS Links controllers across one plant; process-oriented and state-driven A power station
SCADA Supervises sites across a wide area; data-gathering and event-driven, with an HMI A national grid

Modbus is a widely used, historically unauthenticated industrial protocol. Stuxnet showed that isolated control systems can be compromised. Controls: isolate OT networks, restrict physical and logical access, run only essential code, change default credentials and log activity. In OT, availability and safety of real-time control come first. Standards include ISA/IEC 62443, NIST SP 800-82 and NERC CIP for the electricity sector.

IoT, IIoT, edge and fog

The Internet of Things (IoT) covers network-connected devices that add automation or remote control, from thermostats to sensors and wearables. Common weaknesses are poor authentication, weak or missing encryption, insecure defaults and no patching. Put IoT on its own segment, change default passwords, judge the vendor’s security record and refuse devices that can’t meet your baseline. Industrial IoT (IIoT) extends ICS with cloud analytics.

  • Edge computing processes data on or right beside the device that generates it.
  • Fog computing gathers data from many sensors and edge devices and processes it centrally on the local network before anything goes to the cloud.

Embedded, static and cyber-physical systems

  • An embedded system means a computer built into a larger product to automate or control it, often using a microcontroller (CPU, memory and I/O on one chip).
  • A static system is meant never to change between uses (airport kiosk, ATM, library PC that resets on logout); also called non-persistent or stateless.
  • A cyber-physical system senses or acts on the physical world (robots, vehicle collision avoidance, surgical robotics), so a breach can harm people.

Typical constraints are limited power, CPU, networking and cryptography, hard-coded credentials or keys, and little or no patching, plus implicit trust in the vendor and its cloud. Protect them from the outside:

Control Purpose
Network segmentation (physical or VLAN-based) Keep exploits and unwanted changes away
Application, network and internal segmentation firewalls in series Layered filtering
Security layers Group devices by sensitivity, with one-way or absolute isolation
Manual, tested updates and firmware version control Avoid untested changes breaking stability
Monitoring and logging (on-device or external) Detect abuse and failure
Control redundancy and diversity Avoid relying on a single mechanism

Microservices, IaC and immutable architecture

  • Service-oriented architecture (SOA) builds new applications from existing services, so the combination needs fresh testing.
  • Microservices are small, independently deployable, loosely coupled services that talk through APIs. Secure each one: authenticate and authorise services and users, encrypt in transit and at rest, protect APIs (often via an API gateway), monitor and log, and secure the containers they run in.
  • Infrastructure as code (IaC) defines infrastructure in machine-readable files managed like software: version control, testing and change control.
  • Immutable architecture never modifies a running server; it builds and deploys a replacement and retires the old one (“cattle, not pets”).

Virtualisation and software-defined everything

The hypervisor (virtual machine monitor) creates and runs virtual machines. A type I hypervisor runs on bare metal (servers); a type II hypervisor runs as an application on a host OS (desktops, testing). Benefits include fast snapshots and restores, isolation for testing and a safer way to keep legacy systems running. Elasticity adjusts resources to current demand in the short term; scalability means growing capacity to handle a larger workload over the longer term.

Risks and responses:

  • the hypervisor is extra attack surface, and compromise of the host exposes every guest: harden the host and use it for nothing else;
  • each guest OS, and the hypervisor itself, still needs patching, backups and security testing;
  • VM sprawl: unmanaged VMs multiply; control it with policy and approved base images;
  • VM escape: code breaks out of a guest into other guests or the host; patch hypervisors and keep highly sensitive systems on separate physical hardware;
  • shadow IT: systems or cloud services deployed without IT’s knowledge or oversight.

Related terms: virtual applications run sandboxed and portable; virtualised networks and SDN put network control in software; VDI hosts desktops centrally (persistent or non-persistent); VMI does the same for mobile OSs; thin clients provide only display and input; software-defined visibility (SDV) automates monitoring and response; a software-defined data centre (SDDC) delivers the whole data centre as a service.

Containers (OS-level virtualisation) package an application with only the libraries it needs and share the host kernel through a container engine. They are lighter and denser than VMs but share kernel-level risks.

Mobile devices

Treat laptops, tablets, smartphones and wearables as mobile devices. Risks include data loss through theft, malicious apps, camera and microphone capture, eavesdropping and rogue connectivity. Android™ (open-source base, plus SEAndroid mandatory access controls) and iOS™ (vendor-controlled) dominate.

Feature Notes
MDM / UEM Central enrolment, configuration, app control and updates; UEM covers all endpoint types
MAM / MCM Manage just the apps, or the corporate content, rather than the whole device
Device authentication and screen locks Use PIN, password or biometrics, not swipe patterns
Full-device encryption Makes remote wipe meaningful, because recovered data is unreadable
Remote wipe Not guaranteed: a thief can block the signal (SIM removal, Faraday bag)
Lockout Delays or wipes after repeated failures; only works with a real screen lock
Application control / allow listing Deny by default; blocks unknown apps, third-party stores and sideloading
Storage segmentation Separates corporate and personal data so only business data is wiped
Geofencing and location services Enable or disable features by location; beware geotagged media
Context-aware authentication Raises authentication demands for unusual devices or locations

Prohibit rooted or jailbroken devices and unapproved custom firmware; carrier unlocking alone is not a security issue. Test firmware over-the-air updates before managed devices take them, block tethering and personal hotspots on site, avoid SMS as a second factor where better options exist, and guard against SIM cloning.

Deployment models, from least to most organisational control:

Model Who owns it Personal use?
BYOD (bring your own device) Employee Yes; least secure, widest variety of devices
CYOD (choose your own device) Employee, from an approved list Yes
COPE (corporate-owned, personally enabled) Organisation Yes
COBO/COMS (corporate-owned, business only) Organisation No; strongest separation of work and personal data

A deployment policy should settle data ownership and backups, support, patching, required security apps, forensics and device seizure, privacy and monitoring, infrastructure capacity, legal review, acceptable use, cameras and microphones, tethering and contactless payments. VDI or VMI is an alternative that keeps corporate data off the handset.

Essential protection mechanisms

  • Process isolation: each process gets its own memory space, enforced by the OS.
  • Hardware segmentation: the same separation enforced physically; costly, so rare outside national security.
  • Root of trust: the inherently trusted, tamper-resistant starting point (a trust anchor, typically a TPM or HSM) from which all other trust is derived.
  • System security policy: the rules that guide one system’s design, build, testing and maintenance.

Architecture flaws and attacks

  • Covert channels move information along paths never intended for communication, bypassing policy. A timing channel modulates a resource’s behaviour or timing (fan speed, link utilisation); a storage channel writes data where another process can read it (slack space, bad sectors, unallocated space). Detect them through thorough auditing and log analysis.
  • Maintenance hooks (back doors) are developer entry points left in production code; find them through code review and testing.
  • Poor input handling and inadequate testing create exploitable flaws; crashing a program at the moment it holds elevated privilege can hand an attacker that privilege.
  • Rootkits hide deep in the OS by subverting the kernel, drivers or libraries. Watch for changed hashes of system files; the only safe recovery is to sanitise and rebuild from trusted media.
  • Incremental attacks: data diddling makes small, hard-to-spot changes to data (counter with integrity checking and file integrity monitoring); a salami attack skims tiny amounts repeatedly (counter with separation of duties, code control and monitoring of small transactions).

Exam tips

  • For ICS questions, prioritise safety and availability, then isolation.
  • Containers are lighter than VMs because they share the host kernel, which also shares its risks.
  • Edge computing processes on the device; fog computing processes centrally on the local network.
  • Covert timing channels modulate system behaviour; covert storage channels write hidden data.
  • Shared responsibility shifts with the cloud model: the more managed the service, the less you control.
  • When a device can’t be patched or hardened, the answer is usually segmentation and isolation.

Common traps

  • Ring numbers run backwards. Ring 0 is the most privileged.
  • Problem state ≠ error. It simply means user (unprivileged) mode.
  • Secure boot versus measured boot. One blocks unsigned components; the other only records hashes.
  • Edge versus fog. Processing on the device versus processing on a local aggregation point.
  • PLC, DCS and SCADA. Single device, single plant, wide geographic area.
  • Multitasking versus multiprogramming versus multithreading. Rapid switching between processes; batch switching on I/O waits; several threads inside one process.
  • Remote wipe alone isn’t enough. Without encryption, wiped data can often be recovered.
  • Carrier unlocking ≠ rooting. Only rooting and jailbreaking weaken the device’s security model.
  • COPE still mixes data. Only corporate-owned, business-only devices fully separate personal and work use.

Quick revision

  • Shared responsibility: everyone, every supplier, every disclosure.
  • Localisation is about where data lives; sovereignty is about whose law governs it.
  • Rings 0–3 (kernel to apps); process states: ready, running, waiting, supervisory, stopped.
  • ROM family is non-volatile; RAM is volatile; beware remanence, wear levelling and cold boot.
  • TEMPEST/EMSEC countermeasures: Faraday cage, white noise, control zones, shielding.
  • UEFI secure boot prevents; measured boot records in the TPM.
  • Grids leak work packets; P2P lacks central control; DCEs enable lateral movement.
  • ICS: availability and safety first; ISA/IEC 62443 and NIST SP 800-82.
  • IoT, embedded and static systems: segment, change defaults, update manually, monitor, layer controls.
  • Microservices secure their APIs; IaC versions infrastructure; immutable servers are replaced, not changed.
  • Virtualisation risks: host compromise, VM sprawl, VM escape, shadow IT.
  • Mobile: MDM/UEM, encryption plus remote wipe, allow listing, no rooting or sideloading.
  • Deployment models: BYOD, CYOD, COPE, COBO/COMS.
  • Flaws: covert channels, back doors, rootkits, data diddling, salami attacks.

Key terms

Term Definition
Shared responsibility The principle that security duties are spread across staff, suppliers, providers and the wider community
Data sovereignty Data being subject to the laws of the jurisdiction where it is held or created
Protection rings Concentric privilege levels separating the kernel from less trusted code
Data remanence Residual data that survives deletion or formatting
TEMPEST / EMSEC The discipline of preventing compromising electromagnetic emanations
Measured boot Recording hashes of boot components in the TPM for later verification
SCADA Supervisory systems that monitor and control industrial processes across wide areas
Fog computing Central processing on the local network of data collected from many sensors and edge devices
Static system A computing environment designed to remain unchanged and revert after each use
Hypervisor Software that creates, runs and isolates virtual machines
VM escape Code breaking out of a guest VM to reach the host or other guests
Container An isolated application package that shares the host OS kernel
Immutable architecture Replacing rather than modifying deployed servers
Root of trust The inherently trusted hardware or software anchor from which other trust derives
Covert channel An unintended path used to pass information in breach of policy
Salami attack Theft by repeatedly removing very small amounts that individually escape notice

Sources