Security: Threats & Defense · Study deck

IoT Security Fundamentals

Picture a heating controller receiving a command from the right account after that account was stolen.

Shield Shelly is your guide for this deck.

iot-securitysecurity-fundamentalsattack-surface
Iot Security Fundamentals cover: Shelly protecting an IoT device-to-cloud path with layered security shields.
iotclass.org

After studying this chapter

Learning objectives

A security claim becomes testable when the asset, boundary, and expected behavior are explicit.

  • Name the asset before selecting its control.The protected thing may be a command, credential, firmware image, identity, or operational record.
  • Interfaces expose crossings into different trust contexts.Data, commands, identities, and responsibility can change hands at each boundary.
  • Review device, communication, service, lifecycle, and monitoring evidence together.An encrypted link can coexist with a weak boot path or unverified update process.
  • Refusal, detection, and recovery test different control types.Each control needs an observation that demonstrates the behavior it was meant to provide.

I begin with the heating controller's command path. I name the protected action and the boundary before deciding which allowed and denied tests to run.

iotclass.org

Major section

Test the command beyond login

A stolen account can pass login checks while sending commands the owner never intended.

  • Identify the command path and physical action at risk.The chapter heating controller can receive an unwanted command through a stolen account.
  • An allowed command provides the baseline for changed-condition tests.Change the sender, content, time, route, and software version to exercise the boundary.
  • Record refusals, alerts, safe local behavior, and recovery.Network removal and device restart reveal behavior that a successful login cannot establish.
  • Login leaves permission and current policy to be checked.The right account does not prove that this command belongs with this device.

I start with one permitted heating command, then change its sender and timing. I record refusals and restart behavior beside the original result.

iotclass.org

Major section

Trace the asset-to-evidence map

Read the map left to right: a named asset needs protection at a reachable surface, with observed behavior proving the control.

  • The asset card names what needs protection.Commands, credentials, firmware, and records can each be read, altered, or disrupted.
  • Follow the surface card to the interfaces reaching that asset.Radios, ports, accounts, APIs, and update paths create places to test.
  • The control card identifies protection at the crossing.The measure must address a stated threat at a specific trust boundary.
  • Finish at evidence of allowed and denied behavior.Observed results complete the claim that the selected control actually works.
The fundamentals map: every control links an asset, the surface where it can be reached, the control, and the evidence that the control works.
The fundamentals map: every control links an asset, the surface where it can be reached, the control, and the evidence that the control works.
iotclass.org

Major section

Separate secrecy, integrity, availability, and safety

Security properties describe different ways a connected product can fail its owner.

  • Confidentiality limits who can read protected information.For a smart lock, the credential that opens the door must stay private.
  • Integrity concerns unauthorized changes to data, commands, and code.The lock's unlock command needs protection against alteration without permission.
  • Availability concerns whether the required function remains usable.The owner still needs access when the connected lock is required.
  • Safety adds the consequences of physical action.A tampered actuator can move a real object and harm what the system touches.

I review the smart lock one property at a time. I distinguish a private credential, a protected command, and the owner's ability to enter.

iotclass.org

Major section

Follow exposure across cloud, network, and device

Cloud, network, and device reviews follow the same asset through different exposure points.

  • Cloud review checks private data and account access.The same review includes theft, corruption, and misuse of stored information.
  • Network review checks unauthorized access and protected routing paths.Wireless links and machine-to-machine traffic need evidence instead of automatic trust.
  • Device review includes stolen hardware and exposed secrets.A node may be hacked, broken, or recruited into another attack.
  • A claim can cross several tiers.Record where each check runs so the response follows the asset's actual exposure.

I follow a credential from the device toward its service account. I mark local access and network crossings so each check has a definite place.

iotclass.org

Major section

Identity and permission answer different questions

Separate the identity check from the decision about permitted actions.

  • Authentication establishes the identity a party presents.The security record still needs a separate decision about what that identity may do.
  • Authorization decides which actions an identity may perform.Broker rules can allow gateway commands while refusing the same publish from a sensor.
  • Encryption does not decide who may publish actuator commands.Protecting the channel leaves the command permission boundary to be enforced.
  • Permitted and forbidden senders are both tested.Keep the accepted gateway command and logged sensor refusal with the authorization rules.

I connect the sensor over an encrypted channel and try the gateway-only command. I expect a logged refusal, then test the permitted gateway identity.

iotclass.org

Activity 1 · Predict

✎ An encrypted command from the wrong role

I want you to separate a protected channel from permission to move the actuator.

A sensor identity uses an encrypted connection to publish an actuator command. Only gateway identities are allowed. Predict the broker outcome and write the allowed and denied tests needed to support the claim.

3 minutes · Pen and paper · Answer: Activity 1

Your answer
iotclass.org

Major section

Turn feature claims into observed behavior

A product feature becomes evidence only when its claimed behavior is exercised.

  • An encrypted link needs separate identity and permission checks.It also leaves availability as its own claim requiring evidence.
  • A firewall diagram does not demonstrate traffic refusal.Exercise the boundary with the unwanted traffic it is supposed to reject.
  • A smart lock needs several properties at once.Private credentials, authorized commands, and usable access support different parts of its purpose.
  • Attach each observed result to the property being tested.A feature list cannot replace reproducible evidence for a specific control.

I take the smart lock's encryption claim and ask what was tested. I keep channel protection separate from permission to unlock and continued owner access.

iotclass.org

Major section

Inventory the doors into the device

The attack surface includes local access and maintenance paths as well as network traffic.

  • Inventory radios, ports, accounts, APIs, and update paths.Every reachable interface contributes to the surface where the asset can receive input.
  • Physical access can expose maintenance and storage paths.Reset buttons, debug ports, and removable storage need review alongside network services.
  • Remove unused interfaces before hardening required ones.Disabling an unnecessary port or closing a service reduces the reachable attack surface.
  • Keep ownership visible across the installed lifetime.The device still needs accountable maintenance when updates or recovery become necessary.

I inspect the device's network interface and local maintenance ports. I remove unused paths, then record who maintains the ones that must stay.

iotclass.org

Major section

Match controls to device capability

Device capability changes which update and monitoring promises are credible.

  • Top-tier devices usually support mature operating systems and endpoint controls.The chapter examples include laptops, tablets, and smartphones with stronger update support.
  • Middle-tier products vary in updates and monitoring.Televisions, thermostats, and appliances do not all have the same endpoint capability.
  • Bottom-tier devices combine limited compute with diverse firmware.Tags, lightbulbs, and simple sensors make patching and inventory harder at fleet scale.
  • Choose evidence that fits the deployed maintenance capacity.The review must establish what the actual devices and their owners can support.

I compare a laptop with the building's simple sensors. I check each update and monitoring path before applying the laptop's maintenance assumptions to the fleet.

iotclass.org

Major section

Plan maintenance for a diverse fleet

A larger population of simpler devices makes inventory and long-term support harder.

  • Low compute capacity can restrict local protection and diagnostics.Simple sensors and controls may not support the endpoint tools used on larger devices.
  • Diverse software complicates consistent patching.Differences in hardware, firmware, and operating systems make fleet inventory essential.
  • Establish maintenance ownership and reachable network paths.The review needs to know who can fix the device and which systems it can reach.
  • Small devices still need a credible update path.Long field life does not remove the need to recover devices already installed.

I inventory the building's simple sensors before promising fleet updates. I record their owners, reachable paths, and recovery options beside their actual capabilities.

iotclass.org

Major section

Learn from the Mirai defaults

The Mirai example connects weak defaults with consequences beyond the compromised device.

  • Mirai recruited cameras, routers, and recorders through known default credentials.The chapter's 2016 example shows how weak defaults enabled remote control of devices.
  • Compromised devices contributed traffic to large DDoS attacks.The damage extended beyond the individual camera, router, or recorder that was recruited.
  • Replace shared defaults and close unnecessary management services.Failed-login logs provide evidence of attempted access rather than leaving it invisible.
  • Segment devices awaiting repair and retain a tested update path.Field recovery needs a way to restore devices that cannot be fixed immediately.

I review the connected camera for shared defaults and exposed management. I check failed-login evidence and the repair path before accepting its place on the network.

iotclass.org

Major section

Follow the five domain spokes

Start at the wheel’s central assets, then follow the domain spokes that protect them.

  • Firmware, data and commands sit at the centre of the claim.The wheel keeps the same protected assets visible across every domain.
  • Follow device and communication spokes toward their exposure points.Hardware controls, peer identity, and message protection contribute different evidence.
  • The service spoke covers identity, permissions, and data handling.Authentication, authorization, input checks, and stored-data protection belong in that review.
  • Lifecycle and monitoring connect maintenance with detection and response.Provisioning, update, retirement, logs, and alerts support the same asset over time.
The five domains share the same assets. A secure update, for example, depends on device, communication, service, and monitoring evidence at once.
The five domains share the same assets. A secure update, for example, depends on device, communication, service, and monitoring evidence at once.
iotclass.org

Major section

Match the control to its proof

Different control types need different demonstrations of success.

  • Preventive evidence shows an unauthorized action being refused.Authorization or segmentation needs a denied case alongside its configured rule.
  • Detective evidence shows the intended event producing a log or alert.The observation must exercise the event the control is meant to catch.
  • Corrective evidence compares states before and after recovery.Credential rotation or firmware rollback needs a tested recovery run.
  • A configured feature alone does not establish these outcomes.Each control type needs evidence that demonstrates its own purpose.

I pair the broker's authorization rule with a denied publish. I then trigger the intended alert and compare the system before and after recovery.

iotclass.org

Activity 2 · Match

✎ Match each control to its proof

I want you to pair each control with an observation that actually tests its purpose.

Match authorization, segmentation, audit logging, credential rotation, and firmware rollback to these proofs: denied publish, blocked traffic, recorded event, tested credential recovery, and tested firmware recovery. Mark each pair preventive, detective, or corrective.

4 minutes · Pen and paper · Answer: Activity 2

Your answer
iotclass.org

Major section

Test the actuator-command boundary

The actuator-command example makes a narrow security claim reviewable.

  • Name the broker entry point enforcing command permissions.A narrow claim can state that only gateway identities may publish actuator commands.
  • Tie each identity to its permitted publish topics.The sensor and gateway roles must produce different decisions at the same boundary.
  • Keep the accepted gateway test and logged sensor refusal.Together with the rules, they show both allowed and denied behavior.
  • Retest after changes that affect the claim.New roles, credential rotation, broker configuration changes, or incidents reopen the review.

I send the same actuator command as gateway and sensor. I preserve the acceptance and logged refusal with the rules, then record the retest triggers.

iotclass.org

Major section

Read the durable security review record

Read down the review sheet from its narrow claim to the change that requires retesting.

  • The review sheet starts from the asset and boundary rows.They identify what is protected and the crossing where the claim is enforced.
  • Follow the threat and control rows together.The unwanted action must connect to a measure intended to reduce that risk.
  • Observed evidence records both allowed and denied tests.The review sheet preserves actual behavior instead of an assurance based on configuration alone.
  • Finish with the retest trigger.Role, firmware, configuration, or topology changes can make the earlier result insufficient.
The review record makes a claim durable: it ties the claim to a boundary, a control, observed evidence, and the change that would force a retest.
The review record makes a claim durable: it ties the claim to a boundary, a control, observed evidence, and the change that would force a retest.
iotclass.org

Major section

Make the protection layers independent

Layering helps when defeating one control does not defeat the remaining protections.

  • Device, network, and service controls must be independently enforced.Authentication, segmentation, and authorization help when defeating one leaves the others effective.
  • Controls sharing one secret can collapse together.A single compromise can defeat layers that appear separate in the diagram.
  • Residual risk remains after controls are tested.The review must name what remains instead of promising that every risk disappeared.
  • Changes to roles or system configuration can require fresh evidence.Firmware and topology changes can also alter the boundary that was tested.

I inspect authentication, segmentation, and authorization after one control is defeated. I check that the others still hold and write down the remaining risk.

iotclass.org

Deck summary

Key takeaways

A trustworthy claim stays narrow, testable, and explicit about remaining risk.

  • Name assets and reachable surfaces before selecting controls.A command path or credential needs a specific boundary where its protection can be tested.
  • Keep security properties, identity, permission, and safety claims distinct.Evidence for a private channel does not establish permission to move an actuator.
  • Independent layers limit the effect of one defeated control.Shared secrets or assumptions can make several apparent protections fail together.
  • Record residual risk and the changes that reopen the review.A trustworthy claim remains narrow, reproducible, and tied to its observed operating conditions.

I return to the heating command and its recorded tests. I keep the remaining risk and retest triggers visible before accepting the narrow security claim.

iotclass.org

Retrieval practice

Recall check 1 of 3

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

Q1A vendor says their thermostat is secure because all of its network traffic is encrypted. What is the strongest correction?

AEncryption protects only one channel property.
BEncryption proves the device is fully secure because attackers cannot read the traffic
CEncryption is unnecessary for IoT because the devices are too small to attack
DSecurity only matters for the cloud service, not the device itself
Show answer

Answer: A Confidentiality is one property.

iotclass.org

Retrieval practice

Recall check 2 of 3

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

Q2A design claim says only gateway identities can publish actuator commands. Which evidence best supports it?

ABroker rules plus accepted and rejected publish tests
BA network diagram showing the gateway placed next to the actuator
CConfirmation that all device-to-broker traffic is encrypted
DA monitoring alert that occasionally fires on command traffic
Show answer

Answer: A A role boundary needs both the allowed case and the denied case, with the rejection visible in evidence.

iotclass.org

Retrieval practice

Recall check 3 of 3

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

Q3A reviewer is told a device is protected by three layers: a device certificate, network segmentation, and service authorization. What is the most important thing to verify about the layers?

AThat one defeated layer does not defeat the others
BThat all three layers use the same shared key for simplicity
CThat the device is the strongest layer and the other two can be skipped
DThat the layers remove all residual risk
Show answer

Answer: A Defense in depth only adds strength when layers fail independently.

iotclass.org

Print reference

Answers

Answer key.

  1. A · Confidentiality is one property.
  2. A · A role boundary needs both the allowed case and the denied case, with the rejection visible in evidence.
  3. A · Defense in depth only adds strength when layers fail independently.
iotclass.org

Print reference

Activity 1 answer

Model answer.

Predict: The broker should reject the sensor command under its authorization rules and log the rejection. A gateway command should be accepted. Encrypted traffic alone does not prove that these role permissions hold.

iotclass.org

Print reference

Activity 2 answer

Model answer.

Match: Authorization → denied publish and segmentation → blocked traffic are preventive. Audit logging → recorded event is detective. Credential rotation → tested credential recovery and firmware rollback → tested firmware recovery are corrective; record their before-and-after states.

iotclass.org