Say, you downloaded a pirated game that happened to be malicious, and you run it on linux using compatibility layers like WINE/Proton, does your linux installation get infected?

  • cloudless
    link
    fedilink
    English
    713 hours ago

    Can the malware somehow target the hosting Linux via wine?

    • stinerman
      link
      fedilink
      English
      611 hours ago

      Yes. There’s no sandboxing in Wine/Proton. It’s just another application running with the privileges of the user running it. So it can do anything any other process could do with that user’s credentials. This is one reason why Wine recommends that you never run it as root.

      • @moody@lemmings.world
        link
        fedilink
        19 hours ago

        There’s still a layer of abstraction there. Since it requires Wine to run, it wouldn’t be able to run itself in the future unless it’s aware that it’s being run in Wine. Then it would need to set up a way to launch itself via Wine.

        • stinerman
          link
          fedilink
          English
          18 hours ago

          How the application is started is a separate question. I don’t know enough about Wine to know if it would install a Windows Service as a user service in systemd or init.d or something like that. But if the app is started it can do anything it wants subject to that user’s permissions.

    • @danekrae@lemmy.world
      link
      fedilink
      8
      edit-2
      13 hours ago

      I would guess that if it could, nobody would program it.

      The chances of the scenario is too low. Hacking is a numbers game.

      • @Tetsuo@jlai.lu
        link
        fedilink
        812 hours ago

        Depends of the hacker.

        I suppose some government blackhat could do such thing for a very targeted hack. Still unlikely though.