r/linux4noobs • • 3d ago

learning/research Linux Ransomware

Just an out of curios question. Does Linux distros can get a ransomware attack and if they do how can I prevent it from happening? does using LUKS encryption will help to prevent this thing?

19 Upvotes

56 comments sorted by

25

u/wolfegothmog 3d ago

Yes Linux can get ransomware like any other operating system, using LUKS won't help. In general don't install sketchy things (try to only install trusted software from your distros repos) and keep your software up to date

8

u/victormas208 3d ago

As an additional measure, look into sandboxes; since new vulnerabilities can be discovered every day, keep your system updated whenever possible.

5

u/wolfegothmog 3d ago

Ya, also don't expose services to the internet and use an ad blocker, that basically cuts the risk 99% for a desktop user.

2

u/SouthernFruit8768 2d ago

But nowadays even ublock Origin doesn’t work. I have it on Firefox but still see ads and plenty of popup dialog boxes asking about acceptance of cookies etc

11

u/gainan 2d ago

you're doing something wrong then: uBlock is not working, you don't have enough blocklists enabled, or your firefox is compromised (malicious addon serving ads, malicious persistent webhook, ...).

Put examples of websites where you see ads, so we can test it.

1

u/Gangr3l 2d ago

Have you configured your Ublock from the settings to disable cookies?

9

u/SurKaffe 3d ago

Linux is not immune to cookie attacks. Educate yourself and use Firefox+Ublock. Even then its all about how you browse the internet.

3

u/MobileBid7641 2d ago

A cookie attack sounds delicious!

-1

u/Venylynn 1d ago

Firefox is considered less secure than something Chromium based

1

u/jr735 1d ago

By whom?

0

u/Venylynn 1d ago

The SecureBlue team who works with GrapheneOS to port a lot of their hardening features over to the Linux desktop

1

u/jr735 1d ago

None of that is actually tells me what makes firefox less secure than something chromium based.

I question the security of the entire chromium project, and all derivatives, because of the weakness of its ad blocking.

1

u/Venylynn 1d ago edited 1d ago

The last time I came across an ad was on a pretty niche website, and Firefox/uBO did not catch it either, and Lite's been more reliable in my experience than the "full" version. I know people say this a lot, so whenever I can I do cross-reference side-by-side and very frequently the stuff uBOL doesn't catch is ALSO not caught by the MV2/Firefox uBO, and it leaves me questioning "okay so what's actually the difference here that I need to be worried about?" Like I'm waiting for the moment that the doomerist panic is proven right, and it never comes.

I don't know, everything I read about it is these hyperspecific technicalities, but when I side-by-side the same website with uBO Lite on Chromium and uBO on Firefox the only difference is often that Lite isn't as strong at cleaning up the placeholder boxes where an ad once was, but the ads are still being blocked. Not for a lack of trying too, there's a "streaming" site I use where if I didn't have an ad blocker it'd be a giant mess of pop-ups, but Lite handles those exceptionally well, better than I expected it to actually. I'm FREQUENTLY impressed by how capable it is relative to the online reputation.

I don't know what kind of websites people are visiting that this isn't enough for when even in domains I would normally write off for being risky, Lite winds up blocking basically everything it needs to anyway? Is it just the Facebook stuff or something? I don't know. I wish I knew what the hell was causing this disconnect, because i'd like to at least understand why that narrative is still so pervasive.

2

u/jr735 1d ago

My concern is always that Google is there to protect their own interest.

1

u/Venylynn 1d ago edited 1d ago

And that's fair and understandable. I just don't think the CURRENT implementation is as poor as often spread online. Only time will tell. I'll jump ship if it gets bad, RAM usage and slowness be damned. Hopefully by then, the gap will have finally closed in speed/efficiency.

People mistake me thinking it's not that bad for me blindly being loyal... nah, i evaluate options constantly, i have choice paralysis for days, but the only choice that feels consistent for me is Trivalent for desktop and Vivaldi for mobile lately.

1

u/jr735 1d ago

It's hard to say. I'm still not convinced about security on chromium based browsers being better than that of firefox based ones. I always mistrust when browsers don't follow web standards closely, and chromium has that problem now as IE did before.

Vivaldi is absolutely a no go for me because it's proprietary.

1

u/Venylynn 1d ago edited 1d ago

to be fair, before i even read a LINE of that guide, I was already annoyed with Firefox/Gecko engine's (since this also happens on all the forks) issues on my machines.

I've always wondered this also: does open source even matter that much when the majority of people wouldn't know how to read source code especially a source code that gigantic?

→ More replies

1

u/SurKaffe 20h ago

Maybe. It really really depends on the person pressing links. Maybe its because Firefox actually allow you to use addons by your choice. And yes that would be an insecure option for the person who did not read the notes or educate themselves.

3

u/ih-shah-may-ehl 2d ago

Every system is susceptible to ransomware. It literally needs no more permissions than the ones you have. Every piece of data you can touch with write access can be encrypted.

On our production systems and fileservers we have Sentinel agents which recognize usage patterns and pull the emergency brake if they detect a ransomware attack in progress and quarantine the suspected computer / user account. Basically Sentinel is an Agent below the system API which acts as a gatekeeper to system access.

3

u/Technical_Rich_3080 2d ago

Putting aside that Linux can technically be attacked by ransomware, are there much actual reports in the wild where Linux systems were successfully attacked with ransomware?

5

u/kitsnet 2d ago

Yes. Synology NAS devices just recently, for example.

3

u/navr183 2d ago

Gets ransomed the same way other systems do. On personal devices its sketchy downloads, clickfix, phishing, etc. On servers its generally unpatched applications, zero days, or full blown breaches into lateral movement.

3

u/mrcaptncrunch 2d ago

Yes, it can. There’s currently an issue on Synology servers which is being exploited by ransomware.

How do you prevent it, same as other systems. Being careful about what one runs.

Having said that, no one and no system is infallible. Backups are important.

2

u/PagliacciTheBleak 2d ago

Encryption can sit at least at the physical/hardware level, the disk level, the filesystem level or the data level.

Businesses tend to use services such as immutable backups as a way back from ransomware.

3

u/TomDuhamel 2d ago

Why do you think LUKS could help? Does Bitlocker protect you from that on Windows?

Disc encryption prevents file access when the system is turned off. It cannot do anything for you when it's currently unlocked — when you are using the computer. If you run malware, it's unlocked at the time.

Linux is probably a little more secure than Windows, but it's not immune to malware of any kind.

5

u/mrcaptncrunch 2d ago

Why do you think LUKS could help?

Because people hear “this is encrypted, so it’s safe” all the time

So they hear ransomware attacks file. Luks encrypts files. I wonder if it helps… and then they post here, on the Linux4noobs subreddit… asking about it

1

u/AutoModerator 3d ago

There's a resources page in our wiki you might find useful!

Try this search for more information on this topic.

✻ Smokey says: take regular backups, try stuff in a VM, and understand every command before you press Enter! :)

Comments, questions or suggestions regarding this autoresponse? Please send them here.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

0

u/gainan 2d ago

Does Linux distros can get a ransomware attack and if they do how can I prevent it from happening?

yes: https://github.com/evilsocket/opensnitch/discussions/1290

  • keep your system up to date.
  • install software from the distro official repositories only.
  • if you install anything else - from github, pip, ruby gems, etc - run it under another user so your personal data is not compromised. Or/And run it under a container (firejail, flatpaks, bbwrap) or a VM.
  • restrict outbound connections by binary.