Researchers Develop A Way To Stop Ransomware By Watching The Filesystem (phys.org)
An anonymous reader quotes a report from Phys.Org: Ransomware -- what hackers use to encrypt your computer files and demand money in exchange for freeing those contents -- is an exploding global problem with few solutions, but a team of University of Florida researchers says it has developed a way to stop it dead in its tracks. The answer, they say, lies not in keeping it out of a computer but rather in confronting it once it's there and, counterintuitively, actually letting it lock up a few files before clamping down on it. "Our system is more of an early-warning system. It doesn't prevent the ransomware from starting [...] it prevents the ransomware from completing its task [...] so you lose only a couple of pictures or a couple of documents rather than everything that's on your hard drive, and it relieves you of the burden of having to pay the ransom," said Nolen Scaife, a UF doctoral student and founding member of UF's Florida Institute for Cybersecurity Research. Scaife is part of the team that has come up with the ransomware solution, which it calls CryptoDrop. "Antivirus software is successful at stopping them when it recognizes ransomware malware, but therein lies the problem," reports Phys.Org. "'These attacks are tailored and unique every time they get installed on someone's system,' Scaife said. 'Antivirus is really good at stopping things it's seen before [...] That's where our solution is better than traditional anti-viruses. If something that's benign starts to behave maliciously, then what we can do is take action against that based on what we see is happening to your data. So we can stop, for example, all of your pictures from being encrypted.' The results, they said, were impressive. 'We ran our detector against several hundred ransomware samples that were live,' Scaife said, 'and in those case it detected 100 percent of those malware samples and it did so after only a median of 10 files were encrypted.'" The University of Florida uploaded a video briefly explaining its software.
1. Your main computer (call it 'right brain') automatically takes a 'VM snapshot' of itself at a point in time.
2. Another computer ('left brain') inspects the VM to check if data files are still accessible
3. If not, left brain 'diffs' the VM with previous 'known-good' VMs to find the source of the problem
4. Swap VMs
5. profit!
"all of your pictures form being encrypted" Now *that's* what I call editing!
That's called "heuristics" and AV has been doing that for quite a while now. And attackers will work around this system the same way they work around heuristics... if your system is freely available, they can download and test their ransomware against it until they can escape notice.
The software detects the behavior of an application. The detection is probably like 'if a process accesses each image file (OpenFile/CreateFile) , read it, create a new file with "same_name+.encrypted", then delete the original image file.' x 10 times, then that process is likely guilty.
1. What happens if the malware instead use MapFileView and 10 others potential Win32/kernel32 APIs combination? This quickly become a arms race and is going to be terrible in terms of system overhead, not to mention the time gap between a new method appearing and the detection software catching it.
2. What about Windows' internal processes that, for example, shadow copy the file? Would the detection software catches it? What about false detection of, say, the disk defragmentation software?
3. Since the system is already compromised, what stops the malware from detecting the countermeasure and just delete all the files in the system straight out? If that's too obvious, then how about write a random byte per x bytes offset to all files? Even if you killed the malware process, you can't be sure that there no other malware running on the system that can go into revenge mode.
That exists?!?! Heck, I thought protecting the MBR was a problem that was solved DECADES AGO.
Just have your files backed up on another computer at your house, on a NAS, or online. If you get ransomware then just nuke the computer and restore everything from your backup. Though if you were to combine both the backup and this then you probably wouldn't lose anything as the few modified files between backups aren't likely to be the ones to be encrypted.
I wouldn't suggest backing up to a hard drive connected directly to the computer because the ransomware will also encrypt those files too.
PGP + Truecrypt + Tor
Snowden endorsed.
Good enough for me.
...is if a few of these ransomware authors/operators started turning up dead.
Seriously.
The real solution, of course, is a proper versioning filesystem with a regularly scheduled snapshot - say, once a week, or once a day if you're extra paranoid. You can even cycle the snapshots if you want to cut disk usage down.
Never underestimate the stupidity inherent in all human beings.
Tripwire (and tripwire-like software such as bit9/Carbon Black) has been a thing for years. What's different about this approach?
"Tell me doctor, with all of your defenses, are there any provisions for an attack by killer bees?"
See subject
OK, definitely not taking my laptop to the University of Florida.
I like this idea, as it seems practical and fairly hard to fool.
Just cruising through this digital world at 33 1/3 rpm...
Did you happen to find a sale on asterisks or something?
Just cruising through this digital world at 33 1/3 rpm...
I have considered keeping a "Ransomware canary" around. I'm thinking of, say, a Word .doc file on a network drive. A process on some separate computer then checks its entropy on a regular basis, or on file change notification if available, to make sure file entropy has not grown huge.
The idea fails for local files because (as I recall) the more sophisticated ransomware inserts itself as a filesystem driver. That's a likely problem for some of these researchers' heuristics as well.
(Expanding on something I wrote a while ago)
"...and, counterintuitively, actually letting it lock up a few files before clamping down on it."
Well, this might be better than nothing, but unfortunately this assumes that those "few files" might not still cause a considerable amount of damage.
What this solution doesn't seem to take into account is the fact that ransomware has quickly moved on to commercial targets because the payoff is so much greater than targeting home users. Therefore, actually letting the proverbial dog bite you first may hurt worse than you think.
The best solution to ransomware is still the oldest one; make backups, and make them often. And make those backups very hard to access(read: offline) as soon as you can, because your VM snapshots, shadow copies, and to-disk protection methods are not going to remain safe or immune from this type of attack.
As I said on reddit: So any compression utility is a false positive. And as long as I understand all detection worked because no countermeasure was implemented in current ransomware. I thought of one simple contermeasure which simply reduce all this effort to nothing. I'm all but impressed
This shit pisses me off to no end.
We're running goddam stupid computers and it's our own goddam fault.
Look: How about some predictive algorithms that do practice runs? How hard can that be?
Here's how it should have been done back when Moby Dick was a minnow:
The computer would actually do what I've been trained NOT to do, but do anyway.
When I click on an attachment, the computer examines the future consequences in a "play like," simulation and says to itself, "this mofo set of instructions encrypts files from "out there," and not from the keyboard."
DANGER WILL ROBINSON
So, in all cases, get the fucking computer to do, "look ahead," and ask permission to initiate the self-destruction sequence.
Those consequences should be presented in plain language.
Lookit: My mom, way back, got a computer with a modem on dialup.
She called me up, all frustrated because the damn thing quit working and I determined that, in a manner reminiscent of the "drunk walk," had unintentionally uninstalled the goddam modem driver.
Why the hell didn't the computer say, "Ma'am, if you keep doing this shit, we will never be able to connect to the Internet and that's just about all this crappy-ass machine is good for and stuff. You obviously don't want to do this, so, get some help, OK?"
It little behooves the best of us to comment on the rest of us.
As a total noob i have question . Recently there was article about Apple fix ransomeware vulnerability on Mac OS . This file watching approach is it specifically meant for Windows ? What about mainstream Ubuntu/Linux for us Windows refugees ? Is there ransomware for Ubuntu/Linux out there now ? Just noob asking .... ;)
Here's a 100% effective ransomeware solution. When you fork out hundreds or thousands of dollars for your computer, fork out a $100 more and get an identical hard drive to what it has inside and a one-button disk cloner off of Ali Express or eBay for a few dollars. Weekly disk cloning kills ranssomeware dead. In the worst case scenario, you clone the drive with the malware on it but before it activates. In that scenario, you can still restore from backup and even if the OS is hopelessly compromised with malware beyond anyone's skill to remove, you still can access all your files.
Of course, the best solution is still not to run stupid software.
So Ransomware would have to gain Admin rights to disable this system?
Why would I use truecrypt on a mac? The mac already has FDE built in, courtesy of FileVault.
Are agnostics skeptical of unicorns too?
You should be using VeraCrypt since TrueCrypt is outdated.
--Setup a ZFS+Linux+Samba server as a RAID10 network share drive, copy data to it, take a known-good snapshot. Do a zpool scrub afterward to make sure.
--Then implement a cron script that takes a rolling snapshot Mon-Sun. If you're feeling ambitious you can install the zfs-auto-snapshot package but you should really disable the "frequent" snapshots (every 15 minutes? who really needs that?) and possibly "hourly" snapshots since they will prevent your disks from going to sleep.
--As a bonus, you could also take rolling day-of-month (1-31) snapshots in the same script. Just destroy the existing snapshot name before taking another one.
(Disclaimer: I have done this and the concept appears fairly bulletproof, since ZFS snapshot directories are read-only.) Feel free to ask me for details or provide feedback...
.
== WolfriderV6 == I'm willing to admit that *I just might* be wrong... Are you??