Cryptography · Study deck

Core Security Properties

A smart lock receives an Open command.

Shield Shelly is your guide for this deck.

security-propertiesconfidentialityintegrity
Shield Shelly, the module guide, in a scene from this chapter.
iotclass.org

After studying this chapter

Learning objectives

You will be able to:

  • Explain: E1 protects a local link, E2 extends protection to a trusted gateway, E3 keeps selected payloads protected to their application endpoint, E4 authenticates and protects a transport session, and E5 governs keys across their lifecycle.
  • Explain: A bare hash, such as SHA-256 on its own, delivers neither origin nor secrecy: anyone can recompute it over modified data, so an attacker who changes the message can also recompute a matching hash.
  • Explain: Each property is an independent guarantee with its own mechanism, and a weakness in one does not show up in a test for another.
iotclass.org

Major section

Start With the Promise You Can Test · Security Properties Are Promises You Must Prove

A smart lock receives an Open command.

  • The owner may want outsiders unable to read it, any change detected, the sender checked, and an old valid command refused.
  • Hiding the command does not prove who sent it or whether someone has sent yesterday's command again.

Why it matters

A firmware approval record may not need secrecy at all, yet it may need non-repudiation because an auditor must verify which release authority signed it months later.

The quick property map separates runtime claims from lifecycle evidence, so each claim gets its own mechanism and rejection test.
The quick property map separates runtime claims from lifecycle evidence, so each claim gets its own mechanism and rejection test.
iotclass.org

Major section

Map Each Property to Where It Is Enforced

A property review turns a claim into evidence: it names the property, locates the boundary where it must hold, binds it to a mechanism, and proves it with a negative test.

  • The workflow above becomes concrete only when each property is placed at a system boundary.
  • Property It Enforces.
The E1-E5 levels show where each property is enforced and evidenced, not interchangeable security labels.
The E1-E5 levels show where each property is enforced and evidenced, not interchangeable security labels.
iotclass.org

Major section

Map Each Property to Where It Is Enforced (continued)

At each level, ask which claimed property is enforced, who can still read or alter plaintext, and which negative test records the proof.

  • This module organizes IoT protection into evidence levels E1 through E5, so a property review always asks not just which property but where it is established and where it stops.
  • Per-device key scope, tamper rejection, and replay-window tests.
  • Protection from a gateway that is allowed to decrypt.
iotclass.org

Major section

Map Each Property to Where It Is Enforced (continued)

E1 protects a local link, E2 extends protection to a trusted gateway, E3 keeps selected payloads protected to their application endpoint, E4 authenticates and protects a transport session, and E5 governs keys across their lifecycle.

  • A smart lock accepts an unlock command from a controller through a gateway.
  • The team proposes "the unlock command is encrypted end to end" as the control.
  • That supports a confidentiality claim for the payload.
iotclass.org

Major section

Mechanisms, Evidence, and Failure Modes

The deeper layer explains how each property is delivered, how it is evidenced, and how it fails.

  • Each property is an independent guarantee with its own mechanism, and a weakness in one does not show up in a test for another.
  • Confidentiality means unauthorized parties cannot learn protected content.
  • Freshness rejects a replayed valid message.

Key terms

Integrity
Integrity means any modification is detectable: the receiver can tell the bytes changed.

Why it matters

A keyed MAC or an AEAD tag delivers both for the data it covers, because only a holder of the key can produce a tag that verifies.

iotclass.org

Major section

Mechanisms, Evidence, and Failure Modes (continued)

Encryption provides it, but only across the boundary where it is applied.

  • A link-layer frame can be encrypted while the gateway still sees plaintext; a transport session can protect device-to-cloud bytes while the cloud stores decrypted payloads.
  • These two are constantly merged but make different promises.
  • Non-repudiation needs a signature.
iotclass.org

Major section

Mechanisms, Evidence, and Failure Modes (continued)

The review question is not "is it encrypted" but "who holds plaintext at each hop," which is why confidentiality is evidenced with a plaintext-owner map rather than an algorithm name.

  • Integrity means any modification is detectable: the receiver can tell the bytes changed.
  • Authenticity (data-origin authentication) means the data provably came from the claimed sender.
  • Unauthorized reader or intermediary sees only ciphertext and approved metadata.
iotclass.org

Major section

Mechanisms, Evidence, and Failure Modes (continued)

Plaintext leaks at a gateway, log, or support bundle.

  • A bare hash, such as SHA-256 on its own, delivers neither origin nor secrecy: anyone can recompute it over modified data, so an attacker who changes the message can also recompute a matching hash.
  • A hash becomes an integrity-and-authenticity control only once it is carried inside a MAC or a signature.
  • A modified message is rejected before the device acts.
iotclass.org

Major section

Mechanisms, Evidence, and Failure Modes (continued)

Without ephemeral keys, an attacker who records ciphertext today and steals the long-term key tomorrow can decrypt the recording.

  • A message can be confidential, unmodified, and from the right sender, and still be dangerous if it is old.
  • A tampered command changes state before any check.
  • A wrong or unknown sender or signer is rejected.
iotclass.org

Major section

Mechanisms, Evidence, and Failure Modes (continued)

Any party that answers is trusted as the sender.

  • The usual inputs are nonces, monotonic counters, sequence numbers, and timestamps with an acceptance window, each bound into the authenticated data so it cannot be altered.
  • Freshness also needs a recovery rule: the counter or window state must survive reboot, and a device that resets must not start accepting old messages again.
  • A third party verifies the signer; a MAC cannot bind one party.
iotclass.org

Major section

Mechanisms, Evidence, and Failure Modes (continued)

A shared-key MAC is claimed as proof of a single originator.

  • Availability, that the system keeps working, is a security goal, but cryptography does not provide it by itself.
  • A replayed or out-of-window message is rejected, with reboot recovery.
  • A valid old message is replayed and accepted as new.
iotclass.org

Deck summary

Key takeaways

A smart lock receives an Open command.

  • A property review turns a claim into evidence: it names the property, locates the boundary where it must hold, binds it to a mechanism, and proves it with a negative test.
  • At each level, ask which claimed property is enforced, who can still read or alter plaintext, and which negative test records the proof.
  • E1 protects a local link, E2 extends protection to a trusted gateway, E3 keeps selected payloads protected to their application endpoint, E4 authenticates and protects a transport session, and E5 governs keys across their lifecycle.
  • Encryption provides it, but only across the boundary where it is applied.
iotclass.org

Retrieval practice

Recall check 1 of 3

Shield Shelly says: answer from memory, then check your reasoning.

Q1A vendor says "our telemetry is encrypted, so it is secure." What is the strongest correction?

AEncryption already provides integrity and authenticity automatically
BThe data is secure as long as the key is long enough
CEncryption is outdated, so the device cannot be secure
DEncryption proves only confidentiality.
Show answer

Answer: D Encryption keeps content unreadable, but it does not by itself reject tampering, prove the sender, support denial-resistant third-party proof, or reject replay.

iotclass.org

Retrieval practice

Recall check 2 of 3

Shield Shelly says: answer from memory, then check your reasoning.

Q2A design encrypts telemetry on the local link (E1) and again on the gateway-to-cloud transport (E4), but the gateway decrypts and logs the sensitive fields. The team claims end-to-end confidentiality. What is the evidence-bound conclusion?

AThe gateway can read plaintext, so E2/E4 is not E3.
BIt is end-to-end because two encryption layers are present
CIt is end-to-end if the gateway logs are stored on a secure server
DIt is end-to-end if the local link key is long enough
Show answer

Answer: A Confidentiality is about who can read plaintext at each hop.

iotclass.org

Retrieval practice

Recall check 3 of 3

Shield Shelly says: answer from memory, then check your reasoning.

Q3A team protects firmware-approval messages with a shared-key HMAC and claims this proves to an auditor exactly which party approved each release (non-repudiation). Why is this claim wrong?

AHMAC is too weak, and a longer HMAC key would provide non-repudiation
BA shared HMAC key cannot prove which party sent it.
CHMAC provides no integrity, so the messages are unprotected
DNon-repudiation is automatic once the channel is encrypted
Show answer

Answer: B An HMAC gives integrity and shared-key authenticity, but both parties hold the same shared key, so either could have produced the tag.

iotclass.org

Print reference

Answers

Answer key.

  1. D · Encryption keeps content unreadable, but it does not by itself reject tampering, prove the sender, support denial-resistant third-party proof, or reject replay.
  2. A · Confidentiality is about who can read plaintext at each hop.
  3. B · An HMAC gives integrity and shared-key authenticity, but both parties hold the same shared key, so either could have produced the tag.
iotclass.org