Executing actual network exploits inside training classrooms is dangerous. IoT Guardian runs mock threat vectors safely inside backend python threads, streaming statistics live to student Dashboards.
The backend simulator uses threading loops to increment packet logs, updating telemetry states asynchronously without hanging database nodes.
# DDoS thread loop task
while not stop_event.is_set():
packets = base_rate + random.randint(-50, 50)
callback(packets)
time.sleep(1.0)