390 points · by 1915cb1f · 6y ago · 344 comments
I mean not many apps need to modify millions of files on all drives including network drives and dongles... It should be fairly easy to spot, something like:
1. If xxx wants to modify more than 50 files in 24 hours go to 2.
2. If some of the files were modified more than a week ago or if the files are in directories across multiple drives go to 3.
3. If some of the files are images/documents it's a no go, prompt user to accept and list the affected files.
I'd love something like this for my Synology, it's connected to my Macbook as a network drive and I store my backups there, if anything modifies these files without my knowledge I'm doomed. I need to access some of my backups on daily basis so it's kinda hard to disconnect te drive all the time :/
Of course, bad guys still can 1) create encrypted copy and delete originals instead of modifying files in place; 2) disable protection alongside with A/V and proceed as usual; and my favorite 3) rely on built-in disk encryption mechanisms and simply overwrite encryption keys & salts.
How would the malware do that? I've looked into this and with Windows 10 1903 onward, Tamper Protection is enabled by default. [1]
I have yet to find a programmatic method to disable Tamper Protection (which is a prerequisite to disable Defender). I've tried regedit (permission denied), GPO, and all other manner of PowerShell thuggery, but I have not succeeded. In the end, I scripted extracting and editing the registry hive offline (outside the VM) to disable Tamper Protection.
Unless the malware has a way to open the Settings app and toggle Tamper Protection in the UI as if they were a user, I can't think of any way they could disable it unless they exploit a known weakness in Defender or a third-party anti-virus program (entirely possible).
[1] https://docs.microsoft.com/en-us/windows/security/threat-pro...
I've looked into this, but it feels limited to me. It's all or nothing. I can't have App1 only access Documents and App2 only access Pictures. Once I give any one app access to the "protected folders", it has access to all the protected folders.
All applications run inside a VM, and you set up different VMs for different tasks. The windows are all composited onto one seamless desktop environment, with the colour of the window decorations telling you which VM it's in. You can copy and paste between the VMs with a special keyboard shortcut, and you can manually copy files between them as well, but otherwise they have no access to each other.
If you open some ransomware in one VM, it can't touch (or read, or know of the existence of) any of the data in other VMs.
In practice though, if you're a power user you probably won't run shady binaries, and if you do - nothing will protect you from them as your user is likely a member of administrative group / wheel and you use sudo/su/doas somewhat regularly. While if you're worried about protecting your employees/family members, just making sure they are not part of the same admin groups and enforcing basic Software Restriction Policy / AppLocker / SELinux / RBAC will be enough to protect against 99% threats out there.
But if you thought the app was good and granted it access and it then goes wild...
Not a good first impression, and I don't really want to learn the file access patterns of all the things I use.
I think it'd be easier to isolate applications and data like Cubes OS instead of trying to create a universal rule set.
- External drive with a bootable backup (Carbon Copy Cloner)
- Network drive with automagical Time Machine backups
- Offsite versioned backups (for example Backblaze)
"Pride goes before destruction, and a haughty spirit before a fall", but I'd be surprised if I ever will lose a file like this.
I guess that's one reason why if you don't try restoring from you backups it's as good as not having any...
I have a vague memory of ransomware that waited for one to mount external disks yes, but not as advanced as they ones you mentioned
Don’t let apps access “files on external volumes” or “files on removable media” or whatever it calls it on the popup when an app first tries to access those.
And one flips a hardware switch to start overwriting from the beginning, if disk full
https://en.wikipedia.org/wiki/Write_once_read_many
This is the acronym I saw on HN somewhere though, WORM.
Edit: Upon further research its kind of annoying that this isn't more common for NAS / cloud storage solutions. I think some like Dropbox do keep revisions on the other hand.
No -- that only writes to sub dirs
It's a program that warns me whenever programs are locking files. In practice it's a minor annoyance when using brew or pip. Similarly, Oversight tells me when my camera and mic are being used. https://objective-see.com/products/oversight.html It's a minor annoyance whenever I have a video call and plug in a microphone. But it's "for my protection", and sometimes can be useful to know whether it's really my sound settings that are the problem, or that my headphones are unplugged. These two also seem more trustworthy than anti-virus for Mac, because they don't claim to keep me safe, just warn me when there's a problem.
Pirate sites have reputations the same as anybody. The more reputable ones actively remove spam and malware.
So it's kind of like saying, I don't understand how people dare to run executables downloaded through the internet. Depends a lot on where on the internet you downloaded it.
I have no idea what the landscape looks like today, and I’d be reluctant to run anything outside a vm, since I no longer know where the reputable sources are, but I’m sure there are still private trackers and discord servers where you could trust every link.
They happily ban users for sharing the wrong links, and have banned entire instances for discussing anticheating technology.
You're unlikely to get a direct answer because... Well you don't talk about fight club. But if you watch the subreddits a bit you'll get a much better idea of where to start, how to get invites to private trackers, etc.
I don't remember when PirateBay or other Warez sites first appeared, but they have been around for at least 20 years. I remember people were even using Blogspot to promote their wares/z with links to RG, FS, DF, etc.
I know and trust(?) the results of Virustotal, and I tell all my clients that when in doubt, drop that bad (?) boy in VT and let it scan it.
...that aren't there own.
rutracker isn't some fly-by-night random tracker, it's a well established site in Russia, and the admins have been extremely communicative with users throughout virtually every governmental upset.
To add some context, try to imagine if the classic western trackers had prominent links like this, for example, what.cd.
Looking at the thread, the early posts correctly identified it as malware before the malwarebytes report, and even noted that the link itself violated the application post rules.
It's good for malwarebytes to report that this exists, but they're focusing on the wrong parts, imho.
The hash files to identify the affected file should have been the first part, then the explanation. A bit of google translate would have shown that already, rutracker users are calling to delete the thread.
AV/anti-"malware" has always meant "pro-corporations/pro-copyright/pro-establishment", ever since they started detecting completely clean keygens and cracks as well as "hacking tools" and demoscene productions.
There is sometimes truth, like this article, but there is also a lot of FUD --- IMHO to herd users into giving up personal discretion and instead adopting centralised trust.
AFAIK this is usually a side effect of self-unpacking compressed executables, as produced by EXE packers. They have a property that's been useful to malware authors: they obfuscate the code. To de-obfuscate, you have to unpack, which some anti-virus vendors actually do for executables produced by common compression tools like UPX. For certain types of demoscene productions, however, a popular tool like UPX won't do if you can shave another few bytes using a more obscure packer that AV software are unlikely to have unpackers for. Once malware authors start using those same packers you'll get false positives based on signatures that are likely common to all software using them.
But do you understand people who dare to run executables from 'proper-company' site? It's closed source, you have no idea what you are running, isn't it? As long as it's not free software in terms of FSF there is not guarantee what so ever that it's not harmful or even worse intentionally harmful.
How about this one from SONY, that didn't even ask user to run? https://en.wikipedia.org/wiki/Sony_BMG_copy_protection_rootk...
or this one Amazon remotely deletes book from kindle: https://www.nytimes.com/2009/07/18/technology/companies/18am...
For pirated software the incentive structures are also clear, and usually point towards "yeah if given the chance they'll take everything from my HDD and make a run for it."
I'm all for FOSS everything, but running a company-distributed binaries is very different from pirated ones, and I agree with GP that it baffles me someone would do the latter.
It also depends on what company means by "not screw everyone over" Right now many companies consider practices as 'OK' while I am coming from the times when most of those modern activities considered to be virus or malware. So for me it doesn't really matter whether you have malware installed by a virus or it's hidden deeply in EULA which you can't reject partially anyway.
You'll have to trust somebody at some point.
Do you trust the company who designed your Ethernet chip? Do you trust the person who wrote the firmware for it? If not, go and design your own network chip. Otherwise, there's no guarantee it won't spy on you.
You'll also want to write your own compiler that you'll then use to build the operating system you intend to run. You won't just go download some Linux .iso to install, would you? After all, there's no guarantee it's not been manipulated by those who offer it on their website.
No, I do not have to. I can choose to, but I don't have to! That is the core of the issue.If I 'have to' then I don't. I prefer checking and facts, not delusions.
>Do you trust the company who designed your Ethernet chip?
No, I don't and we shouldn't. I evaluate chances and we should track network activity with diff. hardware on diff. chipsets from diff. manufacturers.
>Do you trust the person who wrote the firmware for it?
No, I don't and we shouldn't as it's insane to do so.
>If not, go and design your own network chip.
There are other means to overcome this: encryption. But yes, you right, we should make open source network chip. Agree. I certainly plan to design it.
>Otherwise, there's no guarantee it won't spy on you. That is correct, I agree with you.
>You'll also want to write your own compiler.
Yes, that is correct. I want and I am writing it right now. There is also an option of GNU c/c++ compiler available (GCC) https://gcc.gnu.org
>that you'll then use to build the operating system you intend to run.
This is how you build a proper GNU/Linux system worth some degree of your trust.
>You won't just go download some Linux .iso to install, would you? After all, there's no guarantee it's not been manipulated by those who offer it on their website.
Exactly. Or it can be modified on the way, while you download it. For the later you can check hash sums published by a site who respects user freedom and cares about own reputation.
>You'll have to trust somebody at some point.
Again I do not have to, but I can choose to trust with some degree to Richard Stallman and people sharing his views. https://www.youtube.com/watch?v=n9YDz-Iwgyw
I have some trouble trusting FSF since he was removed from the position due to false accusations for saying (!) just saying things, which he actually didn't say if you read carefully. Speak about respect of freedom of speech.
https://www.youtube.com/watch?v=7UbQ1kc1vQU
To trust the system we should have trust worthy components with open sourced designs starting from CPU and every chip installed and ending with each software running. That is the only way!
The set of computer users who a) have the knowledge to do security code review and b) have the time to review the programs they run is, I would expect, fairly small.
Obligatory reference to Reflections on trusting trust [1]
Even a small number of those who understands can make a huge noise, because if comment is well grounded, it spreads exponentially by people who do not need to understand all the details.
And frankly how much those who understand you really need for each project? The thing is, if you are worried you can always look, which is not the case if you have nowhere to look.
Also expert is not always required just to see there is no brutal obvious harm intent, which covers a lot of cases
I have also never seen anybody who made this argument verify their free software by looking at sources before compiling.
Let's take a File System for a second as example. If you wrote your personal data on some disk drive and then to read this drive you need let's say Mac/Win because it's a closed format. And Mac/Win cost money. How it differs from ransomware then? Sure you have more time to decide, usually more than 3 days and it costs a bit less, but is it much of a difference there? Probaly a choice to start using it, but is it really a choice? In many cases it's not really. So back to your point, I understand it, but do you?
...and now you know why Adobe products are so easy to pirate. Young pirates turn into loyal product users and customers.
Anyhow, I know that much of my early software license transgressions resulted in actual software licenses.
Yes, digital responsibility is ignored by those using cracked software, but really you can't ignore factual constraints and the economic situation, when talking about who's to blame.
It's a cost/benefit analysis... Billions of people in the developing world rely on pirated software, for one...
Heck, even in large parts of Europe, at some point there would be much fewer graphic designers today e.g. if they couldn't pirate Photoshop when they were young and non-pro (and no, Gimp wouldn't be of much use, they want to learn on the industry standard)...
And it shows in their systems. I know a few people with extensive travel experience in Africa and most of them, despite being decidedly non-technical, came back with essentially the same story: "if you absolutely have to bring a laptop, don't ever connect it to something that has a data line"
But for students Adobe was basically giving it away :) I remember getting a CD for 15 guilders at the time at the university. Which was around 5 euros.
To be honest, when I had to upgrade my Windows machine last year, I really regretted the fact that I've gone fully legit with VST plugins. It took me more than a week to deregister and reregister all the horrible proprietary DRM schemes those companies are using. That would have taken less than a day if I had used cracked versions.
No one knows what they are doing. Unless you are decompiling and reverse engineering the whole thing you are mostly just blindly trusting its safe. Even on trusted sites people share stuff from other sites not knowing its infected.
Like the OP, back in the day I used to have plenty of pirated software (mostly games) and never had a problem with viruses (at least, not that I knew or had any noticeable effects). The threat complexity is probably way worse these days and I wouldn't risk it. Plus, of course, I support games by paying for them :)
I used to swear by Outpost Firewall as it was able to do things like detect applications adding to startup, injecting into other processes, gaining raw disk access, reading your browser profile for passwords, communicating with any unexpected hosts, etc. This is enough to rapidly identify most malware packaged with pirated software immediately. This isn't some advanced targeted attack, it's a script kiddie packing ransomware, password dumpers like iStealer, RATs like DarkComet, etc. The kind of thing these tools are designed to detect.
Sony has a root kit included, Zoom had a web server that could be exploited (at least) to then on your camera.
That’s just off the top of my head.
The damage malware can do now is so much deeper - encrypting all your files, which then gets synchronised out through the tool you were using for backups automatically, before holding them to ransom. Then it turns your light bulbs into DDoS nodes to spread that to people across the internet, and probably you won't notice because you're on a fast enough connection for that to fly under the radar.
There is a de-drm tool that I used to use which packages some other open source. For whatever reason, I always assume people who package up software are careful about what they're packaging up, but no, as it turned out this project is not careful at all. It shouldn't have been surprising but it was.
(I ended up writing my own tool. I de-drm on principle; I don't mind buying stuff, I am deeply offended when that stuff vanishes out from under me because of deliberate obsolescence and/or shutdown. Buying DRM-free is not always an option.)
Mac has the sandbox runner, with a configuration file. However it’s deprecated, and difficult to create.
Also, not even Facebook signs all their apps.
It’s funny, bc everybody is kicking and yelling against the AppStore, and the process. But it’s the only thing protecting everybody from misuse
It was and is a small number of people regardless. I’m not sure if that’s going to be the “reason” nothing happened. If so, it doesn’t seem like that can conclude protection from misuse.
Adobe and Microsoft are the most targeted by malware writers unsurprisingly.
Ive done similar on mac too.
In Big Sur, it might be.
> AFAIK it is always safe to open an app you download from the web (although the app may not respect your privacy).
Apps can still encrypt your disk this way.
https://nektony.com/wp-content/uploads/2019/11/grant-acces-d...
I could be wrong, maybe it's only for certain kinds of apps.
No its not various ways to break out of sandboxes exist.
Now everything is subscription based fully you have to replace the license system within most major software.
So I'm told.
If you cannot afford Little Snitch or don't want to pay for it or just prefer open source, install LuLu. It's a free and open source alternative to LS application firewall. [1] You can install it through Homebrew or download binaries manually [2].
I had the same experience with Visual Studio back in the day (aka Visual C++ 6.0; fond memories...), and of course photoshop.
It’s a stupid game, but quite a personal growth vector.
Since software dev isn't the domain of lifelong nerds anymore I don't think most folk are as understanding or knowledgeable about the positives of piracy (or related issues around software freedom or the economic properties of digital data), hence your unfortunate downvotes.
It's a shame... there are many of us who would not be where we are today, as productive, value-creating citizens, without having learned our trade with pirated software.
Piracy is a wonderful equalizer in that regard. Companies have every right to come down on piracy, but it often works against you if your software is a tool.
Agreed. I learned to program with GW-BASIC which if I remember correctly was included in a (pirated) copy of MS-DOS. Then I graduated to pirated Turbo C and Borland C++, and (I think) only then to the genuinely free DJGPP (a port of GCC for DOS).
If it weren't for pirated software, I wouldn't be a programmer today.
I imagine Adobe has managed to keep a lot of mindshare for Photoshop simply by how widely it is pirated. If pirating Photoshop was absolutely impossible, there'd probably be a lot more Gimp users in this world.
It is similar to making a xerox copy of a book obtained from the library, recording a rented video on a new videocassette tape, making an unauthorized recording at a music concert, or typing code you found in Numerical Recipes into your own open source project.
It is not at all similar to boarding a ship and robbing the passengers.
For almost any other positions: it's murkier. If you take a berry off a bush on public property... what's the morality? Or growing from private property overhanging public that's just dropping fruit and the owners are either not present or clearly allowing fruit to drop? It's theirs, they absolutely could harvest it, but they're not and it's clearly implied that is not going to change. Now what?
Yes that's still further towards harmless than you can likely argue software piracy is (... ignoring the network effects of everyone knowing how to use X because everyone pirated it, or I could probably come up with others), but my point is that strict black and white separations have dividing lines and breaking points. Whether there is black or white somewhere isn't really useful to anyone, it's where you draw the line.
(I'm surprised you're getting beat up for this sentiment. $40 is definitely below the threshold of "purchase on a whim and try to learn it for a month." FL Studio was another great one at $99. Still, I'm sympathetic to people who simply can't afford it – children especially.)
It matters a lot what site binaries are downloaded from, and a lot of average users don’t really understand the difference.
I suppose as long as a human decision is involved there is room for error.
Wonder if this can be solved without going 100% down the app store path.
Let's say I already own and use Little Snitch for monitoring traffic, but I want to install RansomWhere to detect malware. Do I get rid of Little Snitch even though I prefer it, or do I deal with having duplicate software on my machine?
https://twitter.com/beatsballert/status/1277557875888533504
I'd assume they wouldn't post the full name if someone sends them a private email.
I wonder if they actually decrypt the files for that amount or if they demand more. I keep backups, but if I somehow got hit by this, I think I'd pay the $50 to avoid losing the few days of work. (I'd have a bit of an ethical quandary about it, but I'd still probably do it if I'm being quite honest.)
At $50, do they get enough scale for the endeavor to be worthwhile? This malware doesn’t appear to be particularly smart, but it must have taken some effort to wrote and seed trackers with fakes, and it will all be for nothing once Apple updates the XProtect definitions.
If people keep downloading and installing, the fact that it’s only $50 makes it easier to justify and pay.
Most people don’t keep backups. Every time I had someone close call me about a phone they lost access to and if there was anything they could do for their pictures, the only thing you could say is, do you have backups? Then direct them to someone who could mess with their hardware (if they still had it) and see what they could do.
If it was a screen, they’d pay to get it replace. If it was a sketchy soldering job, they’d risk it just to get their photos, same with transferring boards, etc. If it was just paying $50 bucks, I know a ton of people that would spend they money and probably like 80% of them would then keep using their phones without backing it up.
That's when they target corporations and governments. Such small amounts are nothing when those are concerned.
Everything gets a clean install and only non-binaries get restored from backup.
I can do that more easily if I don't loose ~2–3 days of work though (or whatever amount of time has passed since the last offline backup). Even if I need to manually go through the documents so that only non-binaries are restored, just having them would probably be helpful.
I don't know, I guess it depends a lot on the actual situation: what I was working on at the time, etc. But that $50 price tag seems alluring.
Say I get a popup right now that says I have to send n BTC to wallet x. And say I do. What then? How do they find me to deliver a key?
It all seems rather nonsensical. They may as well fill your files with noise for all the difference it makes.
Fun fact–according to a local security firm I stopped by, Ransomware developers actually have to have good customer service because once it becomes known that files don't get decrypted, no one will pay for Ransomware. I've even seen screenshots (posted on the internet, so take it with a grain of salt) where Ransomware teams unlocked computers for free because the subject couldn't afford to pay the ransom.
So you can generate a unique private key for each person, give them the pubkey (the address), and watch the network for 1:1 reconciliation.
So you can generate N private keys, give the pubkeys (the address) to N people, and watch the network for 1:1 reconciliation.
Is there a chatbot I can point at this chucklehead?
> I really want to pay you BTC, but my computer says bit torrent was made by an unverified developer. I called my bank, and they said to ask what other ways you can accept payment. Do you know what a “Wire Transfer” is? We’re saving up for our first house, so I have the money and Ashley won’t miss it. Is $2000 OK? Please please please don’t out me!!!
And then I want it to send a dozen more of these until the scammer gives up or sends it bank account info.
> You probably noticed your device is acting strangely lately. That's because you downloaded a nasty software I created while you were browsing the Ƿornographic website...[...] If you do not do what I ask you now, I will upload this ugly video file with you ... and the stuff you were watching to several video upload sites and I will send the links to all your friends, family members and associates.[...] I think 2,000 USD is a fair price for my silence. I know you can handle to send me this money - and it is enough for me to get lost. So how do you send the cash?? Bitcoin.[...]
> Ok.. so what if you decide not to pay ? Well if you want to test my patience - go on. I will destroy your social life, you can count on that. You think that visiting Police is a good idea ? Nope. I don't live in your country and I know how to stay Anonymous. I will send the compromising video to everyone you know! Just send me the 2,000 USD and we forget about the whole thing. I have family to feed too.[...]
> The time starts ticking after you open this letter (I included a pixel in this message and I will know when you read it).
Oddly enough, nothing ever happened.
> ooooohhhhh... i got a sextortion email
> 'm a hacker who cracked your email and device a few months ago.
> "Through your email, I uploaded malicious code to your Operation System."
> (somehow i doubt that)
> "So, when you had fun on piquant sites (you know what I mean!)
> I made screenshot with using my program from your camera"
> piquant? bitch, please, the porn sites i visit a more hard-core than piquant.
People put way too much trust in webcam LEDs. Not because they don't work or could be bypassed, but because it's super easy to just not notice it if it only comes on for a split second. It doesn't take much time to grab a single frame; maybe you've been staring...intently...at the screen and get tunnel vision, or you just look away, or whatever.
Even if the LED was forced to light up for half a second before and after the camera became active as a sort of safety interlock, what's the average user gonna do with that information if it's unexpected? Panic and close the lid?
I'm not super paranoid about this but I'm just paranoid enough that I use Oversight[1] and manually approve whichever app is asking for access at the time. You can do this halfway natively in Catalina, but as far as I know it's binary - either the app has access or it doesn't, you can't set it to ask each time.
I’ve always wanted to reply and waste their time, but on the other hand, I don’t want to waste my time, and I don’t want to let them know my email is still in use.
The thought of some poor bastard in an Internet cafe, desperately trying to cover up a gif of some old men “having fun” would give me a giggle.
I’m easily amused.
If this doesn't exist already it really should! Simply season a mail forwarding rule to taste and watch hilarity ensue.
I wonder what ROI would look like in comparison if the schemers targeted $49.98.
The programs mentioned run in background almost continuously, right? If the malware modifies these, couldn't they execute it themselves so they could have a non-suspicious looking process?
Installing pirated software you find "on the internet" in 2020 is the equivalent of spending a few hours in a confined space full of other people, none of them wearing masks. Don't be surprised when you get sick.
The sandbox-exec command is DEPRECATED. Developers who wish to sandbox an app should instead adopt the App Sandbox feature described in the App Sandbox Design Guide. The sandbox-exec command enters a sandbox 1) while this might stop ransomware as we know it, it does not fix the underlying problem, e.g. usually all the important files are in the "regular folder" anyway, so even if adversaries wouldn't be able to delete them, they still can steal them
2) privescs are cheap and abundant, which makes all localhost-based protection mechanisms trivial to bypassPirate torrent tracker forum rules often demand every single Mac app uploaded must be encapsulated in a DMG disk image file.
14-15-year-old me whose parents would not allow me to use their credit cards, along with the thousands like me in that situation; either have the option to pirate Little Snitch alongside whatever else they are pirating; most likely to learn how to use; or not pirate and learn at all. Piracy is a non-option for a lot of people in this critical age group who still have a great drive and initiative to learn.
Blocking people like this out, stopping them, or shaming them; is stomping on our future.
These days I think it's changed somewhat with advent of better quality open-source tools that will run on lower-spec systems.
Also, piracy of proprietary software hurts free software, which is means it is worse existential harm to computing than not having access to Photoshop.
Because some people still use computers without internet connections – especially users of “pro” applications (widely defined, e.g. anything made by Adobe), which are some of the most commonly pirated applications. I can confirm from experience that cracks telling you to prevent the program from connecting to the Internet are a thing.