Skip to content
Artwork for The Backup Wrap-Up
The Backup Wrap-Up · Today · 33 min

The Codespaces Hack: How One Breach Deleted a Company (Encore)

The Codespaces hack is the story of how one breach deleted a company. In 2014, an attacker got into Code Spaces' AWS account, demanded a ransom, and when the company tried to lock them out, started deleting. Servers, snapshots, S3 buckets, and the backups, because the backups lived in the same account. Within hours, Code Spaces announced it was done. This is an encore episode, the third in our Cloud Disasters encore series. We brought it back because of how much of it people actually listened to, not just how many downloaded it. It had the highest listen-through of the whole series. On average, people listened to more than the entire episode, which means a lot of you came back to hear it again. Prasanna and I walk through what Code Spaces was, the website that bragged about a recovery plan "proven to work time and time again," and how the attack played out: a DDoS as a distraction, a ransom note left in the AWS dashboard, backup admin logins the attacker created so they couldn't be locked out, and then the deletions. Then we get into what they should have done. Backups in a different account. Immutability. MFA, which did exist back then. Least privilege. Monitoring for new super-user accounts. And a "nuclear button" plan for locking down a compromised cloud account before the attacker can do any more damage. We also talk about the 200-plus companies that trusted Code Spaces with their code and didn't keep a copy of their own. I always use this story when I talk about backup design in the cloud, because I still see this exact design all the time: production and backups in the same account, protected by the same credentials. If that sounds like your setup, listen to this one. Got a better idea for locking down a hacked cloud account? Leave us a voicemail at backupwrapup.com. Chapters 00:00 Encore intro: one bad day takes out both 02:18 Welcome, and Curtis's Tesla obsession 04:49 Back up the cloud: the cloud is not magic 06:31 2014 and the rise of ransomware 07:23 What Code Spaces was 08:26 A recovery plan "proven to work" 09:16 Poor backup design and the 3-2-1 rule 10:26 How the attacker got in 11:32 A DDoS as a distraction 12:23 The ransom note in the AWS dashboard 13:37 Trying to lock out the attacker 14:47 What got deleted 17:25 "We have no alternative but to cease trading" 19:08 What they should have done: a different account 21:07 Object lock and MFA 23:11 Least privilege 24:00 A nuclear button for a compromised account 28:31 Monitoring for new privileged accounts 29:18 The summary: follow the 3-2-1 rule 30:05 What about Code Spaces' customers? 31:38 Final thoughts

0:00-33:54

transcript

No transcript — this publisher did not publish one.

show notes

The Codespaces hack is the story of how one breach deleted a company. In 2014, an attacker got into Code Spaces' AWS account, demanded a ransom, and when the company tried to lock them out, started deleting. Servers, snapshots, S3 buckets, and the backups, because the backups lived in the same account. Within hours, Code Spaces announced it was done.

This is an encore episode, the third in our Cloud Disasters encore series. We brought it back because of how much of it people actually listened to, not just how many downloaded it. It had the highest listen-through of the whole series. On average, people listened to more than the entire episode, which means a lot of you came back to hear it again.

Prasanna and I walk through what Code Spaces was, the website that bragged about a recovery plan "proven to work time and time again," and how the attack played out: a DDoS as a distraction, a ransom note left in the AWS dashboard, backup admin logins the attacker created so they couldn't be locked out, and then the deletions.

Then we get into what they should have done. Backups in a different account. Immutability. MFA, which did exist back then. Least privilege. Monitoring for new super-user accounts. And a "nuclear button" plan for locking down a compromised cloud account before the attacker can do any more damage. We also talk about the 200-plus companies that trusted Code Spaces with their code and didn't keep a copy of their own.

I always use this story when I talk about backup design in the cloud, because I still see this exact design all the time: production and backups in the same account, protected by the same credentials. If that sounds like your setup, listen to this one.

Got a better idea for locking down a hacked cloud account? Leave us a voicemail at backupwrapup.com.

Chapters

00:00 Encore intro: one bad day takes out both

02:18 Welcome, and Curtis's Tesla obsession

04:49 Back up the cloud: the cloud is not magic

06:31 2014 and the rise of ransomware

07:23 What Code Spaces was

08:26 A recovery plan "proven to work"

09:16 Poor backup design and the 3-2-1 rule

10:26 How the attacker got in

11:32 A DDoS as a distraction

12:23 The ransom note in the AWS dashboard

13:37 Trying to lock out the attacker

14:47 What got deleted

17:25 "We have no alternative but to cease trading"

19:08 What they should have done: a different account

21:07 Object lock and MFA

23:11 Least privilege

24:00 A nuclear button for a compromised account

28:31 Monitoring for new privileged accounts

29:18 The summary: follow the 3-2-1 rule

30:05 What about Code Spaces' customers?

31:38 Final thoughts