Community

Ask!

Developer

Design

Discourse

Hardware

Shop

More

Ubuntu

sign up

Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

log in

Take the tour

What if I run a virus/trojan Windows EXE on Ubuntu with Wine?
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?
security

windows

wine

viruses

asked Oct 1 '10 at 20:16
Ivan
6 ,5 8 4

21

70

143

5

This is almost a complete duplicate of this question of the Unix and Linux stackexchange site. Some good answers
there. unix.stackexchange.com/questions/1729/… – frabjous Oct 1 '10 at 21:12

2

See also: Risks/Disadvantages associated with Wine – Lekensteyn Aug 18 '11 at 21:07

4 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.
edited Mar 5 '12 at 5:22

answered Oct 2 '10 at 12:59
Scott Ritchie
2 ,9 7 3

9

21

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.
edited Mar 2 '12 at 18:27

answered Oct 1 '10 at 21:10
Broam
899

4

13

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.
answered May 14 '11 at 10:53
bob
51

1

1

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

tour

help

×

Just be careful with root access. it'd be hard to argue to those people that they aren't really endangered. – Chan-Ho Suh Mar 2 '12 at 20:34 . because the virus wasn't able to run as root. answered Feb 24 '11 at 20:51 user11353 That might be true when Linux was almost exclusively in the domain of servers and enterprise machines. sudo and su commands...It is not so much viruses but rootkits that are dangerous to Linux. but nowadays a lot of people use it as a desktop OS. even after losing all their personal info.