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?

    • stinerman@midwest.social
      link
      fedilink
      English
      arrow-up
      10
      ·
      5 days 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
        arrow-up
        2
        ·
        4 days 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@midwest.social
          link
          fedilink
          English
          arrow-up
          1
          ·
          4 days 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
      arrow-up
      9
      arrow-down
      1
      ·
      edit-2
      5 days 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
        arrow-up
        8
        ·
        5 days ago

        Depends of the hacker.

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