Docsity

Appunti IoT Security, Dispense di Elementi di Informatica

Toggle sidebar
bg1
IoT SECURITY
ARCHITECTURES, DESIGN, NODE-LEVEL AND COMMUNICATION SECURITY
Complete exam preparation notes
WSN & Architectures · Middleware & Communication · Security Foundations · Secure Design
Node-Level Security & PUF · Lightweight Cryptography · Secure Communications
47 sections in extended discursive form, with protocols reconstructed step by step,
27 original figures, 7 summary tables and 48 exam-style review questions
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36

Anteprima parziale del testo

Scarica Appunti IoT Security e più Dispense in PDF di Elementi di Informatica solo su Docsity!

IoT SECURITY

ARCHITECTURES, DESIGN, NODE-LEVEL AND COMMUNICATION SECURITY

Complete exam preparation notes

WSN & Architectures · Middleware & Communication · Security Foundations · Secure Design Node-Level Security & PUF · Lightweight Cryptography · Secure Communications 47 sections in extended discursive form, with protocols reconstructed step by step, 27 original figures, 7 summary tables and 48 exam-style review questions

Table of Contents

Reading Guide These notes cover the full course syllabus in a self-contained way: every topic is explained in extended prose rather than bullet points, protocols and attacks are reconstructed step by step, and every mechanism is explained together with the reason it exists — which is what oral exams typically probe for. The material is organized into seven parts, meant to be read in sequence but equally usable as a standalone reference during revision. Part I covers IoT fundamentals: WSNs, the M2M/D2D/WoT/CPS architectural evolution, simulation vs. emulation, Petri Nets, sensor node hardware and software platforms, and concurrency models. Part II covers middleware and communication: FIWARE, wireless technologies, RPL routing, publish- subscribe, HTTP/MQTT, and discovery protocols. Part III lays the security foundations: the CIA triad and IAS-octave, GDPR and Privacy by Design, IoT vulnerabilities and attacks, ISO/IEC 27400, STRIDE/LINDDUN threat modelling, and EU legislation (NIS2, CRA). Part IV develops the secure design methodology: design principles, criticality assessment, secure architecture, threat analysis, secure deployment, and validation/sanitization. Part V is dedicated to node-level security: identity, node capture, the UART/I2C/SPI/JTAG interfaces and their exploitation, serial communication protection, and PUF/POK-based key derivation. Part VI covers lightweight cryptography: the security/performance/resource trade-off, lightweight hash/stream/block ciphers, and elliptic curve cryptography. Part VII closes with secure communications: jamming, Wi-Fi security (WEP/WPA/WPA2), Bluetooth and Zigbee security, IPsec/TLS/DTLS, VPNs, secure publish-subscribe, HTTPS, identity management, and trust management. The document closes with two appendices: the first collects seven summary tables for final review (architectural evolution, communication protocols, security frameworks, low-level interfaces, PUF and lightweight cryptography, secure communication protocols by layer, trust and identity models); the second proposes forty-eight exam-style review questions built around the points most commonly tested, each with a reference to the section containing the answer. The twenty-seven figures are original and built to illustrate exactly the point the text is making — from the architectural evolution diagram and Petri net example, through the sensor node scheme, STRIDE/LINDDUN checklists, node capture stages, the PUF challenge-response principle, elliptic curve point addition, jamming patterns, the WPA2 and TLS handshakes, to the trust management models — and can be reproduced by hand on paper during the exam.

Part I — IoT Fundamentals and Architectural Evolution

1. Wireless Sensor Networks A Wireless Sensor Network (WSN) is a collection of spatially distributed, autonomous devices, called nodes, each equipped with one or more sensors, limited processing capability, a radio transceiver and a constrained power source, cooperating to monitor a physical or environmental phenomenon and to relay the collected data, typically towards one or more sink nodes or gateways. WSNs are the historical foundation on which the broader Internet of Things has been built: virtually every architectural and security concept treated later in this course — constrained hardware, multi-hop routing, lossy links, energy-aware protocol design — first emerged as a WSN research problem before being generalized to the wider IoT ecosystem. The defining constraints of a WSN node distinguish it sharply from a conventional networked computer. Energy is the primary constraint: nodes are frequently battery-powered and physically inaccessible after deployment, so every design decision, from the choice of radio duty cycle to the cryptographic primitive used, must be evaluated first and foremost against its energy cost. Computation and memory are similarly constrained, often on the order of kilobytes of RAM and tens to a few hundred kilobytes of program memory, ruling out many algorithms that are taken for granted on general-purpose computers. Communication is unreliable and lossy: wireless links in a WSN suffer from interference, multipath fading and asymmetric connectivity, and protocols must be designed defensively rather than assuming a well-behaved channel. Finally, WSNs are typically deployed at scale, with topologies that must self-organize, since manual configuration of hundreds or thousands of nodes is impractical; this is the origin of the discovery protocols discussed later in this part. 2. Architectural evolution: M2M, D2D, WoT, CPS The Internet of Things did not appear as a single coherent architecture; it evolved through several overlapping paradigms, each addressing limitations of the one before it, and understanding this progression clarifies why the current IoT stack looks the way it does. M2M (Machine-to-Machine). The earliest paradigm, predating the term “IoT” itself: devices communicate directly with a specific counterpart or a centralized server, typically over a dedicated, often proprietary channel (cellular modems, dedicated leased lines, vendor-specific protocols). M2M systems are characterized by vertical silos: a fleet-tracking M2M system and a smart-metering M2M system share almost nothing at the protocol or platform level, even though both connect physical devices to a backend. This lack of interoperability is the central limitation that subsequent paradigms set out to solve. D2D (Device-to-Device). Extends the model by allowing devices to communicate directly with one another, without necessarily routing every interaction through a central server, enabling local autonomy: two devices in physical proximity can coordinate (for instance, a light switch and a lamp) even if the backend connection is temporarily unavailable. D2D reduces latency and backend load and improves resilience, but by itself does not solve the interoperability problem of M2M unless paired with a common communication standard. WoT (Web of Things). Addresses interoperability head-on by applying Web principles and standards (HTTP, REST, URIs, JSON) directly to physical devices: each device or its capability is exposed as a Web resource, addressable and manipulable with the same uniform interface used for any other Web

and scalability, and emulation for late-stage validation of the actual firmware image prior to physical deployment, where exact behavioural fidelity matters more than raw scalability. Neither technique eliminates the need for final testing on real hardware in the real deployment environment, since both necessarily leave out some class of real-world effects (RF interference from the physical installation site, mechanical stress on connectors, and so on).

4. Petri Nets for modelling concurrent IoT behaviour A Petri net is a formal, graphical modelling tool for describing systems that exhibit concurrency, synchronization and resource sharing — exactly the properties that characterize the behaviour of an IoT node or an interacting collection of nodes, which routinely need to sense, process and transmit data as parallel, loosely coordinated activities. A Petri net is a bipartite directed graph composed of places (drawn as circles, representing possible local states or conditions), transitions (drawn as bars or rectangles, representing events or actions), and directed arcs connecting places to transitions and transitions to places. The dynamic state of the system is represented by tokens, which reside in places; a transition is enabled when all of its input places hold at least one token, and firing an enabled transition removes one token from each input place and deposits one token in each output place. The formalism's value for IoT and embedded system design comes from properties that can be proven mathematically on the model before a single line of firmware is written: reachability (can the system ever reach a given, possibly undesirable, state?), boundedness (can the number of tokens, and therefore some resource count, grow without limit, signalling a potential buffer overflow or memory exhaustion?), and liveness (can every transition eventually fire again, or can the system reach a deadlock in which some part of it can never progress?). Applied to a sensor node's firmware, a Petri net can model the interleaving of sensing, buffering, radio transmission and low-power sleep states, exposing race conditions or deadlocks (for instance, a radio transmission that can never complete because the sensing task never releases a shared buffer) that would be difficult to spot by inspecting sequential pseudocode, and it does so before any hardware-specific implementation effort is invested. Figure 2 — A simple Petri net modelling a sense-and-send cycle: places represent states, transitions represent events, tokens represent the current state.

5. Definition of a sensor and the sensor node scheme A sensor, in the strict engineering sense, is a transducer: a device that converts a physical quantity (temperature, light intensity, acceleration, pressure, chemical concentration) into an electrical signal that can subsequently be measured, amplified and digitized. The transduction principle varies enormously by sensor type (resistive, capacitive, piezoelectric, optical), but the functional role is always the same: bridging the analog physical world and the digital processing domain. A complete sensor node, sometimes called a mote, is organized around four functional subsystems that recur, in one form or another, across virtually every IoT platform. The sensing unit comprises the transducer itself together with an Analog-to-Digital Converter (ADC) that samples and quantizes the transducer's continuous electrical output into a discrete digital value the microcontroller can process. The processing unit, built around a microcontroller (MCU) with associated volatile (RAM) and non- volatile (flash) memory, executes the node's firmware: reading sensors, running any local processing or filtering, managing power states, and driving the communication stack. The communication unit, typically a radio transceiver, handles the wireless exchange of data with neighbouring nodes or a gateway, and is very often the single largest consumer of energy on the node, which is why radio duty- cycling is a central concern in WSN protocol design. The power unit supplies energy to the other three subsystems, most commonly from a battery, though energy harvesting (solar, vibration, thermal gradient) is increasingly used to extend or eliminate the need for battery replacement in inaccessible deployments. Figure 3 — Functional scheme of a sensor node: sensing, processing, communication, and power subsystems. 6. Hardware platforms and the analog-digital distinction The choice of hardware platform for an IoT node reflects a trade-off between capability, power consumption, and cost, and platforms are broadly classified by the processing core they use. Microcontroller-based platforms (built around 8-, 16-, or 32-bit MCUs such as the ATmega, MSP430 or ARM Cortex-M families) dominate the constrained end of the spectrum: low cost, low power consumption often in the microwatt-to-milliwatt range in sleep or active states respectively, but with limited computational throughput and memory, making them the natural target for the lightweight cryptography and embedded security techniques covered later in this course. Single-board computer platforms (such as the Raspberry Pi family) sit at the opposite end, running full operating systems (typically embedded Linux) with orders of magnitude more processing power and memory, at correspondingly higher power draw and cost, and are typically used as gateways or edge-processing nodes rather than as the constrained leaf nodes of a sensor network. Application-specific platforms, including System-on-Chip (SoC) designs that integrate an MCU core with an RF transceiver and often

or above) that rule them out for the smallest sensor nodes, confining their use to gateways and more capable edge devices.

8. Concurrency models Because a sensor node must routinely juggle several logically independent activities — sampling a sensor, running a communication protocol stack, responding to an external interrupt, entering and leaving low-power sleep states — the choice of concurrency model has a direct impact on responsiveness, energy consumption, code complexity and, as will become relevant later in this course, the attack surface exposed by timing-dependent behaviour. Run-to-completion / event-driven model. The simplest model, used by platforms like TinyOS: a single execution context processes events (interrupts, timer expirations, message arrivals) one at a time, each event handler running to completion before the next one is dispatched, with no preemption between handlers. This eliminates most classical concurrency bugs (race conditions on shared data, since only one handler executes at any instant) at the cost of responsiveness: a long-running handler blocks the entire system, including time-critical events, until it completes, forcing careful discipline to keep every handler short. Preemptive multitasking. Used by most constrained RTOS platforms: multiple tasks are assigned priorities, and the scheduler can interrupt (preempt) a lower-priority task to immediately run a higher- priority one that has become ready, improving responsiveness for time-critical operations (a hard real- time deadline can be met even if a lower-priority task is mid-execution) at the cost of reintroducing classical concurrency hazards — race conditions on data shared between tasks, and priority inversion, in which a high-priority task is indirectly blocked by a lower-priority one holding a resource it needs — that must be managed with synchronization primitives such as mutexes and semaphores. Multithreading with shared memory. The model most familiar from general-purpose computing, available on more capable IoT platforms (embedded Linux gateways): multiple threads of execution share the same address space and can communicate directly through shared variables, offering high flexibility and, on multi-core hardware, genuine parallelism, at the cost of the highest exposure to concurrency bugs and the highest memory and context-switching overhead of the three models, generally making it impractical on the most constrained microcontroller-class nodes. The choice of concurrency model is rarely purely a performance decision: it is also, if implicitly, a security decision, because race conditions and improperly synchronized shared state are a recurring root cause of exploitable vulnerabilities in embedded firmware, a theme that will resurface when this course examines node capture and low-level communication exploitation. Figure 4 — Three concurrency models for constrained devices: run-to-completion, preemptive scheduling, and shared- memory multithreading.

Part II — Middleware and Communication

9. Middleware for IoT systems Middleware is the software layer interposed between the heterogeneous population of physical devices at the bottom of an IoT deployment and the applications that consume their data at the top, and its purpose is precisely to absorb heterogeneity: different sensor types, different communication protocols, different data formats and different vendors should not each require a bespoke integration effort from every application that wants to use their data. A well-designed IoT middleware provides, at minimum, device abstraction (a uniform programming interface regardless of the underlying hardware or protocol), data aggregation and normalization (translating disparate data formats into a common internal representation), and often additional services such as context management, event processing, and service discovery. The architectural benefit of inserting a middleware layer is best understood by contrasting it with the alternative: without middleware, every application that needs data from N different device types over M different protocols must implement N × M integration paths; with a middleware layer that abstracts devices behind a uniform interface, the same task requires only N + M integration efforts (each device type integrates once with the middleware, each application integrates once with the middleware), a reduction that becomes decisive as the number of device types and applications grows, which is precisely the trajectory of real-world IoT deployments. Figure 5 — A layered IoT architecture: middleware decouples heterogeneous devices from the applications that consume their data. 10. FIWARE FIWARE is an open-source platform and standardized set of APIs, originated as a European Union- funded initiative, designed to accelerate the development of smart applications across domains such as smart cities, agriculture, and industry, by providing a common, reusable set of components (referred to as Generic Enablers) rather than requiring every project to build its context-management infrastructure from scratch. The architectural centerpiece of FIWARE is the Context Broker (the reference implementation being Orion), which implements the NGSI (Next Generation Service Interfaces) data model and API. In this model, every real-world entity of interest — a sensor, a parking space, a vehicle, a room — is represented as a context entity with a unique identifier, a type, and a set of attributes that carry its current state; applications interact with the Context Broker to register entities, update their attribute

(a proxy for link reliability), hop count, or residual energy, depending on which quantity the deployment prioritizes. Nodes join the DODAG by listening for DIO (DODAG Information Object) control messages broadcast by nodes already in the graph, and the graph structure is maintained and repaired dynamically as link quality changes or nodes join and leave, using a trickle timer algorithm that adapts the frequency of control message transmission to network stability — sending control messages frequently when the topology is changing and rapidly ramping down transmission frequency once the network stabilizes, precisely to conserve the energy budget that is the central constraint identified in section 1. Beyond RPL, IoT routing more broadly distinguishes between flat routing (every node plays an equivalent role, as in RPL) and hierarchical or clustering-based routing (nodes are organized into clusters with designated cluster-heads that aggregate and forward data on behalf of their cluster, reducing the number of nodes that must maintain long-range routing state and often reducing overall energy consumption through in-network data aggregation), a distinction that recurs in the broader WSN literature under protocol families such as LEACH.

13. Publish-Subscribe services and subscription types The publish-subscribe (pub-sub) pattern is an asynchronous messaging paradigm in which publishers, the entities that produce data, and subscribers, the entities that consume it, are decoupled from one another through an intermediary, the broker (or, in some architectures, an event bus), and it is the dominant communication pattern in IoT systems precisely because it matches the many-producers, many-consumers, intermittently-connected nature of a typical deployment far better than a direct point-to-point connection model would. The decoupling that makes pub-sub valuable operates along three independent dimensions, worth distinguishing precisely because each addresses a different practical problem in IoT deployments. Space decoupling means publishers and subscribers do not need to know each other's network address or even existence; they only need to agree on the broker and the topic (or channel) of interest, which is what allows a sensor manufacturer's firmware and an unrelated application developer's code to interoperate without either ever being aware of the other's implementation details. Time decoupling means publishers and subscribers do not need to be simultaneously online; a broker can buffer messages (subject to its own resource constraints) for a subscriber that reconnects later, which is essential given the intermittent connectivity typical of battery-powered or duty-cycled IoT devices. Synchronization decoupling means the act of publishing does not block waiting for subscribers to process the message, unlike a synchronous request-response exchange, which matters because an IoT device with no display and no user waiting for an immediate answer has no reason to pay the latency and energy cost of a blocking call. Topic-based subscription. Subscribers register interest in named topics (often organized hierarchically, such as building/floor2/room5/temperature), and receive every message published to a topic they have subscribed to; simple to implement and to reason about, and the model adopted by MQTT (section 14). Content-based subscription. Subscribers specify filters over the actual content or attributes of messages (for instance, temperature readings above a numeric threshold), regardless of which topic they were published under; more expressive and more precisely tailored to application needs, but computationally more demanding for the broker to evaluate against every incoming message.

Type-based subscription. Subscribers register interest based on the data type or schema of messages (for instance, all messages that are instances of a TemperatureReading structure), a model more common in strongly-typed middleware and enterprise service buses than in typical resource- constrained IoT deployments. Figure 6 — The publish-subscribe pattern: publishers and subscribers are decoupled in space, time and synchronization through a broker.

14. HTTP and MQTT HTTP (Hypertext Transfer Protocol) and MQTT (Message Queuing Telemetry Transport) represent the two dominant, and architecturally opposite, communication paradigms available to IoT application designers, and the choice between them is one of the most consequential early design decisions in any IoT system. HTTP follows a synchronous, request-response model: a client sends a request to a server and blocks (conceptually, if not always literally) waiting for a response before proceeding. HTTP is text-based, using human-readable headers and, typically, JSON or XML payloads, which aids debuggability and interoperability with the vast existing ecosystem of Web tooling, but imposes non-trivial overhead per message: headers alone can amount to hundreds of bytes even for a payload of a few bytes of actual sensor data, a cost that is negligible for a conventional Web browser but can be significant for a constrained device transmitting small payloads over a low-bandwidth, energy-constrained radio link. MQTT was designed from the outset for exactly this constrained scenario, and its design choices are best understood as direct responses to the shortcomings of HTTP in that context. It follows the publish- subscribe pattern described in the previous section, routing all messages through a broker rather than requiring direct client-server round-trips. Its header is compact and binary rather than text-based, with a fixed minimum overhead of just two bytes, dramatically reducing per-message cost compared to HTTP. It offers three Quality of Service (QoS) levels that let the application explicitly trade delivery guarantees against overhead: QoS 0 (at most once, fire-and-forget, no acknowledgment), QoS 1 (at least once, acknowledged but possibly duplicated), and QoS 2 (exactly once, using a four-way handshake that guarantees neither loss nor duplication at the cost of additional round trips). It also supports a Last Will and Testament mechanism, in which a client registers a message with the broker to be published automatically if the client disconnects ungracefully, providing a built-in mechanism for the broker (and therefore other subscribers) to detect node failure without requiring an explicit heartbeat protocol. The practical consequence of these design differences is a clear, if not absolute, division of labour: HTTP (and its RESTful conventions) remains the natural choice when a synchronous request-response interaction is genuinely required, or when interoperability with generic Web infrastructure is the

Part III — IoT Security Foundations

16. The CIA triad and the IAS-octave The CIA triad — Confidentiality, Integrity, Availability — is the classical foundation of information security, and every threat, vulnerability and countermeasure discussed in the rest of this course can, at some level, be mapped back to which of these three properties it threatens or protects. Confidentiality means information is disclosed only to authorized parties; a sensor reading intercepted by an eavesdropper on an unencrypted radio link is a confidentiality breach. Integrity means information (and system state more generally) is not modified by unauthorized parties, or is modified only in detectable ways; an attacker injecting falsified sensor readings, or silently altering firmware in transit, is an integrity breach. Availability means authorized parties can access information and services when needed; a jamming attack that prevents a node from transmitting, or a denial-of-service flood against a gateway, is an availability breach. The CIA triad, while foundational, was developed for general information systems and does not fully capture properties that matter specifically in IoT and cyber-physical contexts, where devices interact with the physical world and often operate with weak or no centralized identity management. The IAS- octave (sometimes presented as an extension built around Information Assurance and Security) enriches the triad into eight properties: alongside confidentiality, integrity and availability, it adds authenticity (the assurance that a message or device genuinely originates from the claimed source, distinct from confidentiality since an authentic message could still be sent in plaintext), accountability (the ability to trace actions back to the responsible entity), auditability (the existence of records sufficient to reconstruct what happened, a prerequisite for the digital forensics discussed in section 18), non-repudiation (the inability of an entity to credibly deny having performed an action, particularly relevant once digital signatures are introduced in later parts of this course), and trustworthiness (a broader, often composite property capturing the overall confidence that a device or system will behave as expected). This expanded model is a more accurate lens for IoT security requirements precisely because IoT systems routinely involve many autonomous, loosely-identified devices for which authenticity and accountability are, in practice, at least as critical a concern as raw confidentiality. Figure 8 — The classical CIA triad extended into the eight properties of the IAS-octave model.

17. GDPR and the principles of Privacy by Design Because IoT deployments routinely collect data about identifiable individuals — location, activity patterns, biometric or health signals, energy usage that reveals occupancy — they fall squarely within the scope of the General Data Protection Regulation (GDPR, Regulation (EU) 2016/679) whenever they process personal data of individuals in the European Union, regardless of where the processing entity is established. The core principles established by GDPR Article 5 — lawfulness, purpose limitation, data minimization, accuracy, storage limitation, integrity and confidentiality, and accountability — apply to IoT data exactly as they apply to any other personal data, but IoT raises the stakes on several of them: data minimization is harder to honour when a sensor is physically capable of capturing far more than the application strictly needs (a smart camera deployed for occupancy counting can also capture identifiable faces), and storage limitation is harder to enforce across the highly distributed storage typical of edge and cloud IoT architectures. Privacy by Design, formally codified as a legal obligation in GDPR Article 25, requires that data protection be embedded into the design of a system from the outset, rather than added as an afterthought once the architecture is fixed. The concept, originally articulated by Ann Cavoukian, rests on seven foundational principles that map directly onto IoT architectural decisions covered elsewhere in this course. Proactive not reactive means anticipating privacy risks during the architecture and threat-modelling phase discussed in Part IV, not after a breach. Privacy as the default setting means a device should, out of the box, collect and share the minimum data necessary, echoing the privacy- protective default posture that recurs across the regulatory material later in this course. Privacy embedded into design means privacy-preserving mechanisms are a structural part of the system (encryption, access control, data minimization at the sensing layer itself) rather than a bolt-on compliance layer. Full functionality (positive-sum, not zero-sum) means privacy protections should be pursued without unnecessarily sacrificing the legitimate functionality of the system, avoiding a false trade-off between usability and privacy. End-to-end security means protection is maintained across the entire lifecycle of the data, from collection at the sensor through transmission, processing and eventual deletion — directly connecting to the secure communications protocols covered in Part VII. Visibility and transparency means the actual data practices of a system should be open to independent verification, not merely asserted in a privacy policy. Respect for user privacy means keeping the interests of the individual paramount, including through strong default privacy settings, clear notice, and user-friendly controls. Figure 9 — The seven foundational principles of Privacy by Design (Cavoukian), now a legal requirement under GDPR Article 25.

layer, attacks include injection attacks against poorly validated inputs reaching backend services, compromise of the message broker itself (a single point of failure in many pub-sub deployments, per Part II), and exploitation of weak or unauthenticated APIs. At the application layer, attacks include exploitation of weak authentication, insecure default configurations, and logic flaws in the application built on top of the IoT data. Digital forensics is the discipline of collecting, preserving, and analyzing digital evidence in a manner that is scientifically sound and legally defensible, and IoT introduces forensic challenges distinct from conventional computer forensics. Volatility is a first-order concern: much IoT-relevant evidence exists only transiently in volatile RAM (session keys, in-flight sensor readings, network state) and is lost the instant a device loses power or is reset, meaning forensic response frequently cannot wait for a formal, deliberate collection procedure the way disk forensics on a powered-down server can. Distribution and fragmentation compound the problem: evidence of a single incident is typically scattered across the compromised device itself, one or more gateways, a message broker, and cloud backend logs, each under different administrative control, retention policy and, often, jurisdiction. Proprietary and heterogeneous formats mean there is rarely a standard, well-documented file system or logging format to rely on, unlike the mature tooling available for conventional operating systems, often forcing investigators to reverse-engineer a specific device's storage layout before any analysis of content can begin. Limited on-device logging, a direct consequence of the resource constraints from section 18, means many devices simply do not retain the kind of audit trail that would make attribution straightforward, reinforcing the direct dependency of digital forensic capability on the auditability property introduced as part of the IAS-octave in section 16: a device or system designed without auditability in mind is, by construction, difficult or impossible to investigate after an incident.

20. ISO/IEC 27400: ISO/IEC 27400:2022 is an international standard, part of the broader ISO/IEC 27000 family of information security management standards, that provides guidelines specifically for IoT security and privacy. Its purpose is to give organizations a structured, internationally recognized framework for identifying and addressing the IoT-specific risks introduced in sections 18 and 19, rather than forcing them to adapt generic IT security guidance that does not account for the structural differences of IoT systems. The standard identifies IoT-specific security and privacy properties and risk sources that extend beyond a conventional IT risk assessment, explicitly covering the physical exposure of devices, the heterogeneity of the IoT ecosystem, and the involvement of multiple stakeholders across a device's lifecycle (manufacturer, integrator, operator, end user), each of whom may bear different security responsibilities that must be clearly delineated for the system as a whole to be secure. It provides guidance structured around the IoT lifecycle — from the design and development phase, through deployment and operation, to eventual decommissioning — reflecting the recognition, echoed throughout this course, that IoT security cannot be treated as a single deployment-time checklist but must be addressed continuously across a device's often very long operational life (section 18). Practically, ISO/IEC 27400 is most useful as a mapping and gap-analysis tool: an organization can use it to verify that its existing security management system (typically built around the general-purpose ISO/IEC 27001) adequately covers the IoT-specific risks the standard identifies, filling gaps with the standard's more specific IoT guidance rather than replacing existing information security governance altogether.

21. STRIDE and LINDDUN threat modelling frameworks Threat modelling is the structured process of systematically identifying, prior to (or during) system design, what could go wrong and how, so that countermeasures can be designed in rather than retrofitted — the practical embodiment of the “proactive not reactive” Privacy by Design principle from section 17. STRIDE and LINDDUN are the two most widely used structured frameworks for this purpose, and they are complementary rather than competing: STRIDE targets security threats, LINDDUN targets privacy threats, and a thorough IoT threat model typically applies both. STRIDE, developed at Microsoft, organizes security threats into six categories, each named so that the acronym doubles as a checklist. Spoofing is illegitimately claiming another entity's identity (a rogue device impersonating a legitimate sensor, directly connecting to the authenticity property of the IAS- octave). Tampering is unauthorized modification of data or code (falsifying a sensor reading in transit, or altering firmware, directly threatening integrity). Repudiation is the ability of an entity to deny having performed an action when no adequate evidence exists to the contrary (violating the non- repudiation property, and directly relevant to the forensic evidence challenges of section 19). Information disclosure is exposure of information to unauthorized parties (a confidentiality violation, such as eavesdropping on an unencrypted channel). Denial of service is degrading or blocking legitimate access to a system or resource (an availability violation, exemplified by the jamming attacks covered in Part VII). Elevation of privilege is gaining capabilities beyond those legitimately granted (for instance, exploiting a low-level debug interface, per Part V, to obtain full control of a device that should only expose a restricted sensing function). Applied systematically, STRIDE is typically walked through against each element and each data flow of a system's architecture diagram, asking, for every element, which of the six threat categories could plausibly apply to it. LINDDUN, developed at KU Leuven, applies the same systematic, per-data-flow methodology but to privacy threats rather than security threats, and its seven categories are correspondingly different in character. Linkability is the ability to link two or more items of interest (for instance, two separate sensor readings, or two sessions) as related to the same individual, even without directly identifying that individual. Identifiability is the ability to identify an individual from a set of items of interest, a stronger threat than mere linkability. Non-repudiation, in the privacy context, is somewhat counterintuitively listed as a threat rather than a goal, because the ability to prove an individual performed a particular action can itself be a privacy violation if that individual had a legitimate interest in remaining unlinked from the action. Detectability is the ability to distinguish whether an item of interest exists at all, even without learning its content (for instance, detecting that a specific individual's device is present in a location, without reading any of its actual data). Disclosure of information is unauthorized access to the actual content of personal data (overlapping conceptually with STRIDE's information disclosure, but assessed here specifically against privacy harm rather than general confidentiality). Unawareness is insufficient information, understanding, or control given to an individual over how their personal data is processed, directly connecting to the transparency principle of Privacy by Design from section 17. Non-compliance is a mismatch between actual data processing practices and stated policies, standards, or legal requirements such as GDPR. Because IoT devices routinely generate data about identifiable individuals through sensing (section 18) while simultaneously suffering from weak security postures, applying LINDDUN alongside STRIDE during the design of any IoT system that touches personal data is considered good practice, and is a direct, practical link between the technical vulnerability landscape of this part and the regulatory obligations of section 17.