Question 01
For Sinkhole attack, contrast the normal operation with the prepared incident. Identify the exact assumption that fails and explain the effect on availability and confidentiality.
Seven sensor readings follow validated multi-hop paths toward a base station.
The supplied anomalous topology concentrates traffic at an untrusted relay; records indicate that some readings never reach the base station.
The laboratory evaluates availability and confidentiality by inspecting fixed observations and comparing explicitly defined defensive decisions. Validate routing advertisements against trusted topology and use the known alternate route.
Read the related prerequisite experiments and the technical definitions in Concepts. Required: a web browser, and optionally Python 3 (standard library) in WSL or Google Colab. No physical targets or radios are needed.
Use the baseline and prepared incident records, then change only the defensive policy or review threshold. Capture results, compare the same dataset, verify calculations with Python, and submit an evidence table and engineering conclusion.
An authenticated compromised relay can still misbehave; end-to-end delivery monitoring is necessary.
Follow the recorded mechanism in order. Each stage uses fixed synthetic observations. No traffic, radio or hardware action is performed.
Compare like units only. A positive difference is not automatically an improvement.
Use the Simulation tab for the research competency exercise.
A route can appear attractive while concentrating traffic at an untrusted relay. Delivery and route integrity must be assessed separately.
Nₛ and Nᵣ are sent and uniquely received packet records. Each hᵢ counts edges on a reported route. A path is verified only when every edge is in the trusted graph. Delivery and exposure are distinct observed fields. Mean received delay is the sum of supplied delay observations divided by the number of received packets; it is undefined for zero delivery. Delay is not inferred from hops.
Model limitation: An authenticated compromised relay can still misbehave; end-to-end delivery monitoring is necessary.
Concept illustrations are based on the laboratory's prepared synthetic data and default model settings. Explore adjustable controls and event-level evidence in the Simulation tab. Amber indicates a finding or unverified condition; blue represents reference observations; green indicates accepted or valid observations; red indicates failed or unsafe conditions.
Compare the same named measurement across the three prepared scenarios. Inspect which evidence changes and which remains invariant; distinguish the security property from a proxy measurement.
Numbers come from the original scenario trace model. Bar lengths show signed values on a common zero-centered scale. The defensive parameter study below uses its own explicitly stated dataset.
Nₛ and Nᵣ are sent and uniquely received packet records. Each hᵢ counts edges on a reported route. A path is verified only when every edge is in the trusted graph. Delivery and exposure are distinct observed fields. Mean received delay is the sum of supplied delay observations divided by the number of received packets; it is undefined for zero delivery. Delay is not inferred from hops.
For the complete sequence, open Simulation and step through the evidence. The architecture player below explains additional relationships.
Seven sensor readings follow validated multi-hop paths toward a base station.
Arrows denote conceptual relationships and evidence checks, not executable attack instructions. The original mechanism illustration below provides additional technical detail.
Seven sensor readings follow validated multi-hop paths toward a base station.
The supplied anomalous topology concentrates traffic at an untrusted relay; records indicate that some readings never reach the base station.
The seven-sensor diagram distinguishes a base station (collection point), parent (next hop) and an unverified relay. A sinkhole describes attraction of routing traffic, not necessarily dropping every packet. A blackhole instead characterizes complete forwarding failure; a sinkhole may forward, copy or lose packets. Trusted edges are reference topology evidence, not live route advertisements.
Inspect the specific observations: Sensor 1, Sensor 2, Sensor 3, Sensor 4, Sensor 5, Sensor 6, Sensor 7. Distinguish these records from verified malicious behavior. The model calculates Sent packets, Unique received, Missing packets, PDR (%), Loss (%), Validated path (mean hops), Reported path (mean hops), Unverified path records, Mean received delay (ms), Exposure indicators.
Nₛ and Nᵣ are sent and uniquely received packet records. Each hᵢ counts edges on a reported route. A path is verified only when every edge is in the trusted graph. Delivery and exposure are distinct observed fields. Mean received delay is the sum of supplied delay observations divided by the number of received packets; it is undefined for zero delivery. Delay is not inferred from hops.
7 unique packet records; 2 received in the incident; 7 received in supplied validated-route comparison; 0 exposure indicators. Trusted route sample: S1 → R2 → Base. Incident path sample: S1 → Unverified relay → Base. All incident path edges involving the unverified relay are absent from the trusted graph. Incident received delays (ms): 38, 42; validated received delays (ms): 22, 25, 28, 31, 22, 25, 28. Missing packets have no observed delay.
Step 1. Identify the defined inputs and units. Step 2. Calculate the baseline and incident metrics using the governing relation. Step 3. Apply the stated defensive rule to the same incident observations. Step 4. Compare results rather than assuming every anomaly is malicious.
| Metric | Normal | Incident | Defensive comparison |
|---|---|---|---|
| Sent packets | 7 | 7 | 7 |
| Unique received | 7 | 2 | 7 |
| Missing packets | 0 | 5 | 0 |
| PDR (%) | 100.0 | 28.571429 | 100.0 |
| Loss (%) | 0.0 | 71.428571 | 0.0 |
| Validated path (mean hops) | 2.428571 | 2.428571 | 2.428571 |
| Reported path (mean hops) | 2.428571 | 2.0 | 2.428571 |
| Unverified path records | 0 | 7 | 0 |
| Mean received delay (ms) | 23.857143 | 40.0 | 25.857143 |
| Exposure indicators | 0 | 0 | 0 |
Verification: reproduce these public teaching results with the attached model script. The protected assigned exercises use different inputs.
Validate routing advertisements against trusted topology and use the known alternate route.
An authenticated compromised relay can still misbehave; end-to-end delivery monitoring is necessary.
Open interactive network & digital twin designer ↗ · optional shared engineering workspace
Scope: Seven sensor readings follow validated multi-hop paths toward a base station. The supplied anomalous topology concentrates traffic at an untrusted relay; records indicate that some readings never reach the base station.
Defensive control: Validate routing advertisements against trusted topology and use the known alternate route.
Execute an event-driven defensive teaching model on the selected synthetic scenario. Inspect input fields, state transitions, and calculated results. The clock advances to the next scheduled event, not a fixed animation frame. Existing scenario results above remain the reference; time and service settings below introduce explicit hypothetical assumptions.
| Time | Event | Record | Observation |
|---|
Model assumptions:
Investigate two defensive configurations using the same prepared evidence. Compare complete-run metrics, inspect event ordering and state one modeling limitation. Download the event trace to reproduce your observations.
Use the primary replay controls above to select a scenario and event. The diagram follows the active record; numerical comparisons use the complete scenario totals. All observations are synthetic.
Select a replay event.
A positive difference is not automatically an improvement. Check what the metric measures.
The export records your current event, comparison and interpretation. It is a formative record, not an automatically graded assessment.
Vary the allowable defensive budget without modifying the supplied incident. Reclamation is limited to eligible entries; energy and recovery budgets compare fixed scenario results.
Independent teaching calculation. This slider does not alter the primary replay.
Keep the supplied observation records fixed. Vary the observation spacing and engineering acceptance criterion, then step through the modeled timeline. This is a controlled computational investigation, not live traffic or radio activity.
Capture the current primary replay event.
Engineering verification:
Objective feedback checks arithmetic and record identification, not written interpretation. Records are local to this browser; this is not a graded or authenticated assessment.
Recorded fields, not raw captured packets. Calculations distinguish current-event evidence from scenario totals.
Select a replay event above. The fields, numerical practice and statistical evaluation below follow the current scenario. All records are synthetic.
Descriptive fractions refer to the entire selected scenario, not the currently reviewed prefix. Sampling assumptions are not provided by the model.
New teaching assumptions: one legitimate arrival per virtual tick; one confirmed expired entry reclaimed per selected interval; cleanup precedes arrival if simultaneous; no retries, new hostile traffic or actual time units. Initial occupancy and arrival count come from this lab's supplied incident data. This model does not replace the replay above.
Use the main replay to choose an observation. These visualizations use the same synthetic event and scenario totals, not captured traffic or hardware measurements.
Select an event in the primary replay.
Repeat the investigation using the Normal, Incident and Defended controls above. Compare the calculated evidence before writing a conclusion. All data are synthetic.
Only fictional legitimate arrivals and confirmed expiration records. This independent teaching model holds initial occupancy and arrivals fixed.
These are calculated totals for each scenario, not partial totals at the selected event. A zero denominator is reported as undefined. Controls operate on supplied fictional observations, not a physical network.
Model assumptions: 7 unique packet records; 2 received in the incident; 7 received in supplied validated-route comparison; 0 exposure indicators. Trusted route sample: S1 → R2 → Base. Incident path sample: S1 → Unverified relay → Base. All incident path edges involving the unverified relay are absent from the trusted graph. Incident received delays (ms): 38, 42; validated received delays (ms): 22, 25, 28, 31, 22, 25, 28. Missing packets have no observed delay.
Residual limitations: An authenticated compromised relay can still misbehave; end-to-end delivery monitoring is necessary.
Defensive engineering · V25.4
Hold the documented synthetic observations constant. Select two permitted defensive settings, inspect the discrete response, and explain the change in the named metrics. This is a separate mechanism study, not a live attack or the scenario trace dataset above.
Controlled variable:
Reclaim only confirmed expired entries. Then process the fixed authorized arrivals individually. The state is recomputed when the comparison setting changes.
| Metric | Reference | Comparison | Change |
|---|
Investigation: Identify a setting at which the selected outcome changes. Choose a second metric and check whether it changes in the same direction. Record both settings, both outcomes, and the model limitation. If a metric is invariant, explain why it cannot demonstrate the effect of the selected control.
Limitation: The displayed range is a deterministic sensitivity analysis, not a statistical confidence interval.
Scientific simulation · V25.2
Follow the active observation above. The equations use the same fixed synthetic inputs and selected threshold. Scenario totals are not partial event counts.
The highlighted row identifies the active scenario. All observations are synthetic.
Download the snapshot and run the independent Python reference calculator. It recomputes the three scenarios and reports metric disagreements using only the standard library.
python verify_snapshot.py your-snapshot.json
Upload the notebook to Google Colab, run its reference-code cell, then upload the snapshot in its verification cell.
Local deterministic explanation; no online AI service required.
Use the current simulation and the three-scenario comparison to develop your own engineering interpretation. All quantities are calculated from synthetic observations, not physical measurements.
Practice only; not an instructor grade. Questions are generated from the current model, not a protected answer bank.
Draft stored locally when edited.
Open the downloaded HTML in your browser to print or save as PDF. No data is sent to an external service.
Fixed 7 sent records, 2 incident receipts and 7 receipts on the supplied alternate path. Compare both observed delivery ratios to a defensive service-level threshold.
Each bar pair uses its own metric scale and identical units. Fixed fictional observations; not measured deployment results.
Interpretation and limitations: A route change is a supplied comparison, not a guarantee of future delivery.
Objective: Investigate how the documented defensive setting changes the named metrics while the supplied observations remain fixed. Compare at least two settings, explain the change or lack of change, and identify a limitation. All data are fictional teaching observations.
Rows are calculated from the mechanism model. The outlined row is the current simulator setting. Choose one metric for a unit-consistent chart.
No automatic submission. Saved data remain in this browser and may be lost when browser storage is cleared. Export before switching devices.
Evaluate the prepared observation set. The controls modify only defensive acceptance, containment or review thresholds; they never generate traffic or operate a real device.
Select a prepared record to inspect its calculated state. Playback animates recorded relationships; it sends no traffic and operates no device.
Defensive control: Validate routing advertisements against trusted topology and use the known alternate route.
7 unique packet records; 2 received in the incident; 7 received in supplied validated-route comparison; 0 exposure indicators. Trusted route sample: S1 → R2 → Base. Incident path sample: S1 → Unverified relay → Base. All incident path edges involving the unverified relay are absent from the trusted graph. Incident received delays (ms): 38, 42; validated received delays (ms): 22, 25, 28, 31, 22, 25, 28. Missing packets have no observed delay.
Research question: Does the specified defensive control improve availability and confidentiality in the supplied model, and which limitations remain?
Fixed observations: 7 unique packet records; 2 received in the incident; 7 received in supplied validated-route comparison; 0 exposure indicators. Trusted route sample: S1 → R2 → Base. Incident path sample: S1 → Unverified relay → Base. All incident path edges involving the unverified relay are absent from the trusted graph. Incident received delays (ms): 38, 42; validated received delays (ms): 22, 25, 28, 31, 22, 25, 28. Missing packets have no observed delay.
| Metric | Normal | Incident | Defended |
|---|---|---|---|
| PDR (%) | — | — | — |
| Reported path (mean hops) | — | — | — |
| Unverified path records | — | — | — |
| Mean received delay (ms) | — | — | — |
Submit: three scenario traces, a completed comparison table, the supplemental CSV/JSON, and a justified conclusion distinguishing synthetic measurements from physical evidence.
Derive answers from the given assigned dataset. Teaching examples use different inputs. Export your independent work for instructor review.
For Sinkhole attack, contrast the normal operation with the prepared incident. Identify the exact assumption that fails and explain the effect on availability and confidentiality.
Assigned dataset (different from the teaching example). 10 unique packet records; 3 received in the incident; 9 received in supplied validated-route comparison; 0 exposure indicators. Trusted route sample: S1 → R2 → Base. Incident path sample: S1 → Unverified relay → Base. All incident path edges involving the unverified relay are absent from the trusted graph. Incident received delays (ms): 38, 42, 46; validated received delays (ms): 22, 25, 28, 31, 22, 25, 28, 31, 22. Missing packets have no observed delay. Calculate Unique received, PDR (%), Loss (%), Unverified path records, Mean received delay (ms) for the incident before applying the defensive control. Show the intermediate steps.
Using the same assigned dataset in question 2, Use the enforcing defensive policy. Calculate Unique received, PDR (%), Loss (%), Unverified path records, Mean received delay (ms) again without changing the observed records.
Compare the incident and defensive outputs from questions 2 and 3. State the changes with units, and identify a measured or computed quantity that remains unchanged.
Inspect the assigned dataset, particularly the record or state labeled “Packet 1”. Explain the decision before and after the defensive policy; identify another row whose status differs, if present. Do not infer an incident solely from one observation.
An operator claims that sinkhole attack is ruled out because the ordinary service is still responding. Explain whether that conclusion follows from this laboratory, and name two specific evidence sources to check.
Plan a reproducible comparison for Sinkhole attack: specify the prepared incident, the one defensive variable, the unchanged inputs, three metrics or observations, and a result-table layout.
Propose a defensive deployment policy for the fictional sinkhole attack case. Justify the chosen checks, one residual limitation, one operational trade-off, and a verification criterion that avoids overclaiming security.
For the mechanism study, use the fixed observations described below. Set Minimum validated delivery (%) to 100. Derive each named metric by hand before running the model; compare with the first allowed setting (25). Identify one limitation of the inference.
Fixed 7 sent records, 2 incident receipts and 7 receipts on the supplied alternate path. Compare both observed delivery ratios to a defensive service-level threshold.
All implementations are read-only teaching calculations using the Python standard library. The toolkit contains a separate data file and script for this laboratory. Extract the ZIP into your home directory; it will not overwrite the original PSUT WSL environment.
# Extract once, from the directory containing the ZIP
unzip PSUT_V24_8_0_IoT_Threat_WSL.zip -d ~
# Activate the isolated PSUT threat environment
source ~/psut-threat/activate.sh
cd ~/psut-threat/labs/iot-threat/it-b02
ls
python3 lab.py
python3 test_lab.py# ------------------------------------------------------------
# Copyright © 2026/2027 Dr. Mohammad Alja'afreh.
# PSUT IoT Engineering Studio · B02 · Sinkhole attack
# Fixed synthetic evidence only; no network or device I/O.
# ------------------------------------------------------------
from collections import Counter, deque
from math import log2
import json
# Evaluate the supplied teaching records. Each metric is derived from the selected observation and control.
def route(d, scenario, protect, threshold):
case=d['paths']['defended' if scenario and protect else 'incident' if scenario else 'baseline'];n=len(case);edges={tuple(sorted(e)) for e in d['edges']};got=sum(r['delivered'] for r in case);exposure=sum(r['exposed'] for r in case);bad=[any(tuple(sorted((a,b))) not in edges for a,b in zip(r['path'],r['path'][1:])) for r in case];hops=sum(len(r['path'])-1 for r in case)/n;normal=sum(len(r['path'])-1 for r in d['paths']['baseline'])/n
return {'metrics':{'Sent packets':n,'Unique received':got,'Missing packets':n-got,'PDR (%)':round(100*got/n,6),'Loss (%)':round(100*(n-got)/n,6),'Validated path (mean hops)':round(normal,6),'Reported path (mean hops)':round(hops,6),'Unverified path records':sum(bad),'Mean received delay (ms)':round(sum(r['delay_ms'] for r in case if r['delivered'])/got,6) if got else None,'Exposure indicators':exposure},'rows':[[f'Packet {i+1}',' → '.join(r['path'])+(' (unverified edge)' if b else ''),f'Delivered · {r["delay_ms"]} ms' if r['delivered'] else 'Missing'] for i,(r,b) in enumerate(zip(case,bad))]}
from pathlib import Path
# Resolve the bundled dataset relative to this script (not the current directory).
DATA = json.loads(Path(__file__).with_name("observations.json").read_text(encoding="utf-8"))
if __name__ == "__main__":
# Baseline, prepared incident, and defensive comparison; same fixed incident input.
for scenario, protect, threshold in [(0, 0, 20), (1, 0, 20), (1, 1, 20)]:
result = route(DATA, scenario, protect, threshold)
print(json.dumps({"scenario": scenario, "protect": protect, "threshold": threshold, "result": result}, ensure_ascii=False))
Hypothesis: Validate routing advertisements against trusted topology and use the known alternate route. Compare the same incident record set, using the original policy and the specified defensive rule. Keep the observation window, data and units fixed. Record each configuration, repeat it twice, and report any disagreement. For threshold-based models use the stated threshold values; a deterministic repetition is not a new random sample.
| Run | Scenario | Defensive setting | Metric values | Evidence and interpretation |
|---|---|---|---|---|
| 1 | Baseline | Reference | ||
| 2 | Incident | Monitor only | ||
| 3 | Incident | Defensive comparison |
Explain how the chosen control addresses the stated mechanism, which risk remains, and what independent evidence would be needed before applying a policy to a real authorized system. An authenticated compromised relay can still misbehave; end-to-end delivery monitoring is necessary.
Run the supplied standalone calculation using the same fixed records. Compare each documented setting, record the values, and interpret the differences.
Download mechanism study Pythonpython3 mechanism_study.py
python3 test_mechanism_study.py# ------------------------------------------------------------
# PSUT IoT Engineering Studio · B02
# Defensive analysis of synthetic records only; no network I/O.
# ------------------------------------------------------------
"""Fixed 7 sent records, 2 incident receipts and 7 receipts on the supplied alternate path. Compare both observed delivery ratios to a defensive service-level threshold."""
import json
# Editable defensive setting (only the documented choices are permitted).
CHOICES = [25, 50, 75, 100]
DEFAULT = 75
def analyze(x):
"""Return independently interpretable defensive metrics."""
if isinstance(x, bool) or x not in CHOICES:
raise ValueError("Choose a documented defensive setting")
return {
'Incident PDR (%)': 200/7,
'Validated PDR (%)': 100,
'Incident below target': int(200/7<x),
'Validated below target': int(100<x),
'Recovered receipts': 5
}
if __name__ == "__main__":
for setting in CHOICES:
print(json.dumps({"setting": setting, "metrics": analyze(setting)}))
The primary notebook includes the same study and an editable setting. A route change is a supplied comparison, not a guarantee of future delivery.
Recall the explanation before revealing it. Local ratings are for revision only.
Seven sensor readings follow validated multi-hop paths toward a base station.
The supplied anomalous topology concentrates traffic at an untrusted relay; records indicate that some readings never reach the base station.
Availability and confidentiality
Validate routing advertisements against trusted topology and use the known alternate route.
Nₛ and Nᵣ are sent and uniquely received packet records. Each hᵢ counts edges on a reported route. A path is verified only when every edge is in the trusted graph. Delivery and exposure are distinct observed fields. Mean received delay is the sum of supplied delay observations divided by the number of received packets; it is undefined for zero delivery. Delay is not inferred from hops.
An authenticated compromised relay can still misbehave; end-to-end delivery monitoring is necessary.
Submit reasoned responses for instructor review. No protected grading key is distributed to students.
Explain why sinkhole attack cannot be diagnosed from one generic security indicator. Use two named observations from this lab.
Using the controlled comparison from your experiment, justify the chosen policy and give a criterion for accepting its result. Explain a remaining limitation.
Your classmate reports that all observed anomalies prove a successful real-world attack. Critique that statement using the limitations of Sinkhole attack and propose a second source of evidence.