LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 08-17-2011, 01:44 AM   #1
qrange
Senior Member
 
Registered: Jul 2006
Location: Belgrade, Yugoslavia
Distribution: Debian stable/testing, amd64
Posts: 1,061

Rep: Reputation: 47
wine virus


(I know this has been discussed several years ago, but viruses have 'evolved' and became complex beasts.)

It seems that I have accidentally run an infected file with Wine. Would simply deleting .wine be enough to get rid of it?
(using Debian64)


thanks.
 
Old 08-17-2011, 03:58 AM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Did you have /home or even your root filesystem setup as a virtual drive under WINE? I believe the default will have at least /home shared as the Z drive.

If so, there is a possibility that files within the Linux filesystem have been compromised. Not to say that this infection would actually have any effect under Linux, but storing and sharing these suspect files is a problem as they might one day come into contact with a Windows system (or perhaps be accessed via WINE).

At the very least, I would run /home through an AV scanner that is designed to pick up Windows viruses, like ClamAV.
 
1 members found this post helpful.
Old 08-17-2011, 05:40 AM   #3
qrange
Senior Member
 
Registered: Jul 2006
Location: Belgrade, Yugoslavia
Distribution: Debian stable/testing, amd64
Posts: 1,061

Original Poster
Rep: Reputation: 47
oh, well unfortunately, root was mounted as Z:
I'll try the ClamAV, thanks.

btw, I noticed winecfg reports this error:
err:menubuilder:WinMain unknown option -a
err:menubuilder:WinMain unknown option -r

Last edited by qrange; 08-17-2011 at 05:42 AM.
 
Old 08-21-2011, 03:57 PM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940
I prefer to call them "rogue software." It's simply code that executed that you did not know was executing, and did not intend to execute. They are neither "biological" nor "all-powerful" nor in any way "inevitable." (They're just "opportunistic" and "nasty.")

The most likely change that rogues make is to the registry ... which in the case of Wine is simply a file. I presume that you have very regular backups ... ... and therefore that restoring the file is a trivial matter, yes?

Beyond that, rogues in a Wine environment are limited in that they cannot actually usurp administrative-level control of anything. They are also most-often limited in that they usually don't try to alter the file-level protections of anything they touch. Since literally millions of Windows machines are out there on the Internet with the system's entire protection mechanisms turned off ... ... rogues are usually very lazy indeed.
 
Old 08-22-2011, 01:40 AM   #5
qrange
Senior Member
 
Registered: Jul 2006
Location: Belgrade, Yugoslavia
Distribution: Debian stable/testing, amd64
Posts: 1,061

Original Poster
Rep: Reputation: 47
well, they are all 'computer viruses' to me. and they were called so since '70.
besides, there are a lot of analogies with biological viruses.

backups are not so important here. most viruses don't destroy data nowadays. I am more worried about it getting bank logins and similar.

what I would like to know for sure, is whether root is 'infected', requiring complete reinstall.
 
Old 08-22-2011, 09:40 AM   #6
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Quote:
Originally Posted by sundialsvcs View Post
I prefer to call them "rogue software." It's simply code that executed that you did not know was executing, and did not intend to execute. They are neither "biological" nor "all-powerful" nor in any way "inevitable." (They're just "opportunistic" and "nasty.")
A virus is a very specific type of computer malware, and is called that because it is self-replicating; it infects files on the computer and uses the transport of those files to other systems as a way to spread itself. It spreads just like a biological virus would in a community.

There are other types of malicious software on the other hand that don't usually doesn't have any replication capability or intent to spread. They get installed on the local machine and are only concerned with causing as much trouble as possible. Things like spyware and rootkits usually don't have a replication function, and rely on simply installing it on as many target machines via the Internet.

In fact, it might even be fair to say that the proliferation of high-speed, constant-on, Internet connections have all but antiquated the need for malicious code to actually replicate and spread itself; it's arguably more effective to high-jack a website and use that to silently install your code. Certainly the number of legitimate viruses have been on the decline, with the majority of infections now best classified as trojans.

At any rate, a "computer virus" is very much a real thing and is named that way specifically because of it's similarities to biological viruses. You are surely free to call them whatever you like, but that doesn't change the fact that they have a proper and accurate name.

But perhaps you have (inadvertently) brought up a good point. Does the OP know what the Wine installation became infected with? That could help determine if there was any risk of subsequent files being infected and the possibility of spreading.
 
Old 08-22-2011, 01:17 PM   #7
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
You should never run wine as root. I believe there is a warning when you run it as root.

ClamAV is good against viruses. The worst thing it could have done is install a rootkit. For that try rkhunter and chkrootkit.
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can wine get a virus? Cultist Linux - Software 2 12-30-2010 03:20 PM
Would a Windows virus executed in Wine compromise the whole Linux system? Kenny_Strawn Linux - Security 3 12-22-2010 01:25 PM
MS virus and Wine anticuchos Linux - Security 6 10-03-2005 07:54 AM
wine + virus dwig365 Linux - Software 5 08-16-2004 02:40 PM
Boot virus or Anti-Virus? AVG Free Anti-Virus Software problems SparceMatrix Linux - Security 9 08-02-2004 02:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 02:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration