ECLSS Sensor Spoofing (2D): Life-Support Intrusion Detector

This simulator models a real cyber-physical attack on a spacecraft's Environmental Control and Life Support System: an attacker injects false telemetry into one of several redundant oxygen sensors feeding the cabin's PI control loop. With the naive mean estimator, the spoofed reading quietly drags the controller's belief away from reality and the true cabin oxygen partial pressure drifts toward hypoxia while the dashboard looks calm. Switching on the median-voting defense — the same robust-statistics technique used in triple-modular-redundancy spacecraft avionics — neutralizes the outlier's effect on control and flags the compromised sensor once its deviation crosses a tunable detection threshold. This 2D dashboard adds a sensor-redundancy control and live detection-rate / false-alarm-rate readouts so you can see the concrete trade-off between a tight threshold (fast detection, more false alarms) and a loose one (fewer false alarms, slower detection), rendered as a 2D sensor ring plus a scrolling telemetry chart.