V22.7 · Interactive algorithms, Python notebooks and WSL resources
Explore the 12 new essential cryptography laboratories alongside the existing Kali and defensive range.
Open the multi-tab IoT Security course →IoT Cybersecurity Laboratory
Secure the greenhouse data path, investigate defensive controls, verify cryptographic evidence and build a traceable threat assessment. No attack traffic is sent by this website.
Go beyond browser models: Kali WSL
Eleven actual local experiments in cryptography, MQTT, TLS, packet observation, privacy and threat analysis. Use this browser studio for concept practice, then verify controls in Kali.
Authentication, TLS trust & topic authorization
Choose a security profile, identity and requested operation. The modeled broker evaluates certificate trust, CONNECT authentication and topic policy separately. This is not a connection to a real broker.
ACL matrix: sensor publishes its own telemetry; viewer reads telemetry only; operator reads telemetry and publishes the designated control topic. Wildcard publish is invalid. TLS protects the client–broker hop, not automatically broker storage or subscriber processing.
TLS 1.3 handshake walkthrough (conceptual)
Server authentication shown; client certificates are optional. The encrypted handshake begins after ServerHello in TLS 1.3. 0-RTT has replay risks and is not enabled in this exercise.
Hash, MAC, authenticated encryption & signatures
Use fictional data. Keys are generated per run, not exported. Requires Web Crypto in localhost/HTTPS or a browser that supports it for local files.
| Algorithm / family | Purpose | Engineering decision |
|---|---|---|
| Ascon-AEAD128, Ascon-Hash256 | Lightweight AEAD and hashing | NIST SP 800-232; use a vetted implementation on constrained devices. Conceptual coverage only here. |
| AES-GCM | Confidentiality + authenticated integrity | Never reuse a nonce with a key. |
| DES / 3DES | Historical block ciphers | Legacy study only; do not select for new protection. |
| RSA / ECC | Public-key cryptography | Signature demos use RSA-PSS / ECDSA; trusted public-key binding is essential. |
| SHA-256 / HMAC | Hash / keyed authentication | A plain hash alone cannot authenticate a sender. |
Integrity, replay protection & data validation
Generate fictional signed greenhouse samples. Deliberate test cases are created only inside the browser, without sending packets. The receiver verifies a real HMAC, then checks sequence/timestamp and sensor ranges.
| Sequence | Temp. | Humidity | Decision | Reason |
|---|
Freshness uses a synthetic clock, a 30-second window and a per-session high-water sequence. Real devices require durable state, secure provisioning, clock policy and reset/rekey handling. A valid MAC cannot prove a compromised sensor reports the truth. The optional independent-reference rule is an explicitly fictional 25 °C reference with an 8 °C deviation threshold; it may flag legitimate environmental changes and is not a trained anomaly detector.
STRIDE · defensive attack tree · DREAD
Scope: ESP32 → MQTT broker → Node-RED / Telegraf → InfluxDB → Grafana. Trust boundaries are device/network, broker/service and application/user. Select planned controls, then verify them in an isolated environment.
| STRIDE | Asset / boundary | Concern | Mitigation | Status |
|---|
Defensive attack tree — goal: untrusted control action
OR between the two branches, AND between the leaves of each branch. Selected controls block modeled leaf conditions only; the tree is not exhaustive or proof of system safety.
DREAD scoring worksheet
Five equally weighted subjective ratings: Damage, Reproducibility, Exploitability, Affected users, Discoverability. 0–10 each. Course convention: mean <4 low, 4–<7 medium, ≥7 high. DREAD is a historical prioritization method, not an objective probability or a modern compliance standard.
Data minimization & pseudonymization
Use only necessary fields, limit retention and restrict access. Pseudonyms are not guaranteed anonymity; repeated sensor patterns may still identify people.
Fictional input → minimized output
Isolated authenticated MQTT over TLS
Use a separate broker bound to 127.0.0.1:8883; keep the original teaching broker on 1884 unchanged. No public broker, no port forwarding and no shared credentials. This is optional and must be verified on your machine.
Open the step-by-step practical guide →Test positive and negative authorization, inspect the broker log, and distinguish the client exit status from successful delivery. Stop the isolated broker with Ctrl+C.
Defense-in-depth engineering checklist
| Layer | Defensive design | Verification evidence |
|---|---|---|
| Hardware | Protect debug interfaces, provisioning and physical sensor connections. | Document access policy and compare independent sensor readings. |
| Firmware / software | Signed updates, trusted boot where supported, dependency maintenance and input validation. | Reject invalid updates on supported test hardware; record software versions and negative tests. |
| Network / protocol | Broker authentication, verified TLS, least-privilege topic ACLs, quotas and replay defenses. | Separate authorized delivery and denied requests; inspect certificate validation and broker logs. |
| Services / storage | Separate read/write tokens, protect logs, limit retention, avoid embedded credentials. | Read-only query account cannot write; verify retention and access policy. |
| Industrial control | Separate monitoring from control, fail-safe states, local interlocks, manual override and recovery plans. | Test only in the modeled factory; verify behavior after simulated communication or actuator failure. |
These are design and verification tasks; this browser does not test firmware boot, industrial equipment or actual hardware security.
Source-aligned links
Security engineering knowledge check
Answer the scenario questions, then grade the whole attempt. The practice score is not an official grade.
Security review and experiment notebook
Export the last completed policy check, cryptographic verification status, telemetry decisions, threat worksheet and quiz outcome. Keys, MAC tags, custom cryptography messages, ciphertext and credentials are not included. Fictional telemetry values and verification outcomes are included. The selected controls are not certified.
Standards and reading
NIST SP 800-232 (Ascon) · TLS 1.3 (RFC 9846) · Mosquitto configuration · MQTT 3.1.1 · OWASP Threat Modeling
Advanced Cybersecurity Range
Eight closed defensive experiments, independent local checks, a clickable prerequisite graph and notebook evidence.