Skip to content
PSUT / IoTEngineering learning studio
WORKSPACE
Offline-first portalDr. Mohammad Alja’afreh
Cyber Defense StudioIoT Security and PrivacyExperimentsWorkspaces
SEC cryptography curriculum →

V22.7 · Interactive algorithms, Python notebooks and WSL resources

IoT Security and Privacy · Essential applied cryptography

Explore the 12 new essential cryptography laboratories alongside the existing Kali and defensive range.

Open the multi-tab IoT Security course →
ENGINEERING WORKSPACE
Home/Engineering Workspaces/IoT Cybersecurity Laboratory
PSUT IoT Engineering StudioPrincess Sumaya University for Technology · Dr. Mohammad Alja’afreh
Security & privacy
IoT Security and Privacy

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.

PRACTICAL TRACK

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.

Open Kali practical laboratory →
01 · MQTT security model

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.

IoT deviceBrokerDashboardIdentityAuth + ACLLeast privilegeTLSPolicy result

    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.

    02 · Cryptography bench · real browser cryptography

    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.

    Choose an algorithm and execute.
    Algorithm / familyPurposeEngineering decision
    Ascon-AEAD128, Ascon-Hash256Lightweight AEAD and hashingNIST SP 800-232; use a vetted implementation on constrained devices. Conceptual coverage only here.
    AES-GCMConfidentiality + authenticated integrityNever reuse a nonce with a key.
    DES / 3DESHistorical block ciphersLegacy study only; do not select for new protection.
    RSA / ECCPublic-key cryptographySignature demos use RSA-PSS / ECDSA; trusted public-key binding is essential.
    SHA-256 / HMACHash / keyed authenticationA plain hash alone cannot authenticate a sender.
    03 · Defensive telemetry receiver

    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.

    No sample received.
    SequenceTemp.HumidityDecisionReason

    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.

    04 · Threat modeling & risk analysis

    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.

    STRIDEAsset / boundaryConcernMitigationStatus

    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.

    05 · Privacy engineering

    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

    06 · Optional actual WSL practice

    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

    LayerDefensive designVerification evidence
    HardwareProtect debug interfaces, provisioning and physical sensor connections.Document access policy and compare independent sensor readings.
    Firmware / softwareSigned updates, trusted boot where supported, dependency maintenance and input validation.Reject invalid updates on supported test hardware; record software versions and negative tests.
    Network / protocolBroker authentication, verified TLS, least-privilege topic ACLs, quotas and replay defenses.Separate authorized delivery and denied requests; inspect certificate validation and broker logs.
    Services / storageSeparate read/write tokens, protect logs, limit retention, avoid embedded credentials.Read-only query account cannot write; verify retention and access policy.
    Industrial controlSeparate 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

    07 · Formative assessment

    Security engineering knowledge check

    Answer the scenario questions, then grade the whole attempt. The practice score is not an official grade.

    Not graded.
    08 · Evidence & Dr. Mohammad

    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

    V16.9 · new laboratory

    Advanced Cybersecurity Range

    Eight closed defensive experiments, independent local checks, a clickable prerequisite graph and notebook evidence.