r/LinuxCrackSupport • • 5d ago

QUESTION - ALL LINUX SYSTEMS [Any game] Safety of potentially infected exe files on linux?

Lets say you've downloaded a video game with some sort of malware or trojan etc. but it was design to work on windows and your game works inside a prefix via proton. What is the danger if any on linux in such cases?

7 Upvotes

12 comments sorted by

11

u/Makenshi2k 5d ago

It can still steal your data and credentials, as your home partition and others might be available as the Z: drive in wine. Malware that depends on Windows kernel exploits will not work and it also will fail to persist itself most of the time.

So its still by no means safe. Only run games from trusted sources. If want to be sure, then don't map the Z: drive to your home directory, use something like flatpak, bubblewrap, or firejail. Never run wine with root privileges.

2

u/Ok-Worry460 3d ago

How to do these 2 last things ?

FireJail and non root wine ?

Or is it even butter to have a second user with restricted access ?

2

u/Makenshi2k 3d ago

You can find a good description of firejail here: https://secure-os.org/articles/firejail/

Regarding non root: Don't start games with e.g. sudo or from a root shell. Especially not if any release demands that.

1

u/Ok-Worry460 3d ago

I do mostly use heroic or faugaus launcher (sys pacakge nort the flatpak version)

4

u/Symantech 5d ago

Aside from sniffing/writing to your files and sending something to internet while it's running, nothing else can happen.

Running an exe through flatpak + bottles is the easiest way to restrict file access however you want (use Flatseal for permission control).

1

u/Ok-Worry460 3d ago

Does launchers like faugaus and heroic do the same thing? Or bottles is much better ?

2

u/Symantech 3d ago

The isolation works with all Flatpak apps, just make sure to set folder permissions in flatseal.

If they're not flatpak apps, they'll have your user's permissions, meaning writing to your home directory and reading what's allowed without root.

There are ways to sandbox regular apps too, but I just didn't bother because it's more complicated for GUI apps.

1

u/Ok-Worry460 3d ago

Do do use the system package of these launcher since they better

But for these malware concerns I'll either use bottles or use that firejail thing

Do you have any idea what I should start with ? How do I discuss this with AI

2

u/Symantech 3d ago

Here's a quick guide for flathub setup https://flathub.org/en-GB/setup

Then you'll be able to install bottles and flatseal in the software app. Maybe you already can, depends on the distro.

1

u/Ok-Worry460 3d ago

I do already have bottles + flatseal It's just I do find fauagaus much lightweight and minimal, but does this means it doesn't offer same level of isolation as flatpak

1

u/Ok-Worry460 3d ago

Check this post too here

0

u/Pristine-Conflict675 4d ago

It can affect your system as wine is not a sandbox environment, i have already tested it where i ran a Sliver C2 beacon compiled as P32+ executable and ran it using wine, i was able to do prretty much anything reading/writing files etc the only roadblock might be persistence via process injection it is not that hard though