Independent learning for product cybersecurity professionals
SearchCommentary
Learning library / Practical projectsCSL-401 · Practical projects

Threat-model a connected sensor

Try a scenario, make decisions, then compare with a worked answer.

Use a small connected system to practise identifying threats and choosing proportionate controls.

What you will learn

  • Model the connected sensor’s data and authority paths.
  • Write specific threats with assumptions and consequences.
  • Produce a traceable treatment plan rather than a list of attack names.

The scenario

A warehouse temperature sensor sends a reading every minute to a gateway over the local network. The gateway uploads readings to a cloud service. A browser displays the latest reading. A service engineer installs firmware updates using a laptop.

The initial design uses a shared gateway password, accepts firmware updates without origin verification and displays the last received reading without its timestamp.

Your task

  1. Identify the assets and draw the four main components plus the service laptop.
  2. Mark at least three trust boundaries.
  3. Describe three threats and their operational consequences.
  4. Write one testable security requirement for each threat.
  5. Identify assumptions that need confirmation.
Read the worked answer

Threat 1 · Unauthorised administration

A shared password prevents individual accountability and may enable unauthorised configuration changes. Use individual identities with role-based permissions. Verify that a read-only user cannot change the upload destination.

Threat 2 · Malicious firmware

An unauthorised update could falsify measurements. Require verification against an authorised signing key before installation. Verify rejection of altered packages and packages signed by an untrusted key.

Threat 3 · Stale data presented as current

Communication loss could leave the operator relying on an old reading. Specify a maximum acceptable reading age and display a clear stale-data indication. Verify the indication when that limit is exceeded.

Assumptions to check

Can attackers join the local network? Who controls the laptop? How long can measurements be unavailable? What decisions depend on temperature readings? These answers affect the required controls.

Set up the exercise

Use a fictional temperature sensor, local gateway, cloud API and browser dashboard. An installer enrols the sensor and a service engineer transfers firmware updates. Operators belong to one customer; administrators manage approved configuration. Assume that ordinary reporting works, but do not assume that authentication, freshness or customer isolation has been verified.

Spend about 30–45 minutes on an initial answer. Draw the context and four flows: readings, enrolment, administration and updates. Add stores for readings, configuration and credentials. Mark physical access, the customer network, gateway-to-cloud traffic and customer separation as distinct areas to investigate. No live scanning is needed.

Build records from the model

Write at least four scenarios involving different assets or crossings. For each, identify actor or event, access prerequisite, weakness or failed assumption, action and consequence. Include replay of readings, unauthorised enrolment, cross-customer access and an altered update. State which facts are known and which require investigation.

Select two scenarios for treatment. Explain how each proposed control interrupts the path and what failure could defeat it. Link a requirement and verification approach to the control. If you use a rating, identify its method and rationale; an unexplained numerical value contributes little to this exercise. Keep scope exclusions visible.

Assess your answer

A strong submission makes boundaries and assumptions explicit, connects every control to a scenario and distinguishes implementation from evidence. A weak answer says only “encrypt data, use strong passwords and run a penetration test”. Those may be relevant activities, but they do not explain which path they address or what result establishes effectiveness.

Check the less obvious flows. Firmware updates can change behaviour, enrolment can establish authority and support can cross customer boundaries. Ask another learner to follow one scenario from diagram to threat, requirement and test. If they cannot identify the enforcement point, revise the record rather than adding more threat labels.

Apply the ideas

Extend your original model with a gateway restart. A previously accepted sensor message is replayed afterwards. Write the threat record, a freshness requirement and the minimum tests needed to investigate this transition.

Compare your approach

The attacker requires access to captured traffic and a path to resend it. The weak assumption is that freshness state remains valid across restart. The consequence is an old reading being accepted as current. Require controlled session or persistent sequence handling so accepted messages cannot silently become new again. Test a valid next message, replay before restart, replay after restart and the defined re-enrolment transition. Record the actual baseline and state observations; do not credit the requirement as a verified control until those checks pass.

Review your work

  • Does each threat come from a particular element or crossing?
  • Are control limitations recorded?
  • Can a reviewer follow one complete evidence thread?

Keep this output: A context sketch and four threat records, with two linked control requirements and test approaches.

Continue learning