I've got a file said to contain information I was looking for. Unfortunately it is an executable instead of DOC (as it was meant to be) and the site I've download it from looks suspicious for me. If I was not using Linux, I'd run it on a VM or a separate PC. But running Linux, do I need to worry, or can I just run it with Wine? Can Wine system be infected?
-
5This is almost a complete duplicate of this question of the Unix and Linux stackexchange site. Some good answers there. http://unix.stackexchange.com/questions/1729/does-installing-and-using-wine-open-up-your-linux-platform-to-windows-virus – frabjous Oct 01 '10 at 21:12
-
2See also: Risks/Disadvantages associated with Wine – Lekensteyn Aug 18 '11 at 21:07
5 Answers
The news is only slightly better than it is on Windows. If you run the executable, it can do anything an executable can, up to and including getting whatever data is in your home folder.
The good news is that most Windows viruses aren't (yet) written in a way to work well on Wine. In some cases you can delete the wine folder and be otherwise unaffected.
The bad news is that a wine executable is an executable in the full Linux sense -- there's nothing stopping it from doing anything a malicious shell script might, including escaping the .wine folder.
Wine has a wiki page on securing Wine here: http://wiki.winehq.org/SecuringWine -- partial measures you can take include things like scanning a file with ClamAV before running it.

- 4,311
There was an ancient article about this 5 years ago. Short version: Almost all Windows viruses aren't written to run well on Wine. Maybe Wine has gotten better, but it's not the sort of compatibility that Wine is looking to offer.
There are a couple viruses that infect both Windows & Linux but they're very very rare and didn't spread all that well.

- 1,161
simple way to "secure" wine is in winecfg tell all the desktop integration folders to point to your .wine folder and remove drives other than the drive_c inside the .wine folder.

- 61
It is not so much viruses but rootkits that are dangerous to Linux. Just be careful with root access, sudo and su commands.
-
2That might be true when Linux was almost exclusively in the domain of servers and enterprise machines, but nowadays a lot of people use it as a desktop OS... it'd be hard to argue to those people that they aren't really endangered, even after losing all their personal info, because the virus wasn't able to run as root. – Chan-Ho Suh Mar 02 '12 at 20:34
Maybe you could try a virtual machine like Virtual Box or QEMU or some kind of sandbox to run programs you are not sure they are not infected.