Podcast Lookup

Did You Order the Code Red?

REWORK

  • March 26, 2019
  • 18 min
  • Season 1, episode 38
About this episodeRead David Heinemeier Hansson's blog post and Jeremy's follow-up post on the mass-login attack. Our episode on the Big Integer outage…

Read David Heinemeier Hansson's blog post and Jeremy's follow-up post on the mass-login attack.

Our episode on the Big Integer outage - 00:41

The big Code Red moment starts at 3:06 of this clip but c'mon, just watch the whole thing - 00:48

Jim Mackenzie on Twitter - 1:15

Background on the data breaches at Marriott, Equifax, and Yahoo - 1:53

Jeremy Daer on Twitter - 2:10

"It's a Unix system!" - 7:24

Have I Been Pwned? - 13:47

1Password, LastPass, Dashlane - 14:52

"Clever girl" - 17:24

"I've got the same combination on my luggage!" - 17:29

Transcript

From the publisher

This transcript comes from the podcast’s own feed, shown as the publisher wrote it.

Did You Order the Code Red?

00:00—
  1. Speaker 3

    It started as it most of these incidents tend to, with someone in ops noticing that there was something going on, something fishy, a hunch, an instinct, and then we realized that there were people logging in using usernames and passwords, but from IP addresses that we'd never seen before, from locations that we'd never seen before.

  2. Speaker 1

    Welcome to Rework, a podcast by Basecamp about the better way to work and run your business. I'm Wayland Wong.

  3. Speaker 4

    And I'm Sean Hildner. It's felt a little like firefighting season at Basecamp lately. Back in November, Basecamp 3 went down in what we called the big integer outage. We actually did an episode about it that you should go back and listen to if you missed it.

  4. Speaker 1

    The big integer situation was what we call a code red. Did you order the code red? And it was caused by an internal technical issue. Just a few weeks ago, we had another code red. This time caused by an external threat that we've come to be familiar with: data breaches and stolen passwords.

  5. Speaker 4

    Today on Rework, we'll take you behind the scenes of how Basecamp handled an attack that's become a sad fact of internet life. We'll also bring you some tips on how to keep your online credentials safe.

  6. Speaker 3

    This whole thing is uh known as credential stuffing, which is both a great name and a bad name. Um because it's a great name because it sounds really evocative, um, but it's a bad name because it doesn't tell you what it actually is, uh, which is just people using emails and passwords they find on the web to log in to accounts elsewhere in the hope that it works.

  7. Speaker 1

    Credential stuffing starts with these huge lists of emails and passwords that are floating around dark corners of the internet. So, how do people's emails and passwords get onto these lists? Well, you've probably heard of high-profile data breaches like Marriott or Equifax or Yahoo. And it's common for people to use the same password across multiple sites. So bad actors will take credentials that have been exposed in data breaches and try them on other sites. It's like getting a box of random keys and trying them in every door on a street.

  8. Speaker 2

    Hey, I'm Jeremy. Uh, I lead up the security infrastructure and performance team at Basecamp. We've dealt with credential stuffing before, and uh typically in either a more scattershot way, where somebody has access to a big list of passwords and is just spamming us with them to see what happens, and in a targeted way where somebody has selected a specific person that they want to get in as or a specific account. We tried to go back and figure out what part of internet life is this? What happened? Why is this even becoming a thing now, more than it was a month ago or even weeks ago? And we could trace it back to what they call these combo lists becoming much more widely available. And typically these lists of credentials of usernames, passwords, email addresses will be passed around and bought and sold. And now a bunch of them are just free. And so anybody can get them and combine them into these mega lists of billions of emails and passwords.

  9. Speaker 1

    On the day when Jeremy's team and Basecamp's ops team caught the credential stuffing attack, they immediately launched their first line of defense.

  10. Speaker 2

    And so we'll block IPs that we know are attacking us. So those are the ones we've already identified. And for the ones we haven't identified yet, we come up with other countermeasures like using uh a captcha, which everybody hates. They're terrible for humans, and they're really not that terrible for bots either. So the the trouble is that most of these credential stuffing attacks uh can be done with software that helps you automate things like CAPTCHAS. Or you can just farm them out to humans who can help you solve them for a pretty low cost. And so you're talking about a fraction of a penny per captcha solved. So we can mount a lot of countermeasures, but nothing is a hundred percent.

  11. Speaker 1

    And so the folks here blocked IP addresses and beefed up CAPTCHAs. And where Basecamp accounts had unauthorized access, they reset passwords and notified customers. But this proved to be more of a band-aid because the next day there was a second credential stuffing attack.

  12. Speaker 2

    Aaron Powell It really is the feeling of this can't be us. We can't be running away from an attack like this. We can't have an initial response and then feel like we've done enough.

  13. Speaker 3

    It was okay, well knowing what we know, could we leave it in this in this state? Can we stay safe and sleep sound at night knowing that a bunch of our customers have their usernames and passwords out there? They might be using them in Basecamp today.

  14. Speaker 2

    And so kind of taking a a little bit of a more sober step in how do we respond to something like this where we can say it we've not just addressed this one incident and maybe the attacker has moved on, but can we deal with future classes of things that are like this? And can we are we prepared to deal with a new thing that we don't know yet? Is our incident response process primed and ready for the next thing that is going to hit us? And so taking the time to essentially like preempt our other work and say, we're going to get to the bottom of this. And that's what led to our second phase of this isn't going to be over till it's till it's over. Of our attacker moved on, but we decided not to move on. I mean, it's like malpractice. It's when it's in your face, of course we would stop and do it. We would stop everything before doing anything else. In that sense, it's a it's a great test piece for how do we address things that are risky? How do we tackle things that we say, like, we've got to stop and do something about this? And we need commitment from other people. We're small, we're we work in small teams. This means other people are going to need to stop also. And the person who's calling the stop here, is this going to be a debate, an argument? Like, how how deep is this gonna go? Is it gonna turn into a conflict, or are we gonna see people rally around the feeling of this is something that we all need to solve together?

  15. Speaker 1

    As it turns out, Basecamp co-founder and CTO David Heimer Hansen called the alarm, which made it safe for everyone to join in phase two. So, what did the work on this stage look like? Well, remember those combo lists that Jeremy talked about that are at the center of credential stuffing? The team at Basecamp had to take those lists and look through them to see if any of our customers' logins and passwords appeared on those lists.

  16. Speaker 2

    And it took going through huge reams of data. I mean, if this stuff was printed out, it would be boxes and boxes and boxes of data listing tons of email addresses and tons of passwords. And so coming up with a way to clean that all up because these data dumps are not in like an Excel file you can just open up and scan. It's like a bunch of trash. You've just got bags and bags and bags of it. You need to dump it all out, sort it, clean it, and then inspect it. And it's dirty, dirty work. Nathan on our operations team and Rosa on the SIP team, my team, did this together and they used old school kind of Unix, sed, awk, grep, join, all these are things that have existed for decades. And so it took some ingenuity. The cleaning, searching, sorting, and analysis work using tools that anybody has access to.

  17. Speaker 1

    It's a Unix system.

  18. I know this.

  19. Speaker 1

    That was live footage of Rosa and Nathan going through these big data dumps to look for Basecamp customer information. As a Velociraptor tries to come through the door. Now you might be wondering, because customers wrote in to ask about this, if Basecamp was able to compare my password to the ones on these big lists, does this mean Basecamp has my password? That doesn't seem very safe at all. Here's Jim's explanation of how that process works.

  20. Speaker 3

    We don't ever know what your password is. When you set up an account at Basecamp and you enter your password, you enter it into your browser, it gets sent to our servers, which strips it, taking that password and turning it into a token that we can use to represent that password. And then every time you log back in in the future, you send us the password to the browser, our server discards that basically immediately and compares the token with the token that we have. So we never get to see what the password is. So people would write to us saying, Hey, can you tell me what the first three letters of my password were to prove that you know that it's the right thing? And we'd say, No, we have no clue what your password is. But we do know that when you enter it, if it matches what we've got stored. Um we could do the same thing with the data breach compilations, um, or as I like to call them, uh, identity theft mixtapes. And so what we were doing was Rosa and Nathan went out and obtained the widely available, freely available lists of these billions of email address and password combinations, and we then uh scanned through uh to see if an email address for each base camp customer was present or not. If we got a match, so if we found someone's email address present in these data dumps, and then we go, okay, cool, moved on to the next one, just made a note of those, and then we went back and said, Okay, for the ones that had an email address present, did it also have a password present? And if it did, we then created this token to represent the password that was in the online data dump and compared it to the token that we have in our servers for their password. And if we had a match, then we knew that their password had been reused elsewhere online and was freely available available for these um handle triers to use.

  21. Speaker 1

    When the work was done, the team discovered that a very large number of Basecamp customers did have their passwords in those identity theft mixtapes, as Jim calls them. And if a bad actor was going to try another credential stuffing attack, these customers could be at risk of having their Basecamp accounts accessed, or maybe other accounts too, if they use those same logins across many sites.

  22. Speaker 3

    Aaron Ross Powell About one in 20 of Basecamp customers, that is a six-digit number. It's very easy to say, oh, we don't need to do this because it's only one percent of people or whatever. Um but then you turn it into actual names and faces, and it's a huge number, and that changes your approach to things.

  23. Speaker 1

    Even though we didn't find any instances of data being stolen from Basecamp accounts, we decided to reset passwords for all of the affected customers and warn them that their credentials were freely available for bad guys to use. The challenge here was that this was probably the first time the customers would be hearing about this security threat. Remember, in credential stuffing, bad actors have a bunch of random keys and they're walking down a street, trying every locked door they can find. To take this analogy further, it's like the homeowner isn't there, or they're home, but they don't notice the knob is being jiggled. Or the thief comes inside, but just looks around and leaves without a trace, so the homeowner has no idea. Jim and Jeremy had to notify Basecamp customers that their passwords were reset because of a security issue with the account, and that it wasn't that Basecamp itself was breached, but that someone's Basecamp password was out there, probably because they'd also used it for a different site that was part of a breach. And that's very confusing and scary. Jeremy took the first crack at writing an email to affected customers.

  24. Speaker 2

    I mean, ultimately the last thing we want to do is pass the buck and say, like, to be very clear with you, this wasn't us, it was somebody else. And like pointing fingers at somebody else is a lot different than explaining that this is how your password was obtained. This is why people use these password lists, that there are breaches all the time. There are thousands of sites that have been breached, and when they are breached, all that data gets collected and combined and collated and then reused other places. And so, in a sense, the fact that people are trying to log in as you is a kind of breach. It's just that that word is so loaded and becomes such a uh a high bar that every company wants to avoid talking about it. And so would avoid sending an email like this with the reputational risk that goes along with even talking about it. You don't want to utter utter those words.

  25. Speaker 3

    Jeremy pinged me um asking me if I would take a look at what he'd written and just sort of edit it and tweak it, try and spot obvious questions that folks might ask if they receive this email, because people are gonna get an email from us saying that, hey, we've reset our password, there's been there's a data breach that we're mentioning, but it's not us. Um and so that was the thing that was going through my head was like how can we make it as simple to understand as we can? How can we put the action that the customers needed to take up front? How can we explain next steps to keep them safe without it being this overwhelming huge task? I love writing with Jeremy. It's one of the most enjoyable experiences because he has such a personable writing style. Um, he explains incredibly technical things in such an easy to understand manner.

  26. Speaker 2

    Like you don't want to read an encyclopedia article about a topic before you get to what is this and why does it matter to me? What do I need to do? And so treating it as layers, like you can get deeper into it, but you're always going to get the important things first, no matter how far into it you read. And so there's a lot of restating. Start with what matters at the very basics, continue with what matters again and a little bit more about why it happened. So once you've gotten this far and understand what affected your password and what we did, here's what you can do to secure yourself online.

  27. Speaker 1

    So, what can you do to protect yourself online? Jim and Jeremy recommend going to a site called Have I Been Pwned. That's P-W-N-E-D. You can enter your email to see if it's been part of any data breaches, and you can sign up for notifications if one of your accounts does get compromised.

  28. Speaker 3

    Start with your email account. That's the most important thing that controls the keys to everything. Because uh if someone gets into that, they can do password resets to all of your other accounts. Um and so that's the thing to really do first. And if you've done that, then that's that's job one done. Using a password manager, that was number two. It makes it easier to generate these long, unique, complex passwords that aren't used elsewhere because otherwise you're gonna pick something you can try and remember. Um the human brain can't compete with machines that can crack you know hundreds of thousands of passwords a second. Um we just can't. Um and then I said, and then at the end of it, reward yourself. I had lemon drizzle cake. Um, and that's yeah, that was my top tip.

  29. Speaker 1

    Jim mentioned a password manager. Here at Basecamp, we all use one password. There's also LastPass and Dashlane, and browsers like Chrome and Safari have some of this capability built into. Knowing is half the battle. So on behalf of everyone here at Basecamp, stay safe.

  30. Speaker 3

    We've learned a lot about how to communicate about this, how to make it reassuring, how to um we had some great feedback from security professionals who wrote back in and saying, hey, thank you for doing this. Um here's some tips on things that I had concerns about that you could change for next time. Hopefully we don't need to do a reset like this ever again. Instead, it's going to be stopping the next attack, whatever that looks like.

  31. Speaker 2

    I I can't you can't live in fear. And the best you can do is is try to organize in your environment so that these kinds of situations can't occur knowing that we have incident response processes. Well, yeah, I should I guess I should go back, knowing that they are going to occur, and then doing everything we can to prevent them from happening, but really being ready to mitigate them. So that when something does come up, we feel prepared, we're ready to tackle the unknown thing that does happen at the first signal of it, and that we're going to be ready to remediate it also, that we know that we can get to the bottom of it. Building our skills, our expertise to the point where we feel that kind of confidence out of the practice of running into problems like this and conclusively getting to the bottom of it is the way that we can experience the fear or really the danger of operating a service online and having some courage knowing that when it does happen, we're gonna be ready.

  32. Speaker 4

    Rework is produced by Weylin Wong and me, Sean Hildner. Our theme music is broken by design by ClipArt. It's that time of year again where we are going to ask you to send in your questions for Jason and David.

  33. Speaker 1

    Or maybe someone else at Basecamp.

  34. Speaker 4

    Maybe someone else, yeah.

  35. Speaker 1

    You want to ask Taylor and our ops team a question? Jeremy?

  36. Speaker 4

    No matter who you have a question for, you can call and leave a voicemail at 708-628-7850. You can find us on the web at rework.fm and you can hit us up on Twitter at ReWork Podcast.

  37. Speaker 1

    Did you read the number? I can't remember. I did. Okay.

  38. Speaker 4

    Is that it?

  39. Speaker 1

    Mm-hmm.

  40. Speaker 4

    Clever girl.

  41. Speaker 5

    So the combination is one, two, three, four, five. It's the stupidest combination I ever heard in my life. It's the kind of thing an idiot would have on his luggage. Thank you, Your Highness. What? Where's the cake? It works, so we have the combination. Great. What's the combination? One, two, three, four, five. One, two, three, four, five. Yes, it's amazing. I got the same combination on my luggage.