LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-24-2014, 02:19 AM   #1
Winanjaya
Member
 
Registered: Sep 2003
Posts: 239

Rep: Reputation: 32
Malware


Dear All,

I suspect my LAN infected by Malware, because our IP was black listed, I am running CentOS 6.5 x64 running as gateway, is there any tools that can help me to determine the problem?

Need advise

Thanks
 
Old 06-24-2014, 03:07 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,350

Rep: Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331
I might be tempted to install a firewall _going_out_ and log what's blocked. Allow ports 25, 110, 80(for smtp, pop, and http), and any others you know should be there. Look for strange ports. Log everything and read what's going out.

That being said, I believe clamav is the program to reach for.
 
Old 06-24-2014, 03:12 AM   #3
Winanjaya
Member
 
Registered: Sep 2003
Posts: 239

Original Poster
Rep: Reputation: 32
Hello,
I am running iptables-1.4.7-11.el6.x86_64
is it possible to log the smtp, pop3, http on it?

clamav?.. do you meant to install clamav on linux gateway?
 
Old 06-24-2014, 08:49 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,350

Rep: Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331
Yes, yes, all these things are possible. But you are the sysadmin, and know what you have got. You can set logging levels - you may have to restart daemons with -l or something, but it's all doable.
 
Old 06-24-2014, 09:03 AM   #5
Winanjaya
Member
 
Registered: Sep 2003
Posts: 239

Original Poster
Rep: Reputation: 32
need your advise, according to my iptables forward config:.. did I miss something?

-A FORWARD -m string -j DROP --string "web-messenger" --algo bm --to 65535
-A FORWARD -m string -j DROP --string "webmessenger" --algo bm --to 65535
-A FORWARD -m string -j DROP --string "buddy" --algo bm --to 65535
-A FORWARD -m string -j DROP --string "meebo" --algo bm --to 65535
-A FORWARD -m string -j DROP --string "messenger" --algo bm --to 65535
-A FORWARD -m string -j DROP --string "YMSG" --algo bm --to 65535
-A FORWARD -m string -j DROP --string "hi5" --algo bm --to 65535
-A FORWARD -m string -j DROP --string "facebook" --algo bm --to 65535
-A FORWARD -m string -j DROP --string "twitter" --algo bm --to 65535
-A FORWARD -m string -j DROP --string "instagram" --algo bm --to 65535

-A FORWARD -p tcp -m tcp -m state -s 10.100.100.0/24 -d 10.100.100.6/32 --dport 25 --state NEW -j ACCEPT
-A FORWARD -p tcp -m tcp -m state -s 10.100.100.0/24 -d 10.100.100.6/32 --dport 587 --state NEW -j ACCEPT
-A FORWARD -p tcp -m tcp -m state -s 10.100.100.0/24 -d 10.100.100.6/32 --dport 110 --state NEW -j ACCEPT

-A FORWARD -j REJECT
 
Old 06-24-2014, 10:04 AM   #6
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by Winanjaya View Post
our IP was black listed
That's pretty vague. Blacklisted where exactly?
 
Old 06-24-2014, 10:08 AM   #7
Winanjaya
Member
 
Registered: Sep 2003
Posts: 239

Original Poster
Rep: Reputation: 32
MAILSPIKE BL and MAILSPIKE Z

any comment or idea?

thanks
 
Old 06-24-2014, 01:53 PM   #8
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by Winanjaya
any comment or idea?
Just a couple...

Static or dynamic IP?
What does the blacklist entry say?
Is it identified as a netblock that possibly includes other ranges typically assigned to "home use" computers?
Are there any Windows hosts behind this LAN?
What do the logs on the gateway host suggest is going on?
 
Old 06-24-2014, 06:33 PM   #9
Winanjaya
Member
 
Registered: Sep 2003
Posts: 239

Original Poster
Rep: Reputation: 32
static IP
malware
not yet identified
yes there are windows in the LAN
I dont know the what log should I check and how to turn on the related log for investigating this..

thank you
 
Old 06-25-2014, 03:15 AM   #10
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,350

Rep: Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331
You are the sysadmin.
If I applied for the job of sysadmin in this country, I wouldn't even get an interview. My CV wold go straight in the bin; and you want advice from me??

My advice is: Do your job. Log everything in and out and read those logs to find out what's going on. Make sensible decisions and implement them. Search every PC on your network for malware with the best tools you can get. Don't think you can solve this with a point and click. Sysadmins do have to work.
 
2 members found this post helpful.
Old 06-25-2014, 03:53 AM   #11
devdol
Member
 
Registered: Dec 2005
Distribution: debian (testing/unstable)
Posts: 68

Rep: Reputation: 17
You could watch network traffic broken down by endpoints and sorted by data volume using the iptraf utility, which is quite intuively to work with.
 
Old 06-25-2014, 06:41 AM   #12
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by Winanjaya View Post
yes there are windows in the LAN
Scan them all with say, MalwareBytes
 
Old 06-25-2014, 08:32 AM   #13
Winanjaya
Member
 
Registered: Sep 2003
Posts: 239

Original Poster
Rep: Reputation: 32
Thanks a lot to everyone here for the idea, sharing and comment.. make this forum is very useful to share the idea and or problem..especially for newbie to get know how .. etc

to. business_kid.. this is a free public forum and that's why everyone here could ask some idea or at least share the experience or something... you need something like commercial forum, I think you should send private message to someone looks facing un-solve problem and ask them if they need to resolve their problem soon then you offer your technical service to help them.. hopefully your CV will not go in bin again... skill + attitude is a combination that can help you to get a job, the rest you give it to God.. good luck

Last edited by Winanjaya; 06-25-2014 at 08:33 AM.
 
Old 06-25-2014, 12:53 PM   #14
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by Winanjaya
especially for newbie
You are not a "newbie" if you run such a site as http://www.calistasoft.com/
that states "We provide setup and configuring routing and security for internet, intranet and extra-networking solutions for your company."

wrt:
Quote:
Originally Posted by Winanjaya
to. business_kid.. this is a free public forum and that's why everyone here could ask some idea or at least share the experience or something
I find that I don't have to respond to every post that irritates me personally. Sometimes, you just have to exercise some discretion and ignore replies you don't like, especially on a public forum where people volunteer their time and expertise. And at least express some gratitude for any feedback.

Your claim vs.
Quote:
Originally Posted by business_kid
Do your job
Good Luck with that.

Last edited by Habitual; 06-25-2014 at 01:01 PM.
 
1 members found this post helpful.
Old 06-25-2014, 05:51 PM   #15
Winanjaya
Member
 
Registered: Sep 2003
Posts: 239

Original Poster
Rep: Reputation: 32
Thanks a lot Habitual!..
And you are right that I am not newbie in Linux.. again I just want to get know how other people dealing with this and also get little bit discussion about this..

Well my thought to know what other people do if they face this problem also useful


Have a nice day ahead to everyone!
 
1 members found this post helpful.
  


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
Malware? kcredden Linux - Security 2 05-04-2014 12:19 PM
LQ Has Malware? dudeman41465 LQ Suggestions & Feedback 11 02-04-2013 09:22 AM
[SOLVED] May have contracted malware. Yes, malware. Firefox on Ubuntu Fiesty. Seeking a fix drachenchen Linux - Security 22 08-17-2008 01:05 PM
May have contracted malware. Yes, malware. Firefox on Ubuntu Fiesty. Seeking a fix drachenchen Linux - Security 1 06-12-2008 05:10 AM

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

All times are GMT -5. The time now is 06:46 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