Skip to main content
PSUT / IoTEngineering learning studio
WORKSPACE
Offline-first portalDr. Mohammad Alja’afreh
Connected Networks StudioNetworking and CommunicationExperimentsWorkspaces
ENGINEERING WORKSPACE
Home / Advanced Cybersecurity Range / S01 · IoT threat modelling & risk register
IoTPSUT IoT Engineering StudioPrincess Sumaya University for Technology · Dr. Mohammad Alja’afreh
Advanced Cybersecurity Range · V16.9
IoT Security and Privacy

S01 · IoT threat modelling & risk register

Ask Dr. Mohammad · S01 →

Trace threats across sensor, gateway, broker and dashboard trust boundaries; prioritize residual risk.

Design experiment & verify evidence →
S01 · Laboratory mentorAsk about the current experiment, its algorithms or Python notebook.
Ask Dr. MohammadAdaptive practice
Learning workflow · Advanced cybersecurityS01 · IoT threat modelling & risk register
S01 · Academic orientation

Scope and objectives

Scope of the experiment

Trace threats across sensor, gateway, broker and dashboard trust boundaries; prioritize residual risk.

The focus of this experiment is to identify IoT assets, trust boundaries, threats and mitigations. Students then calculate and interpret the stated ordinal risk score, and prioritize controls and justify residual risk without equating scores to probabilities. 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

  • Identify IoT assets, trust boundaries, threats and mitigations.
  • Calculate and interpret the stated ordinal risk score.
  • Prioritize controls and justify residual risk without equating scores to probabilities.
  • Identify the configured inputs (STRIDE category; Damage (0–10); Reproducibility; Exploitability; Affected users) 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 identify IoT assets, trust boundaries, threats and mitigations, calculate and interpret the stated ordinal risk score, and prioritize controls and justify residual risk without equating scores to probabilities.

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 prioritize controls and justify residual risk without equating scores to probabilities. Separate predicted values from observations.

Prerequisite knowledge and related learning

Review the following catalogue prerequisites before starting. After completion, continue to Network segmentation & default deny.

Environment and experimental methodology

The specified isolated laboratory environment, with local synthetic inputs and authorized services only. Use the experiment-specific setup and verification instructions.

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.

S01 · learning outcome

Understand the experiment

Scientific architecture · IoT STRIDE / DREAD risk register

Threat modeling boundaries — Sensor → gateway / trust boundary; Gateway → broker / trust boundary; Broker → dashboard / data flow; STRIDE / classify each threat; DREAD / score assumptions and residual risk
Scientific concept map: Sensor asset — Data / identity; Gateway boundary — STRIDE; Broker flow — Threat scenario; Risk score — Likelihood × impact; Mitigation — Residual risk.

Scientific foundations and analytical reasoning

A threat model maps assets, trust boundaries and threat classes; DREAD is a subjective scoring aid, not a measured probability.

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.

Scientific theory · Systematic threat modeling

A threat model starts with assets, data flows, actors and trust boundaries. STRIDE classifies threats by mechanism; DREAD ranks perceived severity using declared dimensions. Controls address specific attack paths and require verification. Residual risk is not automatically zero when a control is present.

Worked example and engineering interpretation

A device impersonation concern maps to spoofing, while modifying stored readings maps to tampering. Assign a justified score to each risk dimension and identify evidence that would lower the score. Do not treat subjective rankings as observed probabilities.

Engineering principles · additional worked teaching example

Threat modeling identifies assets, trust boundaries and abuse cases before selecting controls. Risk ranking combines impact and likelihood assumptions; a test can support control effectiveness but not prove all threats eliminated.

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.

How to investigate IoT threat modelling & risk register

Trace threats across sensor, gateway, broker and dashboard trust boundaries; prioritize residual risk.

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: Trace threats across sensor, gateway, broker and dashboard trust boundaries; prioritize residual risk.

  1. Inspect the diagram: sensor → gateway → broker → storage → dashboard. Select Spoofing and identify the sensor/gateway trust boundary. Enter and justify five 0–10 scores; the default mean is 7.0.
  2. Keep the inherent scores fixed, enter proposed residual values and leave evidence at not tested. Residual result must stay Unverified.
  3. Select Tampering and assign 9, 8, 7, 9, 7. Confirm mean 8.0 and explain why the asset and treatment differ from Spoofing.
  4. For each of the remaining STRIDE categories choose the correct boundary, identify the protected asset, justify five scores, and save a separate trial.

Reference check:

Model boundary:

Independent task and submission evidence

2. Keep the inherent scores fixed, enter proposed residual values and leave evidence at not tested. Residual result must stay Unverified. 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.

Trace threats across sensor, gateway, broker and dashboard trust boundaries; prioritize residual risk.

Method: Teaching likelihood × impact (1–5); apply control to the likelihood only. STRIDE categories are labels, not a quantitative risk standard.

Prerequisites: None · start here.

Closed teaching fixture only. No external devices, sockets, scanning, exploits or real credentials. Browser decisions are not measurements of deployed controls.

Worked engineering reasoning and boundary conditions

Engineering reference configuration: STRIDE category = Spoofing; Damage (0–10) = 8; Reproducibility = 7; Exploitability = 6; Affected users = 8; Discoverability = 6; Control evidence = not tested; Residual damage = 8; Residual reproducibility = 3; Residual exploitability = 2; Residual affected users = 4; Residual discoverability = 6. In the classroom model, Inherent DREAD mean = 7 /10; Residual DREAD mean = Unverified; Mitigation evidence = Unverified mitigation; Priority = Medium. DREAD is an ordinal teaching prioritization, not probability. Residual score is only displayed as evidence-entered when the student declares both controls were verified; the simulator cannot independently verify that declaration. Threat-modeling worksheet and arithmetic. Evidence labels are student-entered, not automatically verified.

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.

Mathematical representation and interpretation

DREAD scoring model

Each component is a documented ordinal teaching score: damage, reproducibility, exploitability, affected users and discoverability. The average supports comparison under a consistent rubric, not a measured probability.

\[R=\frac{D+R_e+E+A+D_i}{5}\]

Concept animation · independent state notebook

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 threat modelling & risk register: independent state notebook123456Calculated state 1ComponentDamageInherent 0–108Proposed residual 0–108

Step 1 of 6 · Calculated state 1

Calculated state 1

Component
Damage
Inherent 0–10
8
Proposed residual 0–10
8

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

Recall the concept before revealing its explanation.

0 / 3 revealed
S01 · 01 / 08Which trust boundaries should be analyzed?Reveal explanation
Engineering explanation

Trace threats across sensor, gateway, broker and dashboard trust boundaries; prioritize residual risk.

S01 · 02 / 08How is residual risk scored in this teaching model?Reveal explanation
Engineering explanation

Teaching likelihood × impact (1–5); apply control to the likelihood only. STRIDE categories are labels, not a quantitative risk standard.

S01 · 03 / 08Can residual risk increase when modeled control effectiveness improves?Reveal explanation
Engineering explanation

Residual scores never exceed inherent scores; the impact is unchanged.

S01 · 04 / 08Why separate threat likelihood and impact?Reveal explanation
Engineering reasoning

They represent different dimensions of risk; a control that changes one need not change the other.

S01 · 05 / 08Why not interpret an ordinal score as a probability?Reveal explanation
Engineering reasoning

The teaching scale ranks relative priorities, but it has no calibrated probabilistic meaning.

S01 · 06 / 08An IoT risk register is constructed. Select every technically valid statement. A. Trace threats across explicit trust boundaries. B. Record remaining risk after mitigation. C. A risk score proves every threat is eliminated. D. The dashboard is always outside all trust boundaries.Reveal explanation
Applied scenario

Correct: A. Trace threats across explicit trust boundaries.; B. Record remaining risk after mitigation.

S01 · 07 / 08In IoT threat modelling & risk register, which reference and changed settings are prescribed for Control effectiveness (likelihood points)?Reveal explanation
Controlled configuration

Control effectiveness (likelihood points): 0 → 2; hold the remaining settings fixed.

S01 · 08 / 08What expected result distinguishes the reference and changed trials in IoT threat modelling & risk register?Reveal explanation
Expected observation

Residual scores never exceed inherent scores; the impact is unchanged.

Loading experiment-specific apparatus…
Previous model / additional reference tools
Simulation task

Trace threats across sensor, gateway, broker and dashboard trust boundaries; prioritize residual risk.

Explore the model using its own controls. Record a prediction before changing a condition. Compare the reference with a changed condition, then use the Experiment tab for the procedure, acceptance criteria and notebook. Model outputs and physical observations must remain separate.

Interactive engineering workbenchS01 · Existing model
Defensive workbench

Predict, configure and observe

Decision and event trace

S01 · Model-linked instrumentation

Visual observation lens

Back to controls ↑

Readout from the original computational model; not physical measurements.

Loading instrument…

Awaiting model display.

Experimental instrumentation · A/B

Compare two model conditions

Capture a baseline, change one experimental condition, run the model if required and capture the comparison. Snapshots contain visible controls and display text, not physical sensor readings. Review before exporting.

Open simulation view
Baseline A
Not captured
Comparison B
Not captured

Capture a baseline to begin.

Evidence portfolio →
V19.0 · Contextual AI workspace

Ask your engineering assistants

S01 · current context

Ask Dr. Mohammad locally, or prepare an experiment-aware prompt for ChatGPT, Gemini or Claude. The external providers open in their own tabs; nothing is automatically submitted.

Dr. Mohammad · offline
Dr. Mohammad

Offline curriculum-grounded assistance.

Open local tutor
IoT threat modelling & risk register

Public course objective, displayed commands, source excerpts and procedure. Private assessment content is not collected.

Prepare a contextual AI prompt

0 characters

Common secret and email patterns are redacted on preparation; this is not a comprehensive privacy filter. Review the entire editable prompt, including student work and unpublished research, before sharing. The providers apply their own accounts, privacy settings and limits.

Prepare → review → copy & open your selected provider → paste and submit there.

Independent theoretical exercises

Before the simulation or practical, solve both experiment-specific tasks. List the given inputs, show the intermediate calculation or state trace, identify the expected observation, and state a limitation. Show formulas and intermediate calculations where relevant, or draw the requested state/sequence diagram. These are independent classroom fixtures; where they differ from the reference configuration below, do not treat them as measured values. Compare your predictions with the corresponding experiment afterwards.

01 · Predict and derive using the given inputs

Calculate inherent and residual mean DREAD using 8,7,6,8,6 and 8,3,2,4,6; rank two additional risks using a declared rubric.

02 · Compare or justify using evidence

Draw the IoT data flow and give one mitigation and negative-control test for each STRIDE category. Explain why untested controls cannot justify risk reduction.

03 · Design

Design · Independent work

An IoT gateway accepts remote actuator commands. Identify one spoofing threat, one integrity threat, two controls and a residual risk.

Work is saved locally when browser storage is available. Export it for submission; no remote upload or automatic grade is assigned.

Expanded independent theoretical exercise bank

Progress from calculation and interpretation to diagnosis and controlled engineering design. Complete the questions without opening the simulation first; show intermediate steps.

Intermediate · Explain a changed-input result

Independent theoretical exercise · S01-01

Use the reference configuration (STRIDE category = Spoofing; Damage (0–10) = 8; Reproducibility = 7; Exploitability = 6; Affected users = 8; Discoverability = 6; Control evidence = not tested; Residual damage = 8; Residual reproducibility = 3; Residual exploitability = 2; Residual affected users = 4; Residual discoverability = 6), but change Damage (0–10) = 10. The model reports Inherent DREAD mean = 7.4 /10. Explain the governing rule and assumptions that make this output plausible; identify an independent verification method.

Intermediate · Quantitative comparison

Independent theoretical exercise · S01-02

Two model observations of Inherent DREAD mean are 7 /10 (reference) and 7.4 /10 (changed condition). Compute signed change and, when the reference is nonzero, percentage change. Explain why units matter.

Intermediate · Interpret a technical trace

Independent theoretical exercise · S01-03

For Reproducibility = 9, the model supplies this excerpt from DREAD component scoring · Spoofing: Component · Inherent 0–10 · Proposed residual 0–10 Damage · 8 · 8 Reproducibility · 9 · 3 Exploitability · 6 · 2 Affected users · 8 · 4 Discoverability · 6 · 6 Compute the range (maximum minus minimum) of the Inherent 0–10 column in these rows. Identify the maximum observation. Do not extrapolate beyond these rows.

Advanced · Reverse reasoning

Independent theoretical exercise · S01-04

An observation is Inherent DREAD mean = 7.4 /10. Candidate A uses STRIDE category = Spoofing; Damage (0–10) = 8; Reproducibility = 7; Exploitability = 6; Affected users = 8; Discoverability = 6; Control evidence = not tested; Residual damage = 8; Residual reproducibility = 3; Residual exploitability = 2; Residual affected users = 4; Residual discoverability = 6. Candidate B changes the listed settings (Reproducibility = 9) and keeps the remaining settings fixed. Which is consistent with the observation? If both can explain it, say what additional evidence is required.

Advanced · Diagnose a reported mismatch

Independent theoretical exercise · S01-05

A student configures Exploitability = 8 while preserving all other reference settings, but copies the reference report of Inherent DREAD mean = 7 /10. Evaluate whether the report is justified. Identify the first configuration/output check to perform.

Challenging · Design a controlled verification

Independent theoretical exercise · S01-06

Design a controlled comparison for IoT threat modelling & risk register using reference STRIDE category = Spoofing; Damage (0–10) = 8; Reproducibility = 7; Exploitability = 6; Affected users = 8; Discoverability = 6; Control evidence = not tested; Residual damage = 8; Residual reproducibility = 3; Residual exploitability = 2; Residual affected users = 4; Residual discoverability = 6 and test Damage (0–10) = 10. Specify the changed setting(s), measured metric Inherent DREAD mean, controls, repetitions, an acceptance check and what evidence can distinguish an actual implementation from the model.

Challenging numerical variant 1

Calculation · Independent work

A teaching risk score is likelihood × impact. Asset A starts at 3 × 7. A control reduces likelihood by 3, not below 1, while impact stays fixed. What is the reduction in score?

Challenging numerical variant 2

Calculation · Independent work

A teaching risk score is likelihood × impact. Asset A starts at 8 × 8. A control reduces likelihood by 3, not below 1, while impact stays fixed. What is the reduction in score?

Challenging numerical variant 3

Calculation · Independent work

A teaching risk score is likelihood × impact. Asset A starts at 5 × 9. A control reduces likelihood by 3, not below 1, while impact stays fixed. What is the reduction in score?

Step-by-step experimental procedure

Construct and prioritize a STRIDE threat register for the proposed IoT deployment. Extend the register with treatment owners and evidence.

1 · Reference workbench configuration

Use the named reference workbench and its reference inputs. Additional live instruments may have different controls; use the matching instrument. Record virtual and practical results separately.

STRIDE categorySpoofing
Damage (0–10)8
Reproducibility7
Exploitability6
Affected users8
Discoverability6
Control evidencenot tested
Residual damage8
Residual reproducibility3
Residual exploitability2
Residual affected users4
Residual discoverability6

2 · Perform the investigation in order

  1. Inspect the diagram: sensor → gateway → broker → storage → dashboard. Select Spoofing and identify the sensor/gateway trust boundary. Enter and justify five 0–10 scores; the default mean is 7.0.
  2. Keep the inherent scores fixed, enter proposed residual values and leave evidence at not tested. Residual result must stay Unverified.
  3. Select Tampering and assign 9, 8, 7, 9, 7. Confirm mean 8.0 and explain why the asset and treatment differ from Spoofing.
  4. For each of the remaining STRIDE categories choose the correct boundary, identify the protected asset, justify five scores, and save a separate trial.
  5. Compare your six records with the independent sec169 practical. Its likelihood × impact score is a separate ordinal method; do not mix it with the five-component DREAD mean.

3 · Compare controlled trials

TrialIndependent changeExpected checkObservation
Spoofing, no verificationUse reference inputs aboveInherent DREAD mean: 7; Residual DREAD mean: UnverifiedRecord actual result
Mitigation with both controlsControl evidence = verified positive and negativeResidual DREAD mean: 4.6Record actual result
Tampering, revised scoresSTRIDE category = Tampering; Damage (0–10) = 9; Reproducibility = 8; Exploitability = 7; Affected users = 9; Discoverability = 7Inherent DREAD mean: 8Record actual result
DoS, limited impactSTRIDE category = Denial of service; Damage (0–10) = 4; Reproducibility = 5; Exploitability = 5; Affected users = 4; Discoverability = 5Inherent DREAD mean: 4.6Record actual result

4 · Analyze and report

Submit a threat register with evidence references and residual risks; discuss why an ordinal mean is not an attack probability.

Required evidence: Six scored STRIDE rows, evidence references, treatment owners and residual scores.

Model boundary: Threat-modeling worksheet and arithmetic. Evidence labels are student-entered, not automatically verified.

Controlled investigation · reproducible evidence

Method. Use the existing reference workbench configuration and the named controlled changes below. A controlled variable stays fixed while the independent variable is intentionally changed; the dependent variable is the resulting observed output. First predict each trial from the Concepts page. Run the baseline, then change only the specified setting and record the outcome. For deterministic traces one execution per case and a repeated verification are sufficient; for timing or stochastic measurements repeat at least five times, recording each run, median and range. Reset to the reference state between independent comparisons.

TrialIndependent changeDependent observation
Spoofing, no verificationUse reference inputs aboveRecord actual outcome and units
Mitigation with both controlsControl evidence = verified positive and negativeRecord actual outcome and units
Tampering, revised scoresSTRIDE category = Tampering; Damage (0–10) = 9; Reproducibility = 8; Exploitability = 7; Affected users = 9; Discoverability = 7Record actual outcome and units
DoS, limited impactSTRIDE category = Denial of service; Damage (0–10) = 4; Reproducibility = 5; Exploitability = 5; Affected users = 4; Discoverability = 5Record actual outcome and units

Evidence: attach the completed comparison table, one trace or screenshot per condition, and actual practical terminal/hardware evidence where applicable. Explain any prediction mismatch and distinguish modeled behavior from measured results.

Loading laboratory-specific procedure…

Python / Google Colab notebook

Original closed defensive reference model; no external targets. Validated locally in a fresh Jupyter kernel. Download, then upload to Google Colab.

Download NotebookOpen Google ColabAll Python notebooks

Practical procedure & acceptance

  1. Read the method, write a prediction and save the reference baseline.
  2. Apply the controlled change. Identify a trust boundary and justify one treatment and its owner. Explain why ordinal risk scores are not probabilities.
  3. Restore the reference and confirm the original metrics. Test an out-of-range or empty field; restore before exporting.
  4. Run independent host calculations from the extracted portal root:
    BASH · Command
    python3 verification/sec169_practical.py all
    Check the result for S01 and verify that all checks pass. No external dependencies or network connection are required.
  5. Export the observed results, record one limitation and discuss a deployment validation plan.

Experimental notebook

Record your own results. Values are not prefilled or independently verified.

Record & discuss

Portfolio exports map to core lab K11; the supplementary experiment ID is retained in the attachment. Completion is self-reported.

NISTIR 8259A · device baseline · NIST SP 800-61r3 · incident response

Python / Google Colab laboratory

S01 · 11 notebook cells · 3 executable Python cells

Complete the theoretical investigation first. Run the cells in order, record actual outputs and compare against your prediction.

How to execute

  1. Download this notebook and open Google Colab. Select File → Upload notebook and choose the downloaded .ipynb.
  2. Read the Markdown instructions before each executable cell. Use a Python runtime, run cells from top to bottom, and resolve imports if necessary.
  3. Perform the baseline and controlled changes. Save the notebook with actual outputs and your written interpretation.

Execution scope: Default computational cells passed isolated local Python execution; physical equipment and live services require separate verification.

01Instructions · Markdown
# s01 · IoT threat modelling & risk register **PSUT IoT Engineering Studio — Dr. Mohammad Alja’afreh** ## Introduction Trace threats across sensor, gateway, broker and dashboard trust boundaries; prioritize residual risk. ## How to run 1. Download this notebook from the laboratory page. Open Google Colab → File → Upload notebook. 2. Select a Python CPU runtime. Run cells from top to bottom using Shift+Enter, or Runtime → Run all. 3. Read the printed observations and assertions. Change one parameter at a time and rerun the relevant cell. 4. Save your own outputs and compare them to the portal Experiment tab. **Execution boundary:** Original closed defensive reference model; no external targets. Do not run the hardware or service commands in Colab. No real credentials are needed. The notebook is self-contained.
02Instructions · Markdown
## Experiment-specific preparation Trace threats across sensor, gateway, broker and dashboard trust boundaries; prioritize residual risk. **Reference procedure (use the matching simulator/WSL tool where named, not an unrelated service):** 1. Inspect the diagram: sensor → gateway → broker → storage → dashboard. Select Spoofing and identify the sensor/gateway trust boundary. Enter and justify five 0–10 scores; the default mean is 7.0. 2. Keep the inherent scores fixed, enter proposed residual values and leave evidence at not tested. Residual result must stay Unverified. 3. Select Tampering and assign 9, 8, 7, 9, 7. Confirm mean 8.0 and explain why the asset and treatment differ from Spoofing. 4. For each of the remaining STRIDE categories choose the correct boundary, identify the protected asset, justify five scores, and save a separate trial. 5. Compare your six records with the independent sec169 practical. Its likelihood × impact score is a separate ordinal method; do not mix it with the five-component DREAD mean. **Evidence:** **Boundary:**
03Instructions · Markdown
## 1. Objectives and reference condition - Reproduce the specific computational mechanism in this laboratory. - Inspect the output, compare the reference condition with a changed or rejected condition where implemented, and explain any discrepancy. - Distinguish actual local Python execution from mock, physical and external-service observations. ## 2. Environment check
04Python · executable cell
PYTHON · Code cell
# =====================================================================
# S01 | Code cell 01 | IoT threat modelling & risk register
# Purpose: 1. Objectives and reference condition - Reproduce the specific computational mechanism in this laboratory. - Inspect the output, compare the reference condition with a changed or rejected condition where implem
# Inputs: the explicit fixture/settings below and any preceding cell state.
# Output: inspect printed values, returned records or assertions; record evidence.
# =====================================================================
import sys
print("Python",sys.version.split()[0])
# Check the expected invariant so a mismatch fails visibly instead of appearing successful.
assert sys.version_info >= (3,10)
Ask Dr. Mohammad about this cell
05Instructions · Markdown
## 3. Implementation Read the comments and variable definitions before execution. Assertions must pass; inspect values, not just completion.
06Python · executable cell
PYTHON · Code cell
# =====================================================================
# S01 | Code cell 02 | IoT threat modelling & risk register
# Purpose: implement only the mechanism named in this laboratory.
# Inputs: the explicit fictional fixture and reference parameters below.
# Output: printed observations and assertions for the controlled trial.
# =====================================================================
# Likelihood and impact on an ordinal 1–5 teaching scale.
risks=[(4,4),(4,5),(3,3),(3,4),(4,5),(2,5)]
def risk(reduction):
    original=[l*i for l,i in risks];residual=[max(l-reduction,1)*i for l,i in risks]
    return sum(original),sum(residual),sum(v>=15 for v in residual)
Ask Dr. Mohammad about this cell
07Instructions · Markdown
### Step 2 · Run the reference calculation Read the comments and variable definitions before execution. Assertions must pass; inspect values, not just completion.
08Python · executable cell
PYTHON · Code cell
# =====================================================================
# S01 | Code cell 03 | IoT threat modelling & risk register
# Purpose: implement only the mechanism named in this laboratory.
# Inputs: the explicit fictional fixture and reference parameters below.
# Output: printed observations and assertions for the controlled trial.
# =====================================================================
for reduction in (0,1,2): print(reduction,risk(reduction))
assert risk(1)[1]<risk(0)[1]
Ask Dr. Mohammad about this cell
09Instructions · Markdown
## Original portal implementation (reference only) These are the actual laboratory snippets. They are retained for comparison; follow the portal setup for WSL, hardware or services. They are **not** executed by Run all. ```bash python3 verification/sec169_practical.py all ```
10Instructions · Markdown
## 4. Results and analysis Record the actual output and whether the assertions pass. Identify a parameter to vary, state your prediction, repeat the reference calculation, then explain the changed result. | Trial | Configuration | Observation | Interpretation | |---|---|---|---| | A | Reference | | | | B | One controlled change | | | | C | Reference repeat | | | **Limitations:** Original closed defensive reference model; no external targets. Notebook success does not certify external equipment or services.
11Instructions · Markdown
## Guided reasoning and evidence A controlled comparison changes one independent input while keeping the other relevant inputs fixed; the dependent variable is the recorded output. Use this lab’s reference condition above. **Independent task:** 2. Keep the inherent scores fixed, enter proposed residual values and leave evidence at not tested. Residual result must stay Unverified. Record the named input, prediction, actual output and one limitation; restore the original condition and repeat. | Trial | Input/configuration | Prediction | Observation | Evidence / limitation | |---|---|---|---|---| | A | Reference | | | | | B | Changed input | | | | | A repeat | Reference | | | | A conclusion is supported only when it cites the recorded values or observed states and explains them with the experiment theory.
Shared research workbenches · network designer & advanced studies
Concurrent-device simulation & Monte Carlo research
Distributed digital twin · topology, protocol & battery research