linux isnt immune to viruses even though its not as bad as windows

what should i do to be safe if i have a safe browser, vm, but pirate and download risky things? i know its a vm but i still dont want to have to delete everything in the vm if something happens. also the malware doesnt go to the router and spread rigt????

top 50 comments

sorted by: hot top controversial new old
[–] 85 points 3 days ago (4 children)

don't get software from random sites and use your package manager with distro provided repo only

  • source
  • hideshow 4 child comments
  • [–] 5 points 2 days ago (3 children)

    And if you need an app from a third party repo, pick one that includes at least rudimentary sand boxing such as flatpak/flathub

  • source
  • parent
  • hideshow 3 child comments
  • [–] 7 points 2 days ago (1 child)

    Honestly the biggest things are don't run shit as root and don't expose port 22. Especially don't run things you downloaded from some website as root but in general just don't run things as root. That'll handle most problems that are likely to arise.

  • source
  • hideshow 1 child comment
  • [–] 10 points 2 days ago (2 children)

    compartmentalization

    top reasons why GrapheneOS is highly praised: ability to create different profiles with different encryption keys, and hardened codes.

    on Linux, the top choice is QuebeOS. But i tried it 4 times and still couldnt go with it. My laptop couldnt handle quebeos...

    The other choice is SecureBlue. I heard that is called the Graphene of Linux. They have hardened codes, secure browser and very strict secure defaults. The downside? You need to be able to use distrobox, flatpak, rpm-ostree, brew to maintain your apps. So in a way, it is the same compartmentalization, but a bit messy.

    If u cant deal with these 2, then maybe use TailOS to do your download. Not sure if it saves the data?

    Using VM is also great. But i think a "super VM" is the only answer and that is QuebeOS. You can literally control everything inside each VM.

  • source
  • hideshow 2 child comments
  • [–] 16 points 2 days ago (8 children)

    Take regular VM snapshots and never forget that exploits can breach the VM

  • source
  • hideshow 8 child comments
  • [–] 7 points 2 days ago* (3 children)

    very rare for exploits that can breach a VM. Like once-every-10-years kind of rare.

    One important thing to be aware of. By default your VM will have access to the same network resources as the host. So, say, if you use tailscale or some other secure VPN to protect your NAS, but you give your host access, the VM will be able to access it too! You can use firewall rules or bridge networking to fix this, but tbh it isn't trivial.

  • source
  • parent
  • hideshow 3 child comments
  • load more comments (3 replies)
  • load more comments (1 reply)
    [–] 16 points 2 days ago (7 children)

    Pick a piracy site you can trust. It makes things easier.

  • source
  • hideshow 7 child comments
  • [–] 4 points 2 days ago
    [–] 11 points 3 days ago (1 child)

    Malware could go to the router and spread absolutely. However other devices firewalls should be pretty good at stopping that. Also I dont know how common that is for malware tbh

  • source
  • hideshow 1 child comment
  • [–] 2 points 2 days ago (4 children)

    You could make backups and practice restoring from them so you can not lose everything when you screw up.

    You could learn not to screw up, which would go hand in hand with the above.

    You could switch to a mac and enable all the security and privacy stuff in macos (there’s quite a bit, it’s well documented and very extensive!).

    You could stop downloading from public sites and trackers and instead get on private trackers and use them exclusively.

  • source
  • hideshow 4 child comments
  • [–] [S] 3 points 2 days ago (3 children)

    1 does it take a lot of space usually?

    2 how to do screw up (you need to screw up to learn how not to) and not get screwed with the consequences

    3 thx

  • source
  • parent
  • hideshow 3 child comments
  • [–] 4 points 2 days ago

    It either takes up a lot of space or it doesn’t. I don’t know how much you’re backing up or how much space is a lot to you.

    You can’t screw up and learn without the consequences. That’s how you learn. Without the consequences you don’t take things seriously. Backups will help you to recover when you do screw up.

  • source
  • parent
  • [–] 2 points 2 days ago (1 child)

    1 - there's 2 things to consider here... A) Your files (documents, photos, etc) B) Everything else (the Windows / Linux mac operating system, applications, your screensaver, printer defaults, etc)

    You only need to backup A.

    It's up to you if you want / have space for B

    But, 1st time, backup everything. Then do item 2 (screw up) big time and do a full restore.

    Once you've done that, you're set for life

  • source
  • parent
  • hideshow 1 child comment
  • [–] 2 points 2 days ago (5 children)

    Idk what software you're using, but most VM software has an easy way to take a snapshot of the VM state. If you're about to download something risky, take a quick VM snapshot, so if it ends up being some kind of malware, you can just roll the VM back to its earlier state without issue, takes like 2 minutes.

    If you're worried about malware spreading through your network, you need to isolate your devices. The most common way to do this is with VLANs, but I don't know what your home network looks like, and if you just have a typical home setup with your ISP's modem/router and all your devices plugged into it or on the default wireless network, you won't be able to do that.

    You could also use something like UFW on Linux to only allow internet traffic and block any traffic inbound or outbound to your LAN network, isolating your PC from all other devices on your LAN. This isn't great, because if your host is compromised, then your host-based firewall could also be compromised and the malware could then get out to the rest of your network.

    You could invert this and have all your other devices on LAN set to block all traffic from your specific PC, which would be more secure, but also a pain to configure, plus it assumes all the other devices are able to be configured in that way on your LAN.

    There are a bunch of other solutions, but it depends on your setup, your technical skill level, and your threat profile. If you're just torrenting cracked games and random software, that's somewhat risky, but not really that crazy if you are running it in a VM with rollback snapshots.

  • source
  • hideshow 5 child comments
  • load more comments (5 replies)
    [–] 7 points 3 days ago (4 children)

    I have always kept everything airgapped, the best security is isolation.

    I download stuff to a tablet, with nothing of value or interest on it, dump it to the sd card, then move it to the offline systems with a USB card reader.

    Even my servers (mostly ARM SBCs with one RISC-V) were set up to work over a wired offline network.

    Also most of my pirated stuff is things I own that I yarred for the crack if it was more convenient than cracking it myself.

  • source
  • hideshow 4 child comments
  • [–] 8 points 2 days ago (3 children)

    Not gonna lie, that sounds like overkill unless you’re doing something massively illegal. Your system makes no sense for preventing detection of torrent downloading since the download to the tablet could be detected just like the download to a server, and any precaution to avoid torrent surveillance on the tablet could easily be done on the server itself.

    So…are you doing something massively illegal? Take a seat…

    Chris Hansen looking like he knows what you did

  • source
  • parent
  • hideshow 3 child comments
  • [–] 1 point 1 day ago (2 children)

    I have nothing to hide, but I also have nothing I want them to see.

    Given the coice between paranoid and lazy more need to choose the former.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 1 day ago (1 child)

    What they could see is the transmission over the internet to the tablet. If they detect torrent activity to the tablet, it wouldn’t take a rocket scientist to figure out where the files went, and it wouldn’t even matter because the crime is in the transmission. They wouldn’t even have to raid your house or anything, they would just sue you and show IP logs.

  • source
  • parent
  • hideshow 1 child comment
  • load more comments
    view more: next ›