Inspiration
When a company gets hit with ransomware, the first problem isn't the hack, it's talking. Email might be down, and you have to assume the attacker can read your Slack. Nobody knows what's been taken yet. I wanted to build the place a response team goes when all their normal tools can't be trusted.
What it does
Breakglass is a backup war room for cyberattacks. An admin hits "Break the glass," walks through four quick steps (what happened, how bad, what's affected, confirm), and an incident opens. Every responder gets a text on their personal phone, not their work one.
Inside the incident:
- Live timeline of everything that happens
- Chat for the response team
- Data scope tracker for what was hit: exfiltrated, encrypted, contained, or unknown
Everything updates on everyone's screen instantly. Only people with an invite code can get in, and strangers can't read or write anything.
How we built it
I built it solo.
- Backend: a SpacetimeDB module in TypeScript. It handles everything: data, permissions, real-time sync, and chat. No other database.
- Frontend: React, TypeScript, Vite, and Tailwind
- Alerts: a small Node worker that joins as its own "worker" team member, watches an alert outbox table, and sends texts through Photon
- Hosting: designed to self-host on its own Vultr server, isolated from the company's network
Challenges we ran into
It was my first time using SpacetimeDB, so wrapping my head around reducers and subscriptions took a bit. I also lost a good chunk of time to the local server holding a stale lock and my browser holding an old login token, which made the app say "can't reach server" when the real problem was something else. I also started the weekend on a team and ended up going solo because of midterms, so I had to cut scope hard.
Accomplishments that we're proud of
- Opening an incident in one window and watching it pop up in another instantly
- Access control that actually holds up: I tested it as a random anonymous user, and it couldn't read or post anything
- Building the whole thing alone in one day
What we learned
- A real-time database can replace a whole backend
- Permissions should be checked on every single action, not just at login
- UI for stressed people should be big buttons and almost no menus
- Test in a real browser early, not just with scripts
What's next for BreakGlass
- Full deployment on Vultr with a real domain
- Voice calls for critical incidents
- A printable after-action report for legal and insurance follow-up
- Pre-loaded runbooks so teams know exactly what to do when it happens
Built With
- css
- git
- html
- javascript
- node.js
- photon
- react
- sms
- spacetimedb
- tailwindcss
- typescript
- vite
- vultr
- websockets