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???

    • hirihit640@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      4
      ·
      8 hours ago

      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.

      • nyan@sh.itjust.works
        link
        fedilink
        arrow-up
        2
        ·
        4 hours ago

        Depends on your VM. qemu, by default, isolates each VM on a subnet. It’s a PITA when you actually need the VM to be able to see the LAN.

    • MonkderVierte@lemmy.zip
      link
      fedilink
      arrow-up
      1
      ·
      8 hours ago

      Rather, malware detect the vm, assume a security lab testing environment and hold still. Don’t take that stuff outside.