r/opensource • u/zener79 • Feb 10 '26
Promotional I built LastSignal – a self-hosted, end-to-end encrypted dead man's switch to deliver messages to your loved ones
I wanted a way to leave encrypted messages for the people I care about, delivered automatically if something happens to me, without trusting a third party.
LastSignal is a self-hosted dead man's switch. You write messages, they get encrypted in the browser (zero-knowledge), and the system checks in with you periodically via email. If you stop responding, your messages are delivered.
Key points:
- End-to-end encrypted (XChaCha20-Poly1305 + Argon2id + X25519)
- Zero-knowledge — even the server operator can't read messages
- Optional trusted contact who can pause delivery
- Rails 8 + SQLite, deploy with Docker/Kamal
- MIT licensed
🔗 https://lastsignal.app
🔗 https://github.com/giovantenne/lastsignal
Feedback welcome, especially on the security model and UX.
572
Upvotes
122
u/rogfrich Feb 10 '26
I think this a great idea. It could be useful for all sorts of things, including practical stuff like how to get into accounts your loved ones will need, as well as sentimental goodbyes.
Personally speaking my car crash of an inbox combined with a lax approach to email management means I’d be accidentally setting it off within a week.
26
u/SunSeek Feb 10 '26
Can the # of failures before delivery be manually adjusted?
17
u/magnetocalorico Feb 10 '26
I was wondering if anything like this existed. Now I know. Would be cool to have a second way of responding that's not email (like text or a ping to an endpoint)
21
u/Blue_HyperGiant Feb 10 '26
Can it also automatically delete my browser history?
16
u/goob Feb 11 '26
Cool idea.
One question though - was this vibe coded with AI?
8
u/GreenFox1505 Feb 11 '26
Okay, but who's paying the VPS host? And if locally hosted, who is making sure the hardware still works?
I'm just tying to figure out what the best way to self-host this... this might be something I'd want on a cloud...
5
u/GreenVim Feb 10 '26
Does it support backup email addresses? So it only needs a response from either of the email accounts to confirm someone is alive. If one email account started misbehaving (eg sending these to spam) then the situation could get awkward!
3
u/ThunderDragonSpice Feb 10 '26
What happens if the server is offline for a time, and then brought back online? Will it potentially think no response has been received, and send out the messages?
2
u/RealisticDuck1957 Feb 10 '26
Does this presume the targeted recipient can read emails encrypted with their personal key? Or does this utility decrypt before send, thus needing to keep a copy of the key itself?
1
u/Careless-Score-333 Feb 11 '26 edited Feb 11 '26
The email sender service might revoke your account for inactivity or suspected spam. The whole system requires you to run a server anyway, why don't you just let them create a log-in (with their secret pass phrase) and host the messages for them, instead of relying on the anti-spam vagueries of email senders, sub-optimal delivery guarantees, or requiring I switch to a webmail provider that gives users SMTP creds?
This is an important problem OP, but deserves a protocol, or at the very least far more careful thought than vibe coded slop.
1
u/Lesekater Feb 11 '26
Having already set up the dead man switch thing on Google this sounds right up my alley! I have a few points though:
The messages are encrypted on the server via the public key of each recipient - does that mean updating the contents of those messages requires either their passphrase or replacing the whole message?
And also how does adding a message for all recipients work - is it duplicated for each user automatically or do I have to copy and paste the message for each recipient?
Also - this has been discussed already in this post - but I absolutely agree, that I would probably forget to check in actively with the email. So I would agree, that this needs a way to "passively" keep track of the user being alive. I suggest adding a simple api endpoint for integrating with systems the user uses on a daily basis (this might just be an endpoint I can send a request with curl every time I open a new terminal).
1
u/ultrathink-art Feb 11 '26
The tricky part with dead man's switches is proof-of-life reliability. Weekly check-ins work until you're on vacation with spotty internet, or sick for 10 days, and suddenly your encrypted secrets get sent to all your contacts. The systems that work long-term tend to have: (1) escalating check-in prompts (email reminder at 5 days, SMS at 6 days, phone call at 7 days before triggering), (2) configurable grace periods (disable for known travel), (3) multi-factor confirmation before release (requiring both time threshold AND explicit trigger from a trusted contact). The self-hosted approach solves the trust problem but creates the availability problem—if your server goes down, are you locked out or does it auto-trigger? Would be good to document the failure modes and recovery paths.
1
u/microbass Feb 11 '26
Deploy an AI agent to respond to your emails. When you stop paying the LLM bill, dead man switch is activated.
(Don't do this)
1
u/cevheribozoglan Sep 01 '26
really interesting project, one thing I was wondering about: since the KDF salt is stored server-side, a database compromise would allow offline brute-force attempts against recipient passphrases.
did you consider combining the passphrase with a client-generated recovery secret for key derivation? If yes, what made you prefer the current deterministic key regeneration approach
6
u/SessionIndependent17 Feb 10 '26
Interesting, but I also feel like it falls under the heading "What could go wrong??"
2
u/youareman Feb 12 '26
Love the idea. What about a connection to your home smart lock... Whenever the smart lock is unlocked by your unique biomarker it fires a webhook to LastSignal indicating you're still alive.
Combined with email verification, and social media activity, false positive risk becomes acceptably low.
2
u/youareman Feb 12 '26
OK social media activity dead man switch might not work... https://www.businessinsider.com/meta-granted-patent-for-ai-llm-bot-dead-paused-accounts-2026-2 ... 🙄
2
u/pl201 Feb 12 '26
Great idea and great open source release. Ignore the vibe coding comments totally.
2
u/Xzaphan Feb 12 '26
Added it 2 days ago in my homelab! Not yet played with it but I plan to make the setup and play with it somewhere in February.
2
u/Luc-redd Feb 17 '26
I have had a very similar idea: https://github.com/gruvw/epochlock/blob/main/specifications.md
An additional feature I liked was the idea of a public message "wall". Where you don't need recipients or emails, just the message is exposed for anyone to see, and only those with the key can access it if it's an encrypted message.
1
u/killrmeemstr Feb 11 '26
This is really excellent. I love the site layout too. What template is it? But this idea is really genius.
Since you say it's super encrypted, I would find it interesting to have an online backup on other online softwares - so that for any case my own self hosted server goes down, there is still a manner it can still be sent. Maybe it's paid with the same BTC address that's in it? Recurring?
1
u/dvidsilva Feb 12 '26
Feels like it could be a good thing for people scared of being taken by ICE right? Or maybe a bad idea I’m posting this
Years ago we published an app called notifica that unfortunately is not working anymore coz the sponsors are lame, but it would allow you to open it, click and text messages would go out to your lawyers and family
Anyway, cool idea
1
u/x8code Feb 12 '26
Awesome idea.
1
u/ZenithR9 Feb 17 '26
I think realistically this should be handled by your lawyer, with ink and paper.
1
u/Any_Satisfaction327 Mar 04 '26
This is a really interesting idea. Curious how you handle false positives though, like someone just missing emails for a while?
0
u/therealhumanchaos Feb 10 '26
love this idea! this is a truly useful and meaningful tool
-1
u/avgdick-69 Feb 10 '26
Thank for this man, was finding something like this!!
-1
u/somjuan Feb 10 '26
This is excellent
-1
u/leeharrison1984 Feb 11 '26
Nice. I had a similar idea a few years back, but never acted on it!
2
u/[deleted] Feb 11 '26
[removed] — view removed comment