LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-06-2011, 12:31 AM   #1
dyess002
LQ Newbie
 
Registered: Jan 2010
Posts: 5

Rep: Reputation: 0
Angry I think I have a virus in Ubuntu


I keep getting returned messages that I know I didn't send. I am using Ubuntu 11.04 64 bit 6 gig of RAM. How could I find out what is sending these emails.
And does a virus program like Avast or Clam only check for viruses in files from Windows or can it check for viruses from a different file layout like Linux? I often have wondered about that.

Thanks for any help.
 
Old 09-06-2011, 12:56 AM   #2
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,671
Blog Entries: 4

Rep: Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945
It is almost certainly the case that someone else, somewhere in the world, is sending out (spam...) emails with your return-address on them. And unfortunately there's nothing you can do about it, because the e-mail handling system of the Internet was never built with security and accountability in mind. I can send an e-mail to you "from god@heaven.com," and it will go through. If it bounces, God gets the grief. (Hey, the Devil made me do it ...)
 
Old 09-06-2011, 01:47 AM   #3
dyess002
LQ Newbie
 
Registered: Jan 2010
Posts: 5

Original Poster
Rep: Reputation: 0
So you don't think I have a virus on this box? I have always believed that Ubuntu doesn't get viruses but this incident got me to wondering about that.

About the virus scanning question would a virus pattern on a Windows box be the same as on a Linux box? In other words would it see a virus on Linux and be accurate?
Thanks for the respond.
 
Old 09-06-2011, 03:59 AM   #4
0men
Member
 
Registered: Mar 2011
Location: Brisbane
Distribution: Windows 10, Red Hat, Debian
Posts: 183

Rep: Reputation: 22
You rarely see Linux virus' although they do exist. Even if you do manage to get one, they dont seem to cause mass destruction like on a Windows Box. I agree 100% with sundialsvcs, that someone is spamming your email with your return address on them. One measure to calm your nerves about it not being a rootkit or virus, maybe fire up Wireshark and see if any stray or weird packets are sent out. Virus's and rootkits normally sent out stray packets to a control server somewhere. However even then, if well designed, would be silent.

I wish you all the best, but i doubt you've got a virus.

Kind Regards

Last edited by 0men; 09-06-2011 at 04:00 AM.
 
Old 09-06-2011, 06:15 AM   #5
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
Look at the FULL headers for one or more of those emails. You will probably find yourself listed at the very bottom with the actual spammer listed above you. It is unfortunate, but a common tactic to spoof the header with an innocent party in the spam attempt. This causes a double-whammy in the email system in that extra traffic is generated and hassle is created for someone else.

Especially if it is a service like a hotmail, gmail, or yahoo, that is in question, at a minimum I would change your password(s), just as a precaution.

For you edification, you might also want to post the header and email through spamcop and get the technical report about the spam. It will probably provide a lot of information regarding the spammer's relay chain. If you do desire or need to take action, this could be valuable information for your case.
 
Old 09-07-2011, 12:51 PM   #6
enyawix
Member
 
Registered: Sep 2003
Location: ky
Distribution: gentoo
Posts: 409

Rep: Reputation: 32
The first thing I would do is mount /home noexec,nodev. Also make sure your browser is set to cache in your home directory. Clear your cache if it is not and change the cache setting.

If you did not make a partishion for /home during install you can use cat to join large files together. Format and loop mount the file noexec,nodev. Move your files from /home to the new partition, than mount the new partition as /home noexec,nodev.

This will in theory kill many Linux virus.

Last edited by enyawix; 09-11-2011 at 07:21 PM. Reason: my post was changed
 
0 members found this post helpful.
Old 09-07-2011, 01:11 PM   #7
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by enyawix View Post
This will in theory kill many Linux virus.
Uhhh. I think you should read about UNIX architecture like separation of privileges and stuff before you post things like that.
 
1 members found this post helpful.
Old 09-07-2011, 01:56 PM   #8
SL00b
Member
 
Registered: Feb 2011
Location: LA, US
Distribution: SLES
Posts: 375

Rep: Reputation: 112Reputation: 112
Quote:
Originally Posted by dyess002 View Post
I keep getting returned messages that I know I didn't send. I am using Ubuntu 11.04 64 bit 6 gig of RAM. How could I find out what is sending these emails.
One possibility that nobody has mentioned yet is that you're running an unsecured mail daemon, and someone is using you as a spam relay. I actually saw this done to a mainframe once.

Quote:
Originally Posted by dyess002 View Post
And does a virus program like Avast or Clam only check for viruses in files from Windows or can it check for viruses from a different file layout like Linux? I often have wondered about that.
They'll check for any known virus signatures, no matter the file type.
 
Old 09-07-2011, 02:20 PM   #9
enyawix
Member
 
Registered: Sep 2003
Location: ky
Distribution: gentoo
Posts: 409

Rep: Reputation: 32
I welcome peer review.

Quote:
Originally Posted by unSpawn View Post
Uhhh. I think you should read about UNIX architecture like separation of privileges and stuff before you post things like that.
I have been using Linux and contributing 1995. There is no real reason for code to be executed in /home

My systems have been setup as indicated above since 1999 with few very minor changes to programs. I welcome peer review and willing to demonstrate function.
 
Old 09-10-2011, 08:06 AM   #10
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
Originally Posted by enyawix
I have been using Linux and contributing 1995. There is no real reason for code to be executed in /home
Actually if you're running a true multi-user environment, there is every reason to allow code to be executed in /home, it is MUCH more secure. Heck, even on my single user systems, I don't see any reason to ban executables from /home, provided the permissions are proper and there isn't something dumb like blanket sudo privileges with no password.
 
Old 09-11-2011, 01:45 PM   #11
dyess002
LQ Newbie
 
Registered: Jan 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for the help guys.
So far here is what's going on with this.
I turned the source of the email into Spamcop and after the second day so far I haven't gotten anymore.
I don't know if it is that this Spam Cop really worked or they will start back again.
Thanks for the help.
 
Old 09-11-2011, 03:34 PM   #12
enyawix
Member
 
Registered: Sep 2003
Location: ky
Distribution: gentoo
Posts: 409

Rep: Reputation: 32
Quote:
Originally Posted by Hangdog42 View Post
Actually if you're running a true multi-user environment, there is every reason to allow code to be executed in /home, it is MUCH more secure. Heck, even on my single user systems, I don't see any reason to ban executables from /home, provided the permissions are proper and there isn't something dumb like blanket sudo privileges with no password.

The reason for not allowing code to run in /home is to limit damage from downloads when the linux virus becomes more common. I find a large number of windows virus in the equivalent of /home. Applying selinux to limit what apps can do. I expect the Linux virus to some day become more common.
 
Old 09-11-2011, 04:31 PM   #13
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
When you do programming projects, not being able to execute anything in /home makes it impossible to work. Also, what if you want to run a downloaded script, or have a directory under /home in your PATH so that you can run commands without installing them?

Last edited by MTK358; 09-11-2011 at 04:32 PM.
 
Old 09-11-2011, 05:47 PM   #14
enyawix
Member
 
Registered: Sep 2003
Location: ky
Distribution: gentoo
Posts: 409

Rep: Reputation: 32
Quote:
Originally Posted by MTK358 View Post
When you do programming projects, not being able to execute anything in /home makes it impossible to work. Also, what if you want to run a downloaded script, or have a directory under /home in your PATH so that you can run commands without installing them?
I do programming projects in Virtualbox. I also test scripts in VM before I allow them on real computers. MY only project not in Virtualbox are my GNS3 cisco router projects. They are on a dedicated computer.
 
Old 09-11-2011, 06:51 PM   #15
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 1,943

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
Quote:
use cat to join large males together
WTF does that mean?
 
  


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
What is inside your computer? Ubuntu or Virus. R.T.Sakthidaran LinuxQuestions.org Member Intro 2 01-06-2010 09:00 PM
Do I need a firewall and virus protection for Ubuntu? adhinsley Linux - Newbie 31 10-13-2009 10:56 AM
AVG anti-virus on Ubuntu 8 mihouser Linux - Newbie 3 04-29-2009 03:23 PM
Using Ubuntu, how likely can I get a virus..... if I try to get one. Chronothread Linux - Security 8 04-08-2009 04:32 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 01:43 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