Professor Franklin
Accessibility settings

Preferences are saved in this browser when storage is available.

Getting Started

Chapter 17 · Reading 1 of 3

Device, gateway, phone and cloud

CHFI domains 1, 4, 5, 6

The door sensor on Ferrous Valley’s loading bay 4 is a small battery-powered contact switch. It knows only whether the door is open or closed right now. Yet the company has a record of the door opening at 02:14:20 UTC on 24 November. That record was made somewhere else, and finding all the places an IoT event is recorded is the first task in any connected-device case.

Evidence lives in four layers

An Internet of Things (IoT) device is a networked device that senses or acts in the physical world, from door sensors and cameras to smart speakers, wearables and building controls. Most keep little history themselves. They report to other systems that do.

Figure 1. Where the bay 4 door event was recorded
  1. DeviceThe sensor: current state, battery level, perhaps a small event buffer. Firmware and configuration in flash memory.
  2. Gateway or hubThe warehouse’s wireless gateway received the open message and timestamped it on arrival with its NTP-synchronized clock. Local logs, sometimes rotated within days.
  3. Companion app on a phoneThe facilities manager’s app cached recent events in a SQLite database, with Unix timestamps, and showed a push notification.
  4. Vendor cloudThe account’s full event history, device list, user list and access log. Obtained by account export or by legal process to the vendor.

The timestamp’s origin matters. The sensor has no reliable clock, so the event time was assigned by the gateway when the message arrived. A message delayed by a weak radio link or a sleeping sensor would carry the gateway’s arrival time, not the moment the door moved. The examiner records which layer assigned each time.

Smart speakers and wearables

Consumer devices follow the same pattern.

A small round smart speaker with a fabric side and four buttons on top, next to a coffee mug for scale.
Figure 2. A smart speaker. Voice requests are typically processed in the vendor’s cloud, so the account’s activity history, not the device, is usually the main source of what was said and when.Photo: Pittigrilli, Wikimedia Commons, CC BY-SA 4.0. Resized from the original.

A smart speaker listens locally for its wake word and sends the request that follows to the vendor’s cloud. The account’s voice history, routines and connected-device actions are kept in the cloud, where the user can review and delete them, and the companion app may cache recent activity. A request such as “unlock the side door” can tie a voice command to a time and a device action.

A smartwatch or fitness tracker records heart rate, steps, workouts and sometimes GPS tracks, and syncs them over Bluetooth to a companion app on a phone, which syncs to a cloud account. Evidence of activity at 02:14 might be on the watch itself, in the phone app’s database or only in the cloud, depending on when the last sync happened.

A black smartwatch with a square face showing the time, on a dark strap.
Figure 3. A smartwatch. Its sensor data reaches the examiner mainly through the paired phone’s companion app and the cloud account it syncs to.Photo: Unnerving duck, Wikimedia Commons, CC0 1.0. Resized from the original.

Use the OWASP IoT Top 10 to plan collection

The OWASP IoT Top 10 (2018) lists the most common weaknesses in IoT systems. For an examiner, it doubles as a list of where to look and what may have been abused.

Figure 4. OWASP IoT Top 10 categories and what they mean for collection
#CategoryCollection question
1Weak, guessable or hardcoded passwordsCould someone have logged in to the gateway or device with a default password? Check its access logs.
2Insecure network servicesWhich services were exposed? Capture or scan only with approval.
3Insecure ecosystem interfacesWhich web, cloud API and mobile interfaces could change the device? Request their logs.
4Lack of secure update mechanismWas firmware replaced? Record firmware versions and hashes.
5Use of insecure or outdated componentsNote known-vulnerable versions in the report.
6Insufficient privacy protectionWhat personal data does the device hold? Scope and minimize collection.
7Insecure data transfer and storageCould messages be read or forged in transit? Assess the reliability of the event records.
8Lack of device managementIs there an inventory? Unknown devices may be unmanaged or planted.
9Insecure default settingsWere logging and authentication left at weak defaults?
10Lack of physical hardeningCould someone tamper with the sensor, such as by removing its magnet or battery?

At Ferrous Valley, category 10 matters. A contact sensor can be defeated by holding a magnet against it, and the gateway would then record no opening at all. The sensor did report an opening, so it was not defeated that night, but the plan still includes inspecting it for tampering.

On the exam, look beyond the device to the gateway, the companion app and the cloud, and identify which layer assigned each timestamp. The next reading, Bluetooth associations, asks which other devices were near bay 4.

Companion-app event

Inspect the three records, then use the evidence to answer the question.

1. Device

bay4-door (contact sensor)

2. State

OPEN

3. Timestamp

1795486460 (Unix seconds)

Apply the reading

The door sensor itself stores nothing but its current state. Where else would you look for its history?

Compare your reasoning

The gateway or hub that receives its messages, the vendor’s cloud account that stores event history, the companion app’s database on any paired phone, and any integration that forwards events, such as a security system or a messaging service.