Skip to main content
Cyber Defense StudioIoT Security and PrivacyExperimentsWorkspaces
IoTPSUT IoT Engineering StudioPrincess Sumaya University for Technology · Dr. Mohammad Alja’afreh
BLOCKCHAIN FOR IoT · BC-M16
Blockchain for IoT

IoT–blockchain survey: security, privacy and scalability

Dr. Mohammad Alja’afreh · Princess Sumaya University for Technology

IdentityFreshnessIntegrity
Design experiment & verify evidence →
BC-M16 · Laboratory mentorAsk about the current experiment, its algorithms or Python notebook.
Ask Dr. MohammadAdaptive practice

← Lecture-aligned module experiments · All blockchain labs · Setup wizard

Introduction

Scientific architecture · IoT–blockchain security, privacy and availability

Authenticated IoT ledger admission — Sensor record / identity, seq, payload; Verify MAC & freshness / gateway; Privacy choice / raw vs commitment; Admission policy / authorize; Commit or reject / audit decision
Scientific concept map: Sensor data — Payload and sequence; Gateway authentication — MAC / freshness; Privacy choice — Raw vs digest; Ledger admission — Policy and capacity; Consumer — Retrieve and verify.

Scientific foundations and analytical reasoning

Authenticity, freshness, privacy and availability are separate system properties. An on-chain digest cannot recover unavailable content.

Before operating the equipment or executing the program, derive the expected outcome using the required theoretical work in Experiment. Use the diagram to identify the variables and system boundaries.

Related course access: IoT Security and Privacy — same laboratory, notebook and completion record.

BC-M16 · Academic orientation

Scope and objectives

Scope of the experiment

Evaluate access, integrity, freshness and storage trade-offs across the survey’s security, privacy and trust requirements.

The focus of this experiment is to compare IoT-ledger security, privacy and scalability constraints. Students then identify evidence and assumptions behind integration claims, and evaluate a design using matched criteria and explicit limitations. The Concepts view explains the operation before the practical work; the Simulation view is used to examine reference and changed inputs, not to substitute for actual measurements.

Learning objectives

  • Compare IoT-ledger security, privacy and scalability constraints.
  • Identify evidence and assumptions behind integration claims.
  • Evaluate a design using matched criteria and explicit limitations.
  • Identify the configured inputs (Requester role; Committed fictional data; Retrieved / received data; Sender demonstration key; Gateway demonstration key) and record the corresponding observed outputs with units where applicable.
  • Compare the reference calculation or decision with an independent implementation or authorized observation; state any discrepancy and the applicable model boundary.

Expected learning outcomes

On completion, students can compare IoT-ledger security, privacy and scalability constraints, identify evidence and assumptions behind integration claims, and evaluate a design using matched criteria and explicit limitations.

Required deliverables

Submit the derivation or state trace for the named operation, the exact reference and changed configurations, the associated simulator or practical evidence, and a short validation statement addressing evaluate a design using matched criteria and explicit limitations. Separate predicted values from observations.

Prerequisite knowledge and related learning

Review the foundational terminology in Concepts and confirm readiness using the existing setup instructions. After completion, continue to B01 · Hash functions and linked blocks.

Environment and experimental methodology

The listed browser model and experiment-specific local Python, Solidity or EVM workflow, where provided. Do not treat a model as a deployed ledger.

Begin with a manual prediction, record the baseline, change one independent condition at a time, and compare the resulting trace or measurements with the original prediction. Record observations and uncertainty separately from reference values. Follow the experiment’s specific procedure, safety limits, and acceptance checks.

Scientific theory · Security properties and evidence availability

IoT blockchain integration requires authenticity, freshness, confidentiality, availability and scalable processing. An authenticated message can still be replayed; a public digest may leak predictable data through enumeration. A commitment verifies equality against a trusted digest only if the original record is obtainable. Off-chain data management and access policy matter.

Worked example and engineering interpretation

Compare a record with a valid tag and fresh sequence against a valid tag with a stale sequence. Only the first should pass a freshness policy. A missing off-chain record cannot be reconstructed from its digest. Report admission, integrity and retrieval separately.

Engineering principles · additional worked teaching example

A commitment provides integrity only relative to a trusted reference and retrievable bytes. A valid HMAC authenticates those bytes but does not ensure freshness. Data minimization avoids placing sensitive telemetry on a publicly replicated ledger.

From theory to experiment

Predict the reference result before operating the workbench; check the actual intermediate state, units and constraints. The existing simulation, implementation and procedure below are distinct sources of evidence.

Worked engineering reasoning and boundary conditions

Engineering reference configuration: Requester role = authorized; Committed fictional data = {"sensor":"A","temperature":25}; Retrieved / received data = {"sensor":"A","temperature":25}; Sender demonstration key = device-key; Gateway demonstration key = device-key; Received sequence = 4; Last accepted sequence = 3; Ledger placement = digest; Off-chain content available = true; Content classified sensitive = true; Enforce no sensitive raw data = true. In the classroom model, Admission = Accepted; First rejection = None; Ledger bytes = 32 B; Next sequence = 4; Retrieval verifies = Yes. The policy decision uses calculated tags, sequence values and storage classification. Retrieval is independently assessed; a commitment does not make off-chain bytes available. Actual HMAC and SHA-256 over fictional inputs, declared role/policy and in-memory state. No actual blockchain, production identities, privacy proof or external data retrieval.

Use the diagram to follow the calculation or state progression. Keep the teaching configuration separate from the independent exercise values; compare observations with the actual model and implementation.

Concept animation · operation pathway

Explore the teaching example independently of the simulator. Each step reveals an operation, data relationship or calculated state. The Simulation view has separate editable inputs.

IoT–blockchain survey: security, privacy and scalability: operation pathwayAuthorizationokHMAC integrityokFreshnessokData minimizationokRead the active operation, then inspect the accumulated state.

Step 1 of 4 · Authorization

Authorization

Authorization
ok

Teaching example only; inspect live calculations or real practical evidence separately.

How to investigate IoT–blockchain survey: security, privacy and scalability

Evaluate access, integrity, freshness and storage trade-offs across the survey’s security, privacy and trust requirements.

Analytical investigation means collecting an observation, identifying the mechanism, using a calculation or state trace to explain it, and checking your conclusion against evidence. Controlled comparison means changing one independent variable, holding the remaining relevant conditions constant, and measuring a dependent variable against a baseline. Experimental validation means comparing a predicted result to a reproducible observation or assertion; agreement inside a model does not certify hardware. Evidence-based reasoning connects a specific observation to a theoretical rule and states uncertainty, not merely an opinion. Performance characterization records a named metric and its units across conditions; sensitivity analysis changes one parameter across several values. A threat assessment links an asset, threat, consequence and evidence to a mitigation.

Experiment-specific guided practice

Objective: Evaluate access, integrity, freshness and storage trade-offs across the survey’s security, privacy and trust requirements.

  1. Keep the original and received JSON identical, same demo keys, authorized role, received seq 4 and previous seq 3, digest placement and available content. Inspect actual SHA-256/HMAC, accepted sequence and 32 ledger payload bytes.
  2. Change only role to outsider. Confirm authorization fails before HMAC evaluation is acted upon; no record or state update. Restore and set received sequence to 3. Confirm replay rejection with valid MAC.
  3. Modify temperature in received JSON without changing original or key. Inspect actual HMAC mismatch and candidate hash mismatch. Restore identical data and change verifier key to isolate keyed authentication.
  4. Restore the reference and make off-chain content unavailable. Admission of the commitment can still succeed, but subsequent retrieval cannot verify the missing bytes.

Reference check: Only authorized fresh unchanged sample reaches commit. Ledger storage estimate differs by placement; digest-only storage still requires off-chain availability.

Model boundary: Toy security gates with declared role and sequence; no actual cryptographic identity, privacy proof or production blockchain.

Independent task and submission evidence

2. Change only role to outsider. Confirm authorization fails before HMAC evaluation is acted upon; no record or state update. Restore and set received sequence to 3. Confirm replay rejection with valid MAC. Record the named input, prediction, actual output and one limitation; restore the original condition and repeat.

Before execution write the independent variable and its levels, dependent observation with units where applicable, baseline, controlled variables, measurement method and expected result. For a state machine use state/event/output rather than inventing a numeric metric. Record failures and repeat the baseline. A weak conclusion is “it works”; a supported conclusion names the changed setting, observed value/state, corresponding rule and one limitation.

TrialChanged settingFixed settingsPredicted resultActual observation / unitsEvidence / uncertainty
A: baselineReferenceRecordPredictRecordRecord
B: one changeRecordSame as APredictRecordRecord
A: repeatRestoreSame as APredictRecordRecord

Completion: submit the filled table, relevant simulator screenshot or terminal/notebook output, reasoning with units/assumptions, and one limitation. Preserve the independent assessment questions; this guide does not fill their answers.

Evaluate access, integrity, freshness and storage trade-offs across the survey’s security, privacy and trust requirements.

Learning goals

  1. Explain the mechanism using the actual intermediate states in this experiment.
  2. Predict and verify the reference and modified conditions described below.
  3. Interpret the acceptance criteria and identify the limits of the model.

Module flashcards · 12 questions

Browse all 12 questions and explanations
What does freshness protect against?

Reuse of an earlier accepted sequence under the declared sequence rule.

Why does permissioning not automatically guarantee privacy?

Authorized parties may still see shared data; privacy needs explicit design.

Why is a low-entropy hash not confidentiality?

A small input space can be enumerated to match digests.

What does off-chain availability require?

A reliable authorized retrieval path for the original record.

What is data minimization in this context?

Commit only what is needed on the ledger and restrict access to raw data.

Does a valid digest prevent replay?

Not by itself; the receiver needs a freshness or sequence policy.

Why compare one failed gate at a time?

It isolates the reason for rejection.

What is the trade-off of off-chain commitments?

Reduced ledger payload but continued reliance on off-chain availability and trustworthy retrieval.

What happens when an outsider requests a commit?

The authorization check rejects the request.

What happens if an authorized request repeats a stale sequence?

The freshness check rejects the replay.

Why does a modified off-chain record fail verification?

Its digest does not match the trusted commitment.

Does storing only a digest guarantee confidentiality and availability?

No. Low-entropy data may be guessed, and the original record must remain accessible off-chain.

Shared research workbenches · network designer & advanced studies
Concurrent-device simulation & Monte Carlo research
Distributed digital twin · topology, protocol & battery research