Blog

Todoist was broken into. Here's what the same break-in would find at Tickbase

On 23 November someone got inside Todoist's systems and searched people's tasks for passwords and API keys. I make a to-do app too, so here's what that would look like at Tickbase - honestly, including the bits encryption can't fix.

By Dan ·

If you use Todoist, you've probably had the e-mail by now. I want to be fair about this first: Todoist told people within a day, and their write-up of what happened is clear and detailed, which a lot of companies don't manage. Nobody building software should be smug about a break-in - it can happen to anyone, me included. But it's a really good example of why I built Tickbase the way I did, so it's worth walking through.

What happened at Todoist

This is all from Todoist's own account, published on 24 November. Between 22 and 23 November an attacker used a stolen credential for their code repositories, changed some automated workflows to get hold of more credentials, and took over an employee's work account. From there they got into Todoist's production databases.

Then, in Todoist's words, the attacker “searched Todoist tasks, comments and attachment names for content resembling credentials” - API keys, access tokens and the like - and “some matching content was returned, including surrounding text.” They also downloaded e-mail addresses and password hashes for about 6% of users (the early ones, with an older way of storing passwords), took some API and Slack tokens, and read parts of e-mails for people who'd connected Outlook.

Why “encrypted at rest” didn't help

Todoist's security page says your data is encrypted in transit and at rest, and I'm sure it is. The trouble is what those two things actually protect against:

  • In transit means the data is scrambled on its way between your device and their servers, so nobody on your Wi-Fi can read it.
  • At rest means the disks and backups are scrambled, so someone who walks off with a hard drive can't read it.

In both cases the company holds the keys, and the database unlocks everything automatically for anyone who's allowed to query it. Someone signed in as an employee is allowed to query it. So when the attacker searched for things that looked like API keys, the database searched the readable tasks and handed back what it found.

What the same break-in would find at Tickbase

At Tickbase your tasks are encrypted twice (three times, if you count the connection). First, end to end: on your own device, before they're sent anywhere. Then again at rest, in the database - Cloudflare, who host it, do that for every database. The second is the same layer Todoist has, and as above, it stops helping once someone's inside. The first is the one that counts. Every task, note, list, tag, habit and countdown, the comments on shared lists, and your attachments (names included) are encrypted with AES-256 on your phone or computer, and only the scrambled version reaches my server. So if someone got into Tickbase's database the same way:

  • A search for “AWS” or “api_key” finds nothing. The database can't search inside your tasks, because to it they're just noise. It doesn't know what they say.
  • There are no passwords to download. Tickbase has never had passwords - you sign in with Google, Apple or a six-digit code sent by e-mail - so there's no password database to steal or crack.
  • Attachments give nothing away. The server never learns a file's name, its type or which task it belongs to.

The honest bits

I'd rather tell you the limits myself than have you find them, so:

  • Standard mode has a spare key, on purpose. So that you never need a passphrase, your account's key is also locked with a secret my server holds, and with a recovery key that I keep completely offline, on a drive that stays unplugged from any computer. The server's secret isn't in the database, and once it's set, Cloudflare's dashboard won't show it to anyone, me included: only the running server can use it. So a break-in like Todoist's, where someone got in and searched the database, would only find scrambled data here. To read Standard accounts, someone would have to go a big step further: change the live server itself so that it unlocks them, or get hold of my own backup of it on that unplugged drive. That's a different and much harder job than running a search, but it isn't impossible, so I won't pretend it is. It's also what lets me get your data back if you ask for help.
  • Strict mode closes it. Set a passphrase in Settings → Encryption and the server deletes its copy of the lock. From then on I can't read your account at all, and with Allow support recovery switched off nobody but you can. If you keep anything sensitive in your tasks, this is the mode for you. How encryption works has the details.
  • Some things aren't end-to-end encrypted. Your e-mail address, your name, your plan and when you sync, and, if you use it, the mail you send to your tasks-by-e-mail address as it arrives. (Reminder times are a halfway house: if you use an iPhone alongside another device, the server needs to know when a reminder is due so it can send it on time, but it keeps those times encrypted under a separate key kept outside the database, so a copy of the database shows none of them, and what the reminder says is encrypted with your own key.) The privacy policy lists all of it, and Settings → Privacy → What we hold about you shows you exactly what's stored for your account.
  • Encryption can't protect against a changed app. The way into Todoist started with changing their automated workflows. Todoist say no app code was changed, but for any encrypted app, Tickbase included, someone who could change the app itself could make it hand over your data before it's ever encrypted. That's true of every end-to-end encrypted app, Strict mode included.

Whatever app you use

Please don't keep passwords, API keys or recovery phrases in a to-do app - any to-do app, mine included. A password manager is built for exactly that. And if you had any in Todoist, Todoist's own advice is the right one: revoke them and make new ones, because deleting the task or comment doesn't help if it's already been copied.

If this has made you think about moving, Tickbase can bring your Todoist tasks across - here's how - and syncing between all your devices is free. But mostly I just wanted to explain why, at Tickbase, your tasks are scrambled before they ever leave your hands. That was the whole point of building it.

Dan