10 ms·
The Frightening Power of Ransomware Done Right
- dmos62 8y agoI've recently learned that OpenZFS has effective counter-measures for ransomware and data corruption in general. Quote from here [0]: > As a copy-on-write file system, OpenZFS provides efficient and consistent snapshots of your data at any given point in time. Each snapshot only includes the precise delta of changes between any two points in time and can be cloned to provide writable copies of any previous state without losing the original copy. Snapshots also provide the basis of OpenZFS replication or backing up of your data to local and remote systems. Because an OpenZFS snapshot takes place at the block level of the file system, it is immune to any file-level encryption by ransomware that occurs over it. A carefully-planned snapshot, replication, retention, and restoration strategy can provide the low-level isolation you need to enable your storage infrastructure to quickly recover from ransomware attacks. [0] https://www.ixsystems.com/blog/combating-ransomware/ https://www.ixsystems.com/blog/combating-ransomware/
- mnw21cam 8y agoYes, or just taking decent backups of your data.
- NullPrefix 8y agoBackups are active measure, that you have to do on purpose. Changelog fs just works
- mnw21cam 8y agoThey're pretty automatic on any system I get my grubby hands on. The added advantage is that backups done properly will protect you against the machine going up in smoke, where CoW won't.
- gcb0 8y agowell, if you automate backups too much, the Ransonware would eventually have reached your backup storage and screwed things there too...
- namibj 8y agoThat's why proper backups are done in a pull-configuration and not the easy way of push. I.e., the backup system has access to the production system, and grabs the data itself. The production system can at worst serve bad data to the backup system, against which the protections are not that hard. Basically just a protocol client that can handle malicious servers, like a HTTP(S) server/client or such.
- jwatt 8y agoMany (most?) backup systems seem to mount the backup filesystem locally, allowing ransomware to access and encrypt the backup files too. For example, not too long ago I set up a networked drive that can be accessed only with a password over Apple File Protocol. I gave that password ONLY to Time Machine hoping it might do something smart and mount the drive in a way that only it could access. Of course it mounts it under /Volumes, allowing it to be accessed via Terminal without having to enter the password... I guess because of this you see "protect yourself from ransomware attack" guides recommending keeping your backup drive/filesystem attached for as short a period as possible. But even then you're left hoping that the ransomware doesn't encrypt your backups first - perhaps because it's smart enough to - or that it doesn't get too many of them before you notice the infection. I wish all backup software would avoid making the remote filesystem available system-wide and raise the bar by requiring ransomware to know how to extract access to the remote filesystem from the particular backup software you're using before it could encrypt your backups. Unfortunately, as far as I could tell last time I looked this issue seems to be ignored by backup software vendors.
- mnw21cam 8y agoThis is a completely valid point. Why would you give access to the backup storage area to the production system? Where I have implemented it, the only access the production system has to the backup system is to connect to an ssh server with a private key, and shove a tar down the pipe, which the backup system then squirrels away somewhere safe. This is a push configuration, but it's a safe one - the backup system doesn't have access to the production system either, and the production system cannot overwrite/delete any data on the backup system.
- amelius 8y agoI suppose that snapshotting will cause old versions of the data to be thrown away, once the old versions start taking up too much disk space. Then I suppose the ransomware can take advantage of this and simply perform so many writes that the unencrypted versions of the data are thrown away. And isn't this what happens anyway when a disk is nearly full and you start encrypting its contents?
- doublerebel 8y agoThat's not at all how ZFS snapshotting works. ZFS snapshots are manually managed. And totally awesome.
- alkonaut 8y agoIf there are no automatic snapshots by default then the snapshots are just like backups - i.e. an active measure the user has to take? Then it doesn't really protect against ransomware (Assume that we are talking about users who don't have backup - they wouldn't have zfs snapshot either?)
- ncheek 8y agoZFS snapshots can be automated. I have ZFS periodic snapshots enabled on my FreeNAS system, where I can select when snapshots will occur (frequency and time) as well as how long the snapshots will be kept.
- AnIdiotOnTheNet 8y agoBackups can also be automated. I think that parent's point is that, like backup, if it isn't the default then users are probably not doing it. It is my experience that most people, even people who should know better like you or me, think of data loss risks as theoretical until they've experienced it first hand once or twice.
- Wowfunhappy 8y ago
- gruez 8y agothe malware can't delete your snapshots?
- kchoudhu 8y agoExport zvols from a central fileserver via iscsi, and install the exposed operating system on it. Snap the zvols on the fileserver. Unless your fileserver is compromised, there's no way the ransomeware can persist in your network.
- barrkel 8y agoZvols on zfs exhibit poor disk utilisation unless your block size, stripe size and file size line up just right. They work, but I've found major space savings sticking with zfs directly, if possible.
- kchoudhu 8y agoIn my cases, disk is cheap and I don't particularly care about utilization. The ability to wipe away errors whenever the need arises is priceless.
- xoa 8y ago>I've recently learned that OpenZFS has effective counter-measures for ransomware and data corruption in general. Sort of. The data corruption part yes, that's a core transparent part of the filesystem as it should be. But for ransomware ZFS only provides helpful tools for doing so, it's not designed around that specifically (though it could provide the foundation for something that was). Very low cost atomic snapshots and ease of replication definitely can help if they're used, particularly combined with ZFS permission delegation system. You can set a user to have snapshotting permissions separately from permission to destroy snapshots, as well as rollbacks, sends, etc. Of course that won't help if ransomware gets root (unless in turn the storage has hardware separation, loaded over a NAS say), but it's still quite handy. It would be interesting actually if ZFS had some limited active content monitoring capabilities, such as detecting changes in entropy or a sudden massive spike in snapshot delta size (indicating everything in the file system had been touched). At any rate though note the "a carefully planned" bit there, ZFS is a fantastic foundation for a better data protection system and makes it easier to do well. But it's not install-and-forget by itself either right now, though someone could build something on top if they wanted to (or maybe already has? it has been a while since I surveyed ZnapZend and the like).
- tim333 8y ago>spent lavishly on a fleet of luxury cars, two French villas, and a large yacht ... lives ... on the Black Sea, where Russian officials have declined for years to arrest him It's a shame the Russians aren't a little more cooperative with stopping this kind of stuff.
- j0hnml 8y agoWhy would they? The RU government is likely directly involved with these kinds of attacks/campaigns
- ataturk 8y agoI bet you $100 the CIA is balls deep in this shit.
- rdtsc 8y agoThe article even mentions that allegedly the bot network was used to launch attacks beneficial to the Russian government. If there is any criminal organization powerful enough in Russia, and their leaders haven't been assassinated or imprisoned, it's safe to assume they work closely with the government.
- acct1771 8y agoObligatory: US/West is precisely the same.
- empath75 8y agoHe’s basically a government contractor, are you kidding.
- gnode 8y agoWhile it's easy to blame this on corruption, extradition is prohibited by the constitution of Russia (since its inception in 1993).
- celticninja 8y ago
- mettamage 8y agoTo know a bit more about one of the researchers see: https://syssec.mistakenot.net/ https://syssec.mistakenot.net/ He gave a lecture about it in one of the classes I followed at one point.
- nailer 8y ago> there was no way to predict which domains the DGA would come up with for any given week. Wouldn't there be a seed on each infected machine used to determine the current C&C domains to use? Why couldn't we predict them?
- smeyer 8y agoIf you read further in the article you'll hit >The FBI worked with a number of security researchers to reverse engineer the DGA and figure out how it generated the list of domain names it provided to the infected computers every week. That way, the FBI would know which thousand domains were being selected every week in advance. Then, right before the takedown, they acquired a temporary restraining order that required domain registries in the U.S. to redirect any attempts to contact those thousand domains to a substitute, government-run server. So the answer is, yes, there was a way, and so eventually that's what law enforcement did.
- nailer 8y agoThankyou!
- deft-code 8y agoWhy would taking down the C&C for one week kill the botnet? Or for that matter even a few months. I assume the bots can just keep trying to find the C&C until it finally gets through.
- brokenmachine 8y agoI don't think it did kill the botnet. From the article: "on July 11, 2014, the Justice Department reported that the number of computers infected with GOZ malware had been reduced by 31 percent thanks to law enforcement intervention." Also they were blocking the autogenerated domains on a weekly basis, but that would only work if the infected machine was in the US I believe.
- ryanlol 8y agoI own C&C domains that have been dormant for 8+ years now, they still get a constant stream of bot traffic.
- turc1656 8y ago"If Bogachev had been more careful about not using his real name when registering for accounts, he might not now be the FBI’s most wanted cybercriminal." I'm not sure he cared about being discovered given this information..."Bogachev lives in the resort town of Anapa on the Black Sea, where Russian officials have declined for years to arrest him or extradite him to the United States. In fact, the Russian government has benefited from his criminal activity." Friends in high places never hurts, especially if they are corrupt. He basically gets to live life like a Bond villain so I'm reasonably confident he never intended to hide his name or activity for the long haul.
- Misdicorl 8y agoIt still makes him 100% reliant on those friends, who you've already noted are corrupt. He's likely already been squeezed out of 99% of this money.
- meowface 8y agoQuite possibly, but he's probably still a millionaire. Not a bad deal for him. He still gets to make millions and commit fraud scot free, with the protection of the Russian government. He also gets to have fun working on sophisticated malware and novel C2 infrastructure architectures, continuously honing his skills. If I were him (and also had no morals) I'd probably be pretty happy with my life.
- humbermetallic 8y agoAn interesting read, thanks for sharing. At the end ransomware WannaCry was mentioned. Is it in any way related to Bogachev's operations or is it confirmed to be an effort by North Korea? The part where he uses his real name for a yahoo account does sound stupid, but maybe he really felt safe that Russian authorities won't cooperate with an international arrest order.
- demygale 8y agoI wish articles had dates on the byline
- Damogran6 8y agoAnother thing to look at is dedupe percentage...if things all of a sudden stop compressing really well, it's an indicator of text files being converted to encrypted, random looking, noise.
- Wowfunhappy 8y agoSomething I've long wondered about—shouldn't Ransomeware be relatively easy to detect with a heuristic? There aren't all that many† legitimate use cases for rewriting 30%+ of the data on your hard disk. Seems like a good time for the OS to pause the process and notify the user before continuing. If ZFS snapshots or similar are in use, there are even fewer cases where you'd want to rewrite 30% of data and delete all snapshots. † Note, "not many" ≠ zero. I realize this would sometimes result in false positives, but I imagine the trade-off would be worthwhile, especially if the protection was user controlled.
- technion 8y agoWindows admins have been running heuristics with File Server Resource Manager for a few years. We had users disabled and SMB access immediately denied for users that created certain file types, and email alerts get sent. It was surprisingly effective.
- brokenmachine 8y agoWouldn't they be able to trace who registered the C&C domain every week?