What if I run a virus/trojan Windows EXE on Ubuntu with Wine?

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.


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.


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.


It is not so much viruses but rootkits that are dangerous to Linux. Just be careful with root access, sudo and su commands.