Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > Wine
Reload this Page Can Wine get viruses?
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Wine Discussion about Wine, the Open Source implementation of the Windows API on top of X and Unix.

Reply
 
Thread Tools Display Modes
Old 04-07-2008   #11 (permalink)
ozar
Super Moderator
 
Join Date: May 2004
Location: Arch Linux
Posts: 8,240
I'm not sure about this, but I have a strong feeling that maybe 75% (or more) new Linux users are routinely running as root user.

It's almost like a disease... the dreaded "root disease" I guess you could call it!
__________________
oz

New Users: * FAQ *

ozar is offline   Reply With Quote
Old 04-07-2008   #12 (permalink)
i92guboj
Linux Engineer
 
Join Date: Nov 2007
Location: Córdoba (Spain)
Posts: 886
It's not difficult to understand: The virus will run with the same priviledges of the user who's running wine.

So, basically, if you run wine as root, then the virus is running as root. If you run wine as a user, it will have the exact same permissions of that user. That means that it can infect all the programs that wine can see and write to, which usually are in $HOME/.wine/c_drive/.... But wine can also access all the stuff in $HOME/, and that means that it can completely wipe your docs, movies, porn, homework, family photo albums, etc etc.

That is why I usually recommend running wine as a separate user if you have valuable stuff in your $HOME and don't do backups. It's a very easy preventive meassure that can really save you some pain.

The fact that the files, are linux files, doesn't mean anything, because wine translates all the calls, including malicious ones.
i92guboj is offline   Reply With Quote
Old 04-07-2008   #13 (permalink)
ozar
Super Moderator
 
Join Date: May 2004
Location: Arch Linux
Posts: 8,240
Quote:
Originally Posted by i92guboj View Post
That is why I usually recommend running wine as a separate user if you have valuable stuff in your $HOME and don't do backups. It's a very easy preventive meassure that can really save you some pain.
I don't personally run wine at all, but that sounds like a great idea for those that do. It's easy, and makes good sense, to me.
__________________
oz

New Users: * FAQ *

ozar is offline   Reply With Quote
Old 04-07-2008   #14 (permalink)
i92guboj
Linux Engineer
 
Join Date: Nov 2007
Location: Córdoba (Spain)
Posts: 886
Quote:
Originally Posted by ozar View Post
I don't personally run wine at all, but that sounds like a great idea for those that do. It's easy, and makes good sense, to me.
Yes. If you don't want to be using su all the time, then setup sudo. In some distros you might need to manually set the $DISPLAY to run X programs as another user than the owner of the session. Of course, you can just start another session on another vt as well, if you preffer that.

As long as that user can't write on the home for your main user, you'll be safe from windows viruses even if they hit you.
i92guboj is offline   Reply With Quote
Old 04-07-2008   #15 (permalink)
valan
Linux Engineer
 
Join Date: Nov 2004
Posts: 785
What we need is a cross platform virus. One that's aware and keeps up to date on issues that are exploitable on both Windows and Linux, maybe even Mac while we're at it. Open source would be a requirement, so others could add exploits to make it more spreadable. Perhaps set it up on Sourceforge or something with cvs acccess...

Oh, wait. Run ClamAV or something, and limit your use of root. You might also change the name of root, many times something will look for the user root instead of UID 0, and if you change the name of UID 0 to something more fun then stuff gets confused. If you get a virus somehow or are cracked, then not having root might confuse the virus or cracker enough for them to leave you alone.

As far as Wine goes, there's sure to be viruses that don't to completely obscure low level Windows stuff that Wine CAN run, so watch out. And use ClamAV or some sort of protection.
valan is offline   Reply With Quote
Old 04-07-2008   #16 (permalink)
anomie
Linux Guru
 
anomie's Avatar
 
Join Date: Mar 2005
Location: Texas
Posts: 1,699
Quote:
Originally Posted by JTB7
Can Wine get a virus?
Yes. As mentioned in this thread, it's possible for an OS-level infection to cause your wine installation issues, or for malware to (potentially) arbitrarily run commands as the user wine is running under. This is a problem for any application not tightly constrained by MAC.

Another, perhaps more deadly problem, is an application-level infection. How about an IE exploit that somehow captures authentication credentials or performs cross-site scripting attacks? Well, guess what: the malware doesn't care if you're running Windows or running Windows under emulation.

As operating systems get more and more hardened (yes, even Windows), malware writers are attacking the application stack with more frequency.
__________________
FreeBSD Handbook & FAQ // CentOS wiki
anomie is offline   Reply With Quote
Old 04-09-2008   #17 (permalink)
JTB7
Just Joined!
 
JTB7's Avatar
 
Join Date: Jan 2008
Location: Finland
Posts: 11
Thanks for all the help. I thought wine was an emulator, so it couldn't get a virus, but I was guess not. Good thing I checked here first before running it.
JTB7 is offline   Reply With Quote
Old 04-09-2008   #18 (permalink)
techieMoe
Super Moderator
 
techieMoe's Avatar
 
Join Date: Aug 2004
Location: Texas
Posts: 8,501
Quote:
Originally Posted by JTB7 View Post
Thanks for all the help. I thought wine was an emulator, so it couldn't get a virus, but I was guess not. Good thing I checked here first before running it.
The name WINE actually means: "WINE Is Not an Emulator."
__________________
Registered Linux user #270181
TechieMoe's Tech Rants
techieMoe is offline   Reply With Quote
Old 04-09-2008   #19 (permalink)
i92guboj
Linux Engineer
 
Join Date: Nov 2007
Location: Córdoba (Spain)
Posts: 886
Yep. You can think of it more like a translator. It just translates standard windows and directx api calls into linux/X stuff. In *some sense*, windows applications runs natively unders linux using wine

Wine is not a traditional emulator. Most emulators run into a confined jail, sandbox or environment, and from within them, you can't reach the host OS. But wine can, and that is what makes it both powerful and potentially dangerous sometimes.

However, most viruses will relly on peculiarities that are only present on true windows systems, and so, they might not work under wine. But that's just an assumption, and a virus that's designed on a clean and smart way will work without a problem.

Anyway, unless you use potentially dangerous software with wine (IE, or any other thing that connects to the net), you shouldn't need to worry.
i92guboj is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT. The time now is 11:44 PM.

Powered by vBulletin 3.6.8 ©2000 - 2007, content relevant URLs by vBSEO, Property of Core Root.

Content Relevant URLs by vBSEO 3.0.0