16 ms·
“Catastrophic” hack wipes out email provider’s entire infrastructure
- arcticwombat 8y agoSo many duplicated posts about this..
- dang 8y agoI haven't seen one that got significant attention on HN yet, which is the standard we apply for dupes (https://news.ycombinator.com/newsfaq.html https://news.ycombinator.com/newsfaq.html). Did we miss it?
- arcticwombat 8y agoI've seen at least 4 or 5 posts about the VFEMail thing just today so I dinged this one when I saw it. No idea what's considered significant.
- dang 8y agoSignificant is just a question of whether it got many points and/or comments.
- GrumpyNl 8y agoIf you are a target, you will be hacked.
- notacoward 8y ago...and sooner or later you will be a target.
- EvanAnderson 8y agoI will continue to stand on my soapbox and proclaim that backup has to include an offline component (preferably one that's verified independently). An attacker has to be willing to bring "kinetic" means to bear if you have offline backup media.
- hsk0823 8y agoHow do we know that this isn't the case here and said hacker went after those records as well? This all seems like an inside job and thus even offline backups are at risk if a disgruntled employee wanted to go after it.
- arethuza 8y agoAlso, a backup that you don't fully restore somewhere to check it actually fully works isn't really much of a backup at all.
- dsfyu404ed 8y agoAs long as you know the 1s and 0s were properly written to a disk that's now sitting in a storage locker somewhere that's infinitely better than nothing. If shit really hits the fan you can figure out how to restore from it but the data actually needs to be there in the first place. Sure, practice restoring is ideal but anything is better than nothing. It's the difference between not being able to do anything for a week and probably having to close your business entirely. Edit: Why is this getting downvoted? I'm not saying this is a "real" backup solution. Call it an archive if you want. It's still better than not having any copy of you data in offline storage off site. Defense in depth people, there's no reason you can't both have a real backup system and shove old disks in a storage tote.
- haukilup 8y agoI can't downvote so I can't say why. My first impression though is that your post doesn't offer much to the conversation. Sure, that's better than nothing. People should start the process of making backups. But when the backups are important (as we're discussing here), you need to verify that a backup can be restored - otherwise you're ignoring a huge risk.
- scardine 8y agoI guess you are getting downvoted because it would be really really hard to know if the all of the right 1s and 0s you need are there without restoring.
- eu 8y agoFrom their FAQ page[0]: > What is your backup strategy / data retention policy? > VFEmail feels it's important to provide a long-term, stable, environment for our users. In that effort, we perform nightly backups to an offsite host from all on-site and off-site mail storage locations. This backup runs at 12am CST (-0600) and contains all user data. > 3rd party storage of user data is generally not wanted by privacy-conscious users. If you fall into that category, you will want to use POP3 and download your mail daily. Our backup is on a daily/weekly rotation, initiated by a snapshot. If you do recieve mail between your last POP and the snapshot at 12am, it will exist on backup for a week - unless it's on Saturday night, then it's a year. You should set your POP program to download every 5-10 minutes in order to avoid having your mail caught on backup. [0] https://www.vfemail.net/faq.php https://www.vfemail.net/faq.php
- meowface 8y agoGood chance the SSH private key for that offsite host was on one of the servers the attacker compromised.
- alekseynyc 8y agoThe service owner is sloppy enough with his online presence that his personal website advertised in the Twitter profile is pointing to an SEO landing page. Would make me think twice before entrusting any of my data to his company.
- peterwwillis 8y agoYou should have an offsite backup. If for some reason you don't, you have options to secure a backup host. You can harden a backup host to prevent most every conceivable method to destroy the backup. You can lock down network access to prevent any connection but one to the file retrieving service itself, and prevent operations such as deletes or overwrites. You can use an append-only filesystem. You can use a SAN or NAS to allow a backup host access to one particular mount to dump files, and a different host can then move files off that mount onto a different mount that the backup host has no access to. Or you could even have "rotating backup hosts" that went effectively offline for a week at a time each, giving you several weeks worth of offline backups in case one backup server got compromised. But probably you should just do offsite backups.
- pavon 8y agoA nit, but it is important to differentiate between offsite and offline backups. VFEmail did have offsite backups, but they were online, and the attacker reformatted those disks as well. offsite: prevents against physical damage to a single site. offline: prevents against network-based attacks. You should have offline backups and offsite backups, which can be the same, or separate. Eg backup to disk/tape, and send it somewhere for storage, or backup to disk/tape kept offline locally, combined with online backups to a server offsite.
- peterwwillis 8y agoGood point! I used to assume offsite implied offline, since I'm used to offsite tape backups.
- synaesthesisx 8y agoJust speculating here, but perhaps there was a party very interested in destroying data on their infrastructure. Maybe to erase evidence of wrongdoing, or something else entirely.
- devhead 8y agothat's where my thoughts went as well... Seems it could have been a revenge attack or coverup for something/someone else.
- jawns 8y agoThat appears to be the case. The post says that hacking into all of these systems required access to multiple passwords, and because of the speed with which the systems were destroyed, I would guess the attacker had them all in hand to begin with.
- ChuckMcM 8y ago"A tale of woe and destruction where our hero learns the value of offline tape backups..." Ok, so that is pretty harsh but its part of any disaster recovery scenario where the datacenter explodes (or burns to the ground, or gets flooded, etc). And while LTO tapes are slow and nobody likes maintaining those cranky tape library machines, they will save your bacon when the unthinkable happens. Of course if it is a really nefarious kind of thing you might find that your storage unit where the tapes were stored is also torched. No good financial reason to protect against that, its an unlikely scenario. That said, when you "catch someone reformatting drives" you turn off the switches that give them access to your machines. Or at least you start logging into machines and halting them until you can be physically present to preserve them.
- herpderperator 8y agoTurning off a switch isn't going to kill any existing sessions or dd commands that were in progress - at least not until the SSH session times out and hangs up the commands it was running.
- notacoward 8y agoI know some people might only ever think about "switch" as meaning a piece of network hardware, but there are other kinds. Remote power off is a thing, and damn well will kill any existing sessions etc.
- ChuckMcM 8y agoExactly. When you've got active destruction going on, power down everything first.
- shabble 8y agoI've occasionally wondered what the best way to secure your backup host from the individual clients, and possibly clients from a compromised backup host would be. The most promising option I've come across so far is Borg running in append-only mode[1] with a client-push type model. I imagine it wouldn't help in this case, if the attacker has the creds and access to run `dd' on the backup machine directly. Anyone had any good/bad experiences with Borg append-only (or have other suggestions?) [1] https://borgbackup.readthedocs.io/en/stable/usage/notes.html#append-only-mode https://borgbackup.readthedocs.io/en/stable/usage/notes.html...
- megous 8y agoWhat about backup server being a client? That should do it.
- shabble 8y agoas in, the backup host connects to the target machines and pulls them back to itself? Biggest concern I have with that is that to get around file permissions, the backup user needs to be effectively root. It's much more of a problem is the backup server gets compromised and now they also have root level creds to every target machine. I'm not sure if something like apparmor or selinux could allow for some sort of 'read-only root' type user, and if that would actually be safe in teh circumstances.
- ars 8y agoIt only needs root read not write. There are a number of ways to do this, including a backup client that only sends data but doesn't write, a read only bind remount, or an lvm read only snapshot. The last one is best I think. Make the new lv device readable to the backup user and have it mount it, then copy the data.
- _muff1nman_ 8y agoI personally like the model of burp[1]. The clients can be configured to not have delete or even restore access to their backups and the backup server is responsible for rotating backups. [1] https://burp.grke.org/ https://burp.grke.org/
- newnewpdro 8y agoThere's always a risk of disgruntled employees doing things like this. I'm not 100% certain offline backups would prevent going out of business either. A mass exodus of customers from the extensive down time plus inevitable loss of recent data is catastrophic for a mature business in more maintenance than growth mode. At one of my early sysadmin jobs decades ago, a few weeks into the position an ex-employee broke into the network and wiped the partition tables and whatever else was in the first megabyte of the disks - usually some of the root fs, on all the ~1000 shared hosting servers. That was a very long week of headaches, and the business never fully recovered. There were offline tape backups, but they were of filesystems not disk images so we didn't have a backup of the MBR/partition tables. There also wasn't a high throughput restore mechanism. It was a minimal single enterprise-class tape drive with a small robot changer holding 10 tapes at a time. Sufficient for asynchronous backups and selective restores over NFS but not at all sufficient for restoring the entire datacenter from tapes in a timely fashion.
- AstralStorm 8y agoRestore of even huge offline backup should take no longer than 24 to 48 hours... Only situation that can take longer is a police seizure, since they will seize offline backups. Worst case you buy a remote host for a temporary runtime and if needed contact your DNS or other host and CA face to face to reset or sign new keys. Given airplanes, this is relatively fast but tedious. It is quite cheap... As long as you have the data backed up offline. They didn't.
- Felz 8y agoWow, as someone working on an email service provider startup… this is basically my worst nightmare. On the upside, the tooling around infrastructure has improved so much since vfemail launched in 2001 that there's a lot more I can do. With AWS, I can do automatic database backups, S3 bucket delete versioning, IAM auditing, whitelist firewalls, etc.
- wcoenen 8y ago> With AWS, I can do... Can you remotely delete all the data and backups? (It's an honest question; I'm not intimately familiar with AWS but from glancing at the documentation it seems that even glacier archives can be deleted without delay) Because if you can, then so can an attacker who has sufficiently compromised your business. edit: I see some stuff about "vault locking" which might do the trick. Are you using that to protect your data?
- Felz 8y agoYep, AWS doesn't seem to have any time-lock delete mechanisms as far as I know, which is a shame. I still have to research this, but as far as I can tell the best practice seems to be using MFA delete: https://docs.aws.amazon.com/AmazonS3/latest/dev/Versioning.html#MultiFactorAuthenticationDelete https://docs.aws.amazon.com/AmazonS3/latest/dev/Versioning.h... And then keeping root user credentials on a cold storage laptop. Vault lock seems to be for Glacier, but it'd still be worth looking into for cold storage backups. More layers of defense are always good.
- xfitm3 8y agoYou can also use S3 legal hold in compliance mode, although, I'm not sure how you would eventually delete it. "S3 Object Lock can be configured in one of two modes. When deployed in Governance mode, AWS accounts with specific IAM permissions are able to remove object locks from objects. If you require stronger immutability to comply with regulations, you can use Compliance Mode. In Compliance Mode, the protection cannot be removed by any user, including the root account." https://aws.amazon.com/about-aws/whats-new/2018/11/s3-object-lock/ https://aws.amazon.com/about-aws/whats-new/2018/11/s3-object...
- heyjudy 8y agoI've run efficient email hosting before. They didn't have backups, they had snapshots. Anything that isn't physically offline with vaulted, off-site provider isn't a backup.