- Security
- Embedded
Hack The Port
A marine port hackathon with 13 registered teams: hijackable OT attack targets, AprilTag vision tracking and a controller that scores team exploits automatically.
| Stack | ESP32 · ESP-IDF · C · motor drivers · soft-AP Wi-Fi · OpenCV · AprilTag · Python · FastAPI · Pygame · UDP networking · OT systems |
|---|---|
| Role | Main hardware and software developer |
| Status | Complete |
| Key result | Proof-of-concept report to competition-ready in 29 days |
Outcomes
- Event complete: 13 teams registered
- Crane, vision tracking and digital twin fully functional during the event
Scope
- Rebuilt the crane hardware: removed the stock board and rewired the whole crane to run from a perfboard with 4 motor controllers, an electromagnet and an ESP32
- Crane firmware in C with ESP-IDF: the ESP32 runs its own soft-AP access point and serves the HTTP commands that drive the crane, including the electromagnet
- Per-team Wi-Fi: each team gets its own access point password, set in the firmware before their run
- OpenCV vision tracking with a Logitech Brio 4K Pro camera: supports 200+ AprilTags, sees most of them at once and streams the tracks live over UDP
- A FastAPI digital twin of the port, drawn with Pygame: add zones and simulated cameras with scan patterns, and see the live AprilTag tracks as dots
- Camera detections report which tag was seen and by which camera: the twin removes a spotted tag from the port and blacklists it, so it earns no further points
- A FastAPI controller that scores team exploits automatically: scored events for cracked accounts (points by account role) and zone entries
- Run management in the controller: imports registered teams from a CSV, gives each team a time slot for the physical attack, and freezes their score when the slot timer runs out
- Live status: current team, time left, scores, cracked accounts, spotted tags and final scores, plus a twin reset that clears per-slot data for each new team
- Python data generators that write the CSV files teams find in employee accounts on the VMs: scaled the crate commodities generator from 1 item to 50 and linked it to a manifest generator that sets each crate's value