w6 authentication IoT Authentication and Access Control

Learning Objectives and the Role of Identity

  • Goal of the Lecture: By the end of this session, participants will be able to explain the four-layer IoT architecture, distinguish between authentication and access control, compare various authentication factors (single, two, and multi-factor), describe six authentication mechanisms (Passwords, Biometrics, 2FA, PKI, OAuth, Lightweight Crypto), explain five access control models (RBAC, ABAC, MAC, DAC, ZTAC), and describe enforcement through AAA protocols and cryptographic techniques.

  • Connection to Week 5: While Week 5 focused on IoT privacy labels (what a device collects and whether users understand those disclosures), Week 6 goes a layer deeper. It addresses how a device decides who is allowed to connect and what they are permitted to do once connected. Privacy labels inform; authentication and access control enforce.

  • Section Breakdown:

    • Section 1: Architecture and Threats.

    • Section 2: Authentication.

    • Section 3: Access Control.

  • The Defender Takeaway on Identity Definitions:

    • Authentication answers: "Is this identity who it claims to be?"

    • Access Control answers: "What is this verified identity allowed to do?"

    • Necessity of Both: Both are required for a secure system. A device that authenticates but lacks access control allows every verified user to do everything. A device that restricts actions but never checks identity cannot enforce those restrictions.

The Four-Layer IoT Architecture and Security Threats

  • Layer 1: The Perception Layer:

    • Function: Collects data from the physical world using sensors, cameras, RFID readers, and actuators.

    • Security Question/Challenge: How does the network know this sensor is legitimate and not a fake device physically substituted by an attacker?

    • Threats: Node tampering, Fake node injection, Side-channel attacks, Malicious code injection, Sensor data interception, and Physical destruction.

    • Key Detail: Threats at this layer require physical presence; an attacker must reach the device to substitute or tamper with it.

  • Layer 2: The Network Layer:

    • Function: Carries data from the Perception Layer upward using wired or wireless links like Wi-Fi, Bluetooth, Zigbee, or cellular.

    • Security Question/Challenge: How do we prevent an attacker from intercepting, replaying, or injecting messages on the wireless link?

    • Threats: Eavesdropping, Man-in-the-middle (MITM), Node jamming, Routing attacks, Denial of Service (DoSDoS), RFID spoofing, and Replay attacks.

    • Key Detail: Layer 2 threats do not require physical access; an attacker anywhere within wireless range can attempt to intercept or inject data.

  • Layer 3: The Support Layer:

    • Function: Processes and stores IoT data using cloud or Fog computing servers. This is where most access control decisions are made.

    • Security Question/Challenge: Cloud servers hold data from thousands of devices—who is permitted to query, modify, or export that data?

    • Threats: Unauthorised data access, Cross-tenant data leakage, Insecure cloud APIAPI, Virtualisation escape, Service disruption, and Audit trail tampering.

    • Key Detail: This layer holds the most sensitive data. A single misconfigured access policy affects everything connected to that platform.

  • Layer 4: The Application Layer:

    • Function: Delivers IoT services directly to users, such as smart home apps, industrial dashboards, or healthcare monitoring platforms.

    • Security Question/Challenge: How do we verify the user's identity and restrict what each role can do through the app?

    • Threats: Broken authentication, Phishing, Cross-site scripting (XSSXSS), Credential theft, and Malware delivery.

    • Key Detail: This is where the human becomes the attack surface through fake login pages or injected scripts.

The IAS-Octave Framework: Core Security Requirements

  • Requirement 1: End-to-End Encryption: Data in transit must be encrypted so interception yields nothing readable.

  • Requirement 2: Access Control (Focus area): Once authenticated, the system enforces what each verified identity is permitted to do.

  • Requirement 3: Privacy: Users must know what is collected, how it is used, and be able to control it.

  • Requirement 4: Device Authentication (Focus area): Devices must prove their identity before joining the network.

  • Requirement 5: Intrusion Detection: Traffic must be monitored to catch attacks that bypass authentication.

  • Requirement 6: Data Integrity Protection: The system must detect if data was altered in transit or storage.

  • Synthesis: Authentication and access control are necessary but not sufficient. A system can still be broken if data travels unencrypted, if users lack control, if no one monitors for intrusions, or if data is silently altered.

Deep Dive into IoT Authentication

  • Definition: The process of verifying the identity of devices, users, or applications within an IoT network before granting access to resources or allowing communication.

  • The Impact of Authentication:

    • Without Authentication: Any device can connect; data cannot be trusted; actions are not traceable; compromised devices stay connected indefinitely.

    • With Authentication: Only verified entities connect; data from verified sources is trusted; every action is tied to an identity; credentials can be revoked to block access.

  • The Five Jobs of Authentication:

    1. Device Identification: Confirms if a device is known/registered (stops fake node attacks).

    2. User Authentication: Confirms if the person is who they claim to be (stops stolen credential attacks).

    3. Mutual Authentication: Both sides (device and server) prove identity to each other (stops server impersonation).

    4. Preventing Spoofing: Checks if a message is genuinely from the claimed sender and not a replay (stops replay attacks).

    5. Links to Access Control: Hands the verified identity to the access control system (stops privilege abuse).

  • Three Levels of Authentication Strength:

    • Single-Factor (SFA): Least secure. Uses only one category (something you know, like a password). Vulnerable to brute-force.

    • Two-Factor (2FA): Moderate. Combines two categories (e.g., password + OTP). SMS-based codes can be intercepted or relayed.

    • Multi-Factor (MFA): Strongest. Uses all three categories: Something you KNOW (PasswordPassword, PINPIN), Something you HAVE (OTPOTP, smartcardsmart card, tokentoken), and Something you ARE (biometricsbiometrics). Hard to deploy on devices without screens or biometric sensors.

Specific Authentication Mechanisms and Trade-offs

  • 1. Passwords and PINs:

    • Strengths: Simple to implement; no special hardware needed; works on almost any device.

    • Weaknesses: Vulnerable to brute-force/dictionary attacks; reuse across devices; sent in plain text if not encrypted; factory-default passwords often never changed.

  • 2. Biometric Authentication:

    • Categories: Fingerprints, facial recognition, retina scans, voice recognition.

    • Strengths: Unique to the person; cannot be forgotten or shared; physical trait must be present.

    • Weaknesses: Requires specialised hardware; can be spoofed by deepfakes/moulds; compromised biometric data cannot be reset; templates are high-value targets.

  • 3. Two-Factor Authentication (2FA):

    • Mechanism: Requires two independent proofs (Something you know + Something you have).

    • Vulnerability - Real-Time OTP Relay: Attacker uses a fake login page to capture the password, relays it to the site, victim receives genuine OTP, attacker captures OTP from the fake page and replays it to the site within seconds. The defense is phishing-resistant 2FA (FIDO2/WebAuthn).

  • 4. Digital Certificates (PKI - Public Key Infrastructure):

    • Process:

      • Step 1: Certificate Authority (CACA) issues a certificate to the device signed with the CACA's private key.

      • Step 2: Device presents certificate at connection; server sends a challenge the device must sign with its private key to prove ownership.

      • Step 3: Server verifies the signature using the CACA's public key.

    • Strengths: No passwords; prevents MITM; scales well.

    • Weaknesses: Requires heavy infrastructure; computationally expensive for low-power devices; private key compromise requires revocation.

  • 5. OAuth and Token-Based Authentication:

    • Process:

      • Step 1: Device sends Client ID/Secret to OAuth server.

      • Step 2: OAuth server issues a scoped, time-limited access token.

      • Step 3: Device uses the token for all subsequent service requests.

    • Strengths: Limited damage if token stolen; one token for multiple services.

    • Weaknesses: Centralised OAuth server is a single point of failure; frequent refresh requests due to short expiry.

  • 6. Lightweight Cryptographic Protocols:

    • Components:

      • ECC (Elliptic Curve Cryptography): Establishes a shared session key with the same security as RSARSA but shorter keys.

      • AES (Advanced Encryption Standard): Encrypts sensor readings/commands using fast symmetric operations.

      • HMAC (Hash-based Message Authentication Code): Attaches a verification code to each message to detect alteration.

    • Synthesis: Using ECCECC alone leaves data unencrypted; using AESAES alone stops eavesdropping but not tampering; using AESAES with ECCECC but without HMACHMAC allows attackers to inject altered ciphertext without detection.

Deep Dive into IoT Access Control

  • Definition: Mechanisms that regulate who (users, devices, apps) or what (systems, software) can access IoT resources and which actions they can perform. Successive to authentication.

  • The Five Jobs of Access Control:

    1. Authorisation Management: Defines permissions for each identity.

    2. Preventing Unauthorised Access: Checks every request against defined permissions.

    3. Data Protection: Sets permissions at the data level (e.g., sensor with write-only permission cannot leak history).

    4. Regulatory Compliance: Ensures documented and auditable access rules.

    5. Securing IoT Networks: Limits lateral movement; a compromised identity can only reach its permitted scope.

Five Access Control Models for IoT

  • 1. Role-Based Access Control (RBAC):

    • Mechanism: Permissions assigned to roles (e.g., "Nurse"), not individuals.

    • Example: Managing 500500 nurses. Update one "Nurse" role instead of 500500 accounts manually.

    • Strengths: Simple to manage; scalable; instant revocation.

    • Weaknesses: Inflexible for temporary needs; not dynamic (requires manual reassignment if department changes).

  • 2. Attribute-Based Access Control (ABAC):

    • Mechanism: Grants access based on attributes (User-based: Job title; Device-based: Trusted device; Environmental: Time, Location).

    • Example: A Cardiology Nurse can access data at 9 am9\,am on a hospital tablet but is denied at 2 am2\,am or when using a personal phone on public Wi-Fi.

    • Strengths: Flexible and granular; context-aware.

    • Weaknesses: Complex configuration; computationally expensive to evaluate all conditions for every request.

  • 3. Mandatory Access Control (MAC):

    • Mechanism: Centralized classification system. Clearance levels (Confidential, Secret, Top Secret) must match or exceed resource classification.

    • The Clearance Matching Rule: A user with "Secret" clearance can access "Confidential" and "Secret" data, but is denied entry to "Top Secret" data.

    • Strengths: Uniform enforcement; prevents privilege escalation; stops insider threats.

    • Weaknesses: No flexibility; zero delegation (not even for managers); poor fit for dynamic environments.

  • 4. Discretionary Access Control (DAC):

    • Mechanism: The resource owner decides who has access.

    • Risk - The Delegation Chain: Owner shares with user; authorized user shares with unvetted third party; owner has no oversight of the chain.

    • Strengths: No admin needed; simple to deploy (e.g., smart home apps).

    • Weaknesses: No central oversight; does not scale; risk of careless sharing.

  • 5. Zero Trust Access Control (ZTAC):

    • Mechanism: "Never trust, always verify." Re-verifies identity, health, and context at every request, not just at login.

    • Strengths: No implicit trust; protects against compromised sessions; context-aware.

    • Weaknesses: Complex to implement (requires identity management + MFA + endpoint security); adds latency to operations.

Implementation: AAA Protocols and Blockchain

  • AAA Functions: Authentication (Who?), Authorisation (What?), and Accounting (What did you do and when?).

  • AAA Protocols Comparison:

    • RADIUS (Remote Authentication Dial-In User Service): Encrypts the password field only. Lightweight. Used in enterprise IoT and smart cities.

    • TACACS+ (Terminal Access Controller Access-Control System Plus): Encrypts the full payload. Used for industrial IoT and critical infrastructure.

    • DIAMETER: Next-gen protocol supporting TLSTLS across multiple nodes. Designed for 5G5G networks and high volumes.

  • Blockchain in IoT:

    • Smart Contracts: Extends access control. Rules are immutable; if a device fails authentication repeatedly, a rule can block it automatically without human intervention.

    • Blockchain-Based Authentication: Decentralises registration records. Authentication continues even if a central server fails.

Scenarios and Case Studies (Transcribed Details)

  • The Smart Building HVAC Scenario:

    • Context: A building manager and a task-specific technician share the same login credentials.

    • Event: The technician deletes temperature logs and pushes firmware to servers outside his scope.

    • Conclusion: Authentication worked (valid credentials used). The failure was the absence of Access Control. All verified users were given identical, maximum permissions regardless of role.

  • The Air Quality Sensor Scenario:

    • Context: Sensor readings are accurate at the source but different at the gateway.

    • Observation: No server or hardware breach detected.

    • Conclusion: The Network Layer was breached. Data was modified in transit between the sensor and the gateway.

  • The Hospital Wearable Scenario:

    • Context: Devices use ECCECC for session keys. A fake monitor injects data.

    • Observation: ECCECC is working correctly.

    • Conclusion: The failure was the absence of HMACHMAC. Without message-level integrity/origin proof, the server accepted messages that did not originate from a registered device.

  • The Cold Storage Misconfiguration Scenario:

    • Context: A platform error gives all vendors cross-site access. A Site 22 vendor shares credentials with a subcontractor who then accesses Sites 11 and 33.

    • Question: Which model blocks this failure at the data level independently of the platform?

    • Conclusion: MACMAC (Mandatory Access Control). Because each site's data has a classification, the subcontractor's clearance level would only match Site 22, blocking access to Sites 11 and 33 even if the platform incorrectly permitted it. Shared credentials cannot transfer clearance levels.