Skip to content
BCA-306N · Internet of Things
Unit 4

Cloud Storage Models and IoT Security

Sign in to save
Unit 4 Learning Hub

Cloud Storage Models and IoT Security

1. Executive Summary & Syllabus Blueprint

1. Executive Summary & Syllabus Blueprint

Security represents the Achilles' heel of the Internet of Things. Billions of resource-constrained, geographically distributed nodes operate unattended with weak physical security, unpatched firmware, and default credentials. This unit covers the complete security spectrum: physical, communication, and cloud attack surfaces; the OWASP IoT Top 10 vulnerabilities; real-world botnet forensics (Mirai); lightweight block and stream ciphers (PRESENT, CLEFIA, ASCON); hardware-based security primitives (Hardware Root of Trust, Secure Boot, TPM, PUF); and Zero Trust security architectures.

✓Topic 1 covered: 1. Executive Summary & Syllabus Blueprint
Next: 2. Comprehensive Core Theoretical Architecture & In-Depth Concept Decomposition↓

2. Comprehensive Core Theoretical Architecture & In-Depth Concept Decomposition

2. Comprehensive Core Theoretical Architecture & In-Depth Concept Decomposition

2.1 The IoT Security Attack Surface Spectrum

IoT deployments feature three distinct, interconnected attack planes:

System Architecture / Concept DiagramHorizontal Scroll Enabled
+------------------------------------------------------------------------+
|                          IoT ATTACK PLANES                             |
+------------------------------------------------------------------------+
| 1. DEVICE / PHYSICAL PLANE                                             |
|    - JTAG / UART Debug Port Snooping & Shell Spawning                  |
|    - Side-Channel Attacks (Differential Power Analysis, EM Radiation)  |
|    - Flash Memory Desoldering & Firmware Extraction                    |
|    - Physical Tampering, Glitching & Fault Injection                   |
+------------------------------------------------------------------------+
| 2. NETWORK / COMMUNICATION PLANE                                       |
|    - Man-in-the-Middle (MitM) Eavesdropping over Unencrypted Protocols|
|    - Replay Attacks & Message Tampering                                |
|    - 802.15.4 / BLE Packet Injection & Rogue Base Station Spoofing     |
|    - Distributed Denial of Service (DDoS) & Radio Jamming              |
+------------------------------------------------------------------------+
| 3. CLOUD & APPLICATION PLANE                                           |
|    - Insecure Web Management Interfaces & API Vulnerabilities          |
|    - Weak Cloud Authentication & Hardcoded API Tokens                  |
|    - Compromised Over-the-Air (OTA) Firmware Upgrade Pipelines         |
|    - Insecure Mobile Companion App Permissions                         |
+------------------------------------------------------------------------+

2.2 OWASP Top 10 IoT Vulnerabilities (2018/2024 Reference Standard)

  1. Weak, Guessable, or Hardcoded Passwords: Use of easily discoverable or unchangeable default credentials (e.g., admin:admin, root:xc3511).
  2. Insecure Network Services: Unnecessary, vulnerable network daemons running on the device exposed to the Internet (e.g., unauthenticated Telnet, UPnP, FTP).
  3. Insecure Ecosystem Interfaces: Vulnerabilities in web, API, cloud, or mobile interfaces outside the device (e.g., lack of authentication or input sanitization).
  4. Lack of Secure Update Mechanism: Inability to securely update firmware (lack of cryptographic signature verification, anti-rollback checks, or encrypted delivery).
  5. Use of Insecure or Outdated Components: Outdated third-party software libraries or RTOS kernels containing known public CVE vulnerabilities.
  6. Insufficient Privacy Protection: User Personal Identifiable Information (PII) stored on device or in cloud without encryption.
  7. Insecure Data Transfer and Storage: Plaintext transmission of sensitive telemetry (HTTP, cleartext MQTT) and lack of encryption at rest.
  8. Lack of Device Management: Inability to monitor security posture, track inventory, or decommission assets across fleets.
  9. Insecure Default Settings: Devices shipping with insecure default configurations or lacking permissions hardening.
  10. Lack of Physical Hardening: Unprotected hardware debug ports (UART, JTAG) permitting local shell access and firmware extraction.

2.3 Forensics of the Mirai Botnet Architecture

In autumn 2016, the Mirai botnet executed the largest DDoS attack in history (1.2 Tbps), taking down major DNS provider Dyn and crippling Twitter, GitHub, Netflix, and Airbnb.

  • Infection Vector: Mirai continuously scanned the entire IPv4 address space on TCP ports 23 (Telnet) and 2323.
  • Brute-Force Dictionary: Mirai utilized a hardcoded dictionary table of only 62 default username/password pairs used by mass-manufactured IP cameras and routers.
  • Process Memory Camouflage: Once infected, Mirai deleted its own executable binary from disk, residing entirely in volatile RAM, and killed existing competitive malware processes.
  • Attack Execution: Controlled via Command and Control (C2) servers to launch SYN floods, UDP floods, and DNS amplification attacks.

2.4 Lightweight Cryptography for Constrained IoT Devices

  • PRESENT (ISO/IEC 29192-2): An ultra-lightweight Substitution-Permutation Network (SPN) block cipher with a 64-bit block size and 80-bit or 128-bit key. It requires only ~1570 Gate Equivalents (GE).
  • CLEFIA (ISO/IEC 29192-2): A lightweight 128-bit block cipher developed by Sony using a 4-branch generalized Feistel network.
  • ASCON (NIST Lightweight Cryptography Standard - 2023 Winner):
  • Designed for Authenticated Encryption with Associated Data (AEAD) and hashing.
  • Sponge construction using a 320-bit state permutation.
  • Built-in resistance against side-channel timing attacks; ideal for low-cost IoT nodes.

2.5 Hardware Security: Hardware Root of Trust and Secure Boot

  • Hardware Root of Trust (RoT): An inherently trusted silicon subsystem containing an immutable cryptographic public key hash, unique device secret key, and cryptographic engine (e.g., Microchip ATECC608A, ESP32 eFuse).
  • Secure Boot Chain: Cryptographically authenticates every stage of the boot sequence. If any binary's signature does not match the public key permanently burned into eFuses, the hardware halts execution, preventing malicious firmware flashing.
  • Physically Unclonable Functions (PUF): Utilizes sub-micron manufacturing variations in silicon transistors (e.g., SRAM startup state bi-stability) to generate an unpredictable, immutable, device-unique cryptographic key that is never stored in non-volatile flash.
✓Topic 2 covered: 2. Comprehensive Core Theoretical Architecture & In-Depth Concept Decomposition
Next: 3. Section A: Short Answer Question Bank (10 Questions x 2 Marks)↓

3. Section A: Short Answer Question Bank (10 Questions x 2 Marks)

3. Section A: Short Answer Question Bank (10 Questions x 2 Marks)

The primary attack vector exploited by the Mirai botnet

Ans. Mirai exploited exposed, unauthenticated Telnet services (TCP ports 23 and 2323) on Linux-based IoT devices (CCTV cameras, DVRs, home routers) by executing automated dictionary brute-force attacks against a table of 62 known default factory credentials.

What is the fundamental difference between Symmetric and Asymmetric Cryptography

Ans. Symmetric cryptography uses a single shared secret key for both encryption and decryption (e.g., AES, PRESENT); it is computationally fast and lightweight. Asymmetric cryptography uses a mathematically related key pair (Public/Private Key, e.g., RSA, ECC); it is computationally intensive but solves the key-distribution problem.

The function of an eFuse array in the ESP32 security architecture

Ans. An eFuse is a one-time programmable (OTP) non-volatile memory array. In the ESP32, physical microscopic fuses are electrically vaporized (blown) during factory provisioning to permanently store the 256-bit AES Flash Encryption key, enable Secure Boot, and permanently disable hardware JTAG debug access to prevent physical hacking.

What is a Man-in-the-Middle (MitM) attack in IoT networks

Ans. An attack where an adversary silently intercepts, inspects, and potentially alters communication frames passing between two unsuspecting IoT nodes due to the absence of mutual cryptographic authentication or unencrypted transport.

What is Side-Channel Analysis (SCA)

Ans. An attack technique that extracts cryptographic private keys by measuring physical phenomena emitted during silicon execution, such as variations in power consumption (Differential Power Analysis - DPA), electromagnetic radiation, or microsecond clock timing variations.

Authenticated Encryption with Associated Data (AEAD)

Ans. A cryptographic scheme (such as ASCON or AES-GCM) that simultaneously provides data confidentiality (encryption), data integrity (tamper detection), and authenticity verification for both the encrypted ciphertext and unencrypted associated metadata.

What is a Replay Attack and how is it mitigated in IoT protocols

Ans. A replay attack occurs when an attacker intercepts a valid transmission and retransmits it later to duplicate the authorized action. It is mitigated by incorporating cryptographically hashed nonces, incrementing monotonic sequence counters, or synchronized timestamps into every frame.

What is the role of a Trusted Platform Module (TPM)

Ans. A TPM (ISO/IEC 11889) is a dedicated secure hardware cryptoprocessor that securely generates, stores, and manages cryptographic keys, measures boot-state platform integrity (Platform Configuration Registers - PCRs), and facilitates remote hardware attestation.

The principle of Zero Trust Architecture in IoT

Ans. Zero Trust enforces the axiom: "Never trust, always verify." It eliminates perimeter-based security; every device, user, and network packet must be dynamically authenticated, authorized, and end-to-end encrypted before gaining access to any network resource.

What is meant by Anti-Rollback protection in firmware updates

Ans. A hardware or cryptographic mechanism using monotonic hardware counters that prevents an attacker from maliciously flashing an older, legitimate, but known-vulnerable signed firmware version onto a device to exploit a patched flaw.

✓Topic 3 covered: 3. Section A: Short Answer Question Bank (10 Questions x 2 Marks)
Next: 4. Section B: Analytical, Derivational & Procedural Question Bank (5 Questions x 5 Marks)↓

4. Section B: Analytical, Derivational & Procedural Question Bank (5 Questions x 5 Marks)

4. Section B: Analytical, Derivational & Procedural Question Bank (5 Questions x 5 Marks)

Analyze the OWASP IoT Top 10 vulnerabilities and formulate engineering countermeasures

Ans.

  1. Weak Passwords: Enforce unique, randomized per-device factory passwords; mandate change on first boot.
  2. Insecure Network Services: Disable unauthenticated daemons by default; close all listening ports; use outbound-only MQTT/TLS.
  3. Insecure Update Mechanism: Mandate ECDSA/RSA asymmetric digital signature verification and anti-rollback monotonic counters.
  4. Insecure Data Transfer: Enforce TLS 1.3 with AES-128/256-GCM encryption on all transport layers; reject plaintext ports.
  5. Lack of Physical Hardening: Physically disable JTAG/UART traces on production PCB layouts or blow MCU eFuses to disable debug logic.

The architectural mechanics, lifecycle, and security controls of Over-the-Air (OTA) Firmware Updates

Ans.

  1. Developer signs binary hash with private OEM key: Signature = Sign(K_priv, SHA-256(firmware)).
  2. Device downloads binary to secondary flash partition (OTA_1).
  3. Device verifies signature using embedded public key: Verify(Kpub, Signature) == SHA-256(OTA1_Binary).
  4. Anti-rollback check: New version > Current version.
  5. Bootloader sets OTA_1 as active boot partition and reboots.
  6. Diagnostic self-test executes; if watchdog fails, bootloader automatically reverts to stable OTA_0.

Compare Elliptic Curve Cryptography (ECC) with RSA for constrained IoT microcontrollers

Ans.

  • A 256-bit ECC key provides equivalent security strength to a 2048-bit RSA key.
  • Key storage is 32 bytes (ECC) vs 256 bytes (RSA).
  • Digital signature size is 64 bytes (ECDSA) vs 256 bytes (RSA).
  • ECC requires drastically lower RAM memory, less CPU cycles, and accelerates battery-friendly handshakes.
✓Topic 4 covered: 4. Section B: Analytical, Derivational & Procedural Question Bank (5 Questions x 5 Marks)
Next: 5. Section C: Comprehensive Long Answer Question Bank (3 Questions x 10-15 Marks)↓

5. Section C: Comprehensive Long Answer Question Bank (3 Questions x 10-15 Marks)

5. Section C: Comprehensive Long Answer Question Bank (3 Questions x 10-15 Marks)

Provide an exhaustive security forensic analysis of the Mirai Botnet. Detail its scanning architecture, brute-force dictionary attack, process camouflage, C2 communication, and DDoS attack vectors

Ans.

1. Mirai Architecture

Mirai infected over 600,000 embedded devices by scanning IPv4 for open Telnet ports (23 and 2323) using a list of 62 factory default username/password combinations. Once infected, it unlinked its binary from the filesystem to exist strictly in volatile RAM, evaded process listing, and waited for commands from C2 servers to launch multi-gigabit SYN floods, UDP floods, and DNS amplification attacks.

2. Defense Framework

  • Elimination of default credentials via legislative standards (unique factory passwords).
  • Microsegmentation via VLANs.
  • Hardware Root of Trust and Secure Boot to prevent running unauthorized code.

Design an end-to-end Zero Trust Security Architecture for an Enterprise Industrial IoT (IIoT) ecosystem

Ans.

  • Mutual TLS (mTLS 1.3): Bidirectional authentication where both the client and server present X.509 certificates issued by an intermediate enterprise CA.
  • Hardware Secure Element (ATECC608A): Private keys are generated inside the tamper-resistant hardware and cannot be read out by software.
  • Least Privilege Access: IoT policies restrict each device to specific publish/subscribe topic namespaces.

Provide an in-depth comparative exposition of Lightweight Cryptography (LWC). Analyze the ASCON cipher family and evaluate hardware performance metrics against AES

Ans.

1. NIST Lightweight Cryptography Standard: ASCON

ASCON operates on a 320-bit internal state sponge construction divided into 5 words of 64 bits each. It provides Authenticated Encryption with Associated Data (AEAD) and hashing in ~2,100 Gate Equivalents, offering native protection against side-channel timing analysis and requiring far less silicon area than traditional AES-128.

✓Topic 5 covered: 5. Section C: Comprehensive Long Answer Question Bank (3 Questions x 10-15 Marks)
Next: 6. High-Yield Exam Revision Matrix & Architectural Cheat Sheet↓

6. High-Yield Exam Revision Matrix & Architectural Cheat Sheet

6. High-Yield Exam Revision Matrix & Architectural Cheat Sheet

Threat / TechnologyArchitectural ClassificationKey Formula / MetricHigh-Yield Exam Takeaway
Mirai BotnetDistributed Denial of ServiceTCP Ports 23 / 2323Scanned IPv4 for 62 default credentials on BusyBox Linux IoT devices.
OWASP IoT #1Vulnerability StandardWeak/Default Passwords#1 vulnerability in IoT; mitigated by mandatory unique per-device credentials.
Secure BootHardware SecurityCryptographic Chain of TrustVerifies digital signatures at every stage of boot; halts if signature fails.
Hardware RoTRoot of TrustImmutable silicon eFuse/ROMPermanent silicon anchor storing public key hash and device unique secret.
PUFPhysical Silicon SecuritySRAM Startup Bi-stabilityDerives uncloneable private keys from micro-variations; key disappears on power off.
PRESENT CipherLightweight Block Cipher64-bit block, 31 rounds, ~1570 GEUltra-low hardware gate count; permutation layer requires zero logic gates.
ASCONNIST LWC Standard (2023)320-bit state, Sponge AEADOfficial NIST standard for lightweight authenticated encryption in IoT.
mTLS 1.3Transport Layer SecurityBidirectional X.509 certsBoth client and server verify cryptographic identity before exchanging data.
Zero TrustSecurity Architecture"Never trust, always verify"Eliminates implicit perimeter trust; mandates microsegmentation & auth.
Practice Ready

Ready to practice Unit 4?

You've read the core concepts. Take the balanced 10-question practice set to test your mastery!

Save progress