Inspiration

Many farms, mines and water stations, for example in rural Morocco, are far from any broadband line. Their sensors send data over 5G or satellite links, and those links are slow, lose packets and sometimes drop out for minutes. I wanted to know what this does to security monitoring. When a satellite link comes back after an outage, all the buffered readings arrive at once, and to a normal rule that looks exactly like a flood attack. Operators then get so many false alarms that they stop trusting the system. I built CyberShield to fix that.

What it does

CyberShield is a security monitoring and response platform for IoT devices that use satellite and 5G links.

  • It collects sensor data over MQTT secured with TLS.
  • It checks every message with 21 explainable detection rules (brute-force logins, floods, unknown devices, spoofing, unauthorised commands, out-of-range values, malformed data) and with a machine-learning anomaly detector.
  • It is link-aware: it measures each link separately, so a burst of delayed data after a satellite outage is treated as backlog, not as an attack.
  • Related alerts are grouped into incidents that follow the NIST response phases, with MITRE ATT&CK techniques and the evidence behind each alert.
  • An AI analyst investigates an incident using read-only tools and cites the evidence for every claim. It can run with DeepSeek or in a built-in offline mode. It never acts on its own: any quarantine waits for a person to approve it.
  • A React dashboard shows everything live, including a 3D digital twin of the devices, satellites and ground stations, and a map of real device locations in Morocco.

How we built it

  • Backend: Python, FastAPI, SQLAlchemy with SQLite or PostgreSQL, and Eclipse Mosquitto as the MQTT broker (TLS on port 8883).
  • Detection: rule engine written in Python, an autoencoder in NumPy and scikit-learn detectors for anomalies.
  • Frontend: React, Vite, Three.js for the 3D twin, Leaflet for the map, Recharts for charts.
  • Hardware: an ESP32 board with a DHT11 temperature and humidity sensor, programmed in the Arduino IDE, sending real readings over TLS.
  • Testing: I do not have a satellite terminal, so I wrote a packet-level link emulator in Python that adds satellite-like and 5G-like delay, loss, burst loss and outages. I used it to run five repeated experiments on the real platform.

Challenges we ran into

  • My first link-aware rule was too generous. The experiments showed that an attacker could hide a flood inside an outage. I changed it so that only data arriving after the link recovers is excused.
  • The anomaly detector raised many false alarms when sensor values drifted with the weather. Re-normalising the data every day removed about two thirds of them, but slow "stuck" sensor faults are still not detected.
  • The ESP32 clock was about 750 ms off, so I could not use it to measure latency. I used it to prove delivery over TLS and measured latency with the simulator instead.
  • Without real satellite hardware, I had to be careful to call the links emulated and not overstate the results.

Accomplishments that we're proud of

  • False alarms after link outages dropped from 2.5 to 0.03 per device-hour (98.8% fewer), and real floods were still caught.
  • A failover with a smart timeout cut the service gap after an outage from 19–130 seconds to 2–3 seconds, with no lost data.
  • The platform handled 1,000 simulated devices without losing a reading.
  • My real ESP32 delivered 126 of 126 readings over TLS.
  • The full attack-to-recovery flow works end to end: detection, incident, AI investigation, human approval, quarantine inside the platform, release and report.

What we learned

On satellite links the main security problem is timing, not lost data: delayed data arriving all at once looks like an attack. I also learned to report what does not work. Some attacks, such as slow distributed floods and stuck sensors, are still not detected, and I wrote them down as open problems instead of hiding them.

What's next for CyberShield

  • Test with a real satellite terminal and a real 5G network instead of emulated links.
  • Detect stuck sensors and slow, distributed attacks.
  • Deploy the platform on a cloud server so it can be used remotely.
  • Publish an archived release of the code and the experiment data.

Built With

Share this project:

Updates

Submission history