Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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?

share|improve this question
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
add comment

5 Answers 5

up vote 25 down vote accepted

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.

share|improve this answer
add comment

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.

share|improve this answer
add comment

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.

share|improve this answer
add comment

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

share|improve this answer
    
That 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 2 '12 at 20:34
add comment

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.