· ~6 min read

Designing a secure smart-city IoT architecture

A layered edge-to-cloud design for city cameras, traffic sensors and street lighting, and the controls that keep one hacked lamp post from reaching the rest.

Goal

For the Security Architecture Design course of my MSc I designed the security architecture of a smart city's IoT infrastructure: public cameras, traffic and environmental sensors, and smart street lighting. The questions were where the data goes, who may see it, what can go wrong, and which controls belong at which layer.

What makes this problem hard is not any single device. It is thousands of cheap, physically exposed devices, on a city network that also carries systems that matter, run by an organisation whose citizens never agreed to be filmed.

The layers

LayerWhat lives thereMain security concern
PerceptionCameras, radar, inductive loops, air-quality sensors, street lightsPhysical tampering, fake nodes, false readings
NetworkLoRaWAN, NB-IoT, Zigbee, 6LoWPAN, Wi-Fi mesh, 4G/5G, fibreInterception, man-in-the-middle, lateral movement
Edge / fogLocal nodes at junctions that filter, validate and run inferenceKeeping raw video local, validating payloads
Cloud / dataThe city's operations centre, storage, analytics, model trainingAccess control, encryption at rest, retention
ApplicationDashboards for the municipality, APIs for third parties, citizen appsAuthorisation, rate limiting, what leaves the city

How data flows

  1. Edge pre-processing. Raw sensor and camera streams stop at an edge node. It validates the payload, removes noise and runs light inference, so only small, structured metadata moves on ("15 vehicles waiting at junction A", not the video).
  2. Brokered transport. The metadata travels over publish/subscribe (MQTT), grouped into topics such as telemetry, commands and service management, so each subsystem receives only what it subscribes to.
  3. Cloud analytics. Streams from across the city are fused. Stream processing raises alerts on anomalies, and batch processing handles historical analysis and model training.
  4. Controlled sharing. Results leave only through an API gateway that enforces access policies and rate limits, towards municipal dashboards, third-party services and citizens' phones.

Pushing inference to the edge is the decision everything else rests on. It saves bandwidth, it removes the cloud round trip from time-critical decisions such as adaptive traffic lights, and it is the first privacy control: images that never leave the junction cannot leak from the data centre.

Protocols follow the device

SubsystemNeedsProtocols
Street lighting, environmental sensorsTiny messages, low power, long rangeLoRaWAN, Zigbee / 6LoWPAN, Wi-Fi mesh between lamps, MQTT or CoAP on top
Public camerasHigh bandwidth, low latencyWired Ethernet to the edge node, 4G/5G with a VPN back to the city, UDP for live operator video

What can go wrong

Controls, layer by layer

Privacy by design

The design treats personal data as something to avoid collecting, not something to protect after the fact:

What I learned

Re-reading my own report, I would tighten three claims.

An individual design project for the MSc in Cybersecurity & Data Science at the University of Piraeus, based on published research and standards rather than a live deployment.

Want the configs or code from this lab, or have a question? Email me at kostaspapas1023@gmail.com

← all posts