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 01-11-2007, 06:17 PM   #1
RoaCh Of DisCor
Member
 
Registered: Apr 2004
Location: Washington State
Distribution: SuSE 9.3 / Slackware-Current
Posts: 701

Rep: Reputation: 30
More strange queries..


Hi. I posted before about our server. We fixed one problem..and it's been good for awhile, but now we're getting more strange queries:

Here's an example:

Quote:
Jan 11 10:27:34 206-225-**-** named[1408]: client 127.0.0.1#41824: query: askasalesrep.com IN AAAA +
Jan 11 10:27:34 206-225-**-** named[1408]: client 127.0.0.1#41824: query: askasalesrep.com IN A +
Jan 11 10:27:34 206-225-**-** named[1408]: client 127.0.0.1#41824: query: 206-225-**-**.dedicated.abac.net IN AAAA +
Jan 11 10:27:34 206-225-**-** named[1408]: client 127.0.0.1#41824: query: 206-225-**-**.dedicated.abac.net IN A +
Jan 11 10:27:34 206-225-**-** named[1408]: client 127.0.0.1#41824: query: askasalesrep.com IN AAAA +
Jan 11 10:27:34 206-225-**-** named[1408]: client 127.0.0.1#41824: query: askasalesrep.com IN A +
Jan 11 10:27:34 206-225-**-** named[1408]: client 127.0.0.1#41824: query: mchsi.com IN AAAA +
Jan 11 10:27:34 206-225-**-** named[1408]: client 127.0.0.1#41824: query: mchsi.com IN A +
Jan 11 10:27:35 206-225-**-** named[1408]: client 127.0.0.1#41824: query: askasalesrep.com IN MX +
Jan 11 10:27:35 206-225-**-** named[1408]: client 127.0.0.1#41824: query: askasalesrep.com IN AAAA +
Jan 11 10:27:35 206-225-**-** named[1408]: client 127.0.0.1#41824: query: askasalesrep.com IN A +
Jan 11 10:27:37 206-225-**-** named[1408]: client 127.0.0.1#41824: query: mchsi.com IN AAAA +
Jan 11 10:27:37 206-225-**-** named[1408]: client 127.0.0.1#41824: query: mchsi.com IN A +

Jan 11 16:15:07 206-225-**-** named[1408]: client 127.0.0.1#41869: query: gmial.com IN AAAA +
Jan 11 16:15:07 206-225-**-** named[1408]: client 127.0.0.1#41869: query: gmial.com IN A +
Jan 11 16:15:07 206-225-**-** named[1408]: client 127.0.0.1#41869: query: gmial.com IN MX +
Jan 11 16:15:07 206-225-**-** named[1408]: client 127.0.0.1#41869: query: gmial.com IN AAAA +
Jan 11 16:15:07 206-225-**-** named[1408]: client 127.0.0.1#41869: query: gmial.com IN A +
Jan 11 16:15:07 206-225-**-** named[1408]: client 127.0.0.1#41869: query: gmial.com IN AAAA +
Jan 11 16:15:07 206-225-**-** named[1408]: client 127.0.0.1#41869: query: gmial.com IN A +

Jan 11 10:14:49 206-225-**-** named[1408]: client 127.0.0.1#41823: query: yahoo.com IN AAAA +
Jan 11 10:14:50 206-225-**-** named[1408]: client 127.0.0.1#41823: query: yahoo.com IN A +
Jan 11 10:14:50 206-225-**-** named[1408]: client 127.0.0.1#41823: query: 206-225-**-**.dedicated.abac.net IN AAAA +
Jan 11 10:14:50 206-225-**-** named[1408]: client 127.0.0.1#41823: query: 206-225-**-**.dedicated.abac.net IN A +
Jan 11 10:14:51 206-225-**-** named[1408]: client 127.0.0.1#41823: query: yahoo.com IN AAAA +
Jan 11 10:14:51 206-225-**-** named[1408]: client 127.0.0.1#41823: query: yahoo.com IN A +
Jan 11 10:14:51 206-225-**-** named[1408]: client 127.0.0.1#41823: query: mchsi.com IN AAAA +
Jan 11 10:14:51 206-225-**-** named[1408]: client 127.0.0.1#41823: query: mchsi.com IN A +
Jan 11 10:14:51 206-225-**-** named[1408]: client 127.0.0.1#41823: query: yahoo.com IN MX +
Jan 11 10:14:51 206-225-**-** named[1408]: client 127.0.0.1#41823: query: a.mx.mail.yahoo.com IN AAAA +
Jan 11 10:14:51 206-225-**-** named[1408]: client 127.0.0.1#41823: query: a.mx.mail.yahoo.com IN A +
Jan 11 10:14:51 206-225-**-** named[1408]: client 127.0.0.1#41823: query: mchsi.com IN AAAA +
Jan 11 10:14:51 206-225-**-** named[1408]: client 127.0.0.1#41823: query: mchsi.com IN A +
Jan 11 10:15:15 206-225-**-** named[1408]: client 127.0.0.1#41823: query: example.com IN AAAA +
Jan 11 10:15:15 206-225-**-** named[1408]: client 127.0.0.1#41823: query: example.com IN A +
Jan 11 10:15:15 206-225-**-** named[1408]: client 127.0.0.1#41823: query: example.com IN MX +
Jan 11 10:15:15 206-225-**-** named[1408]: client 127.0.0.1#41823: query: example.com IN AAAA +
Jan 11 10:15:15 206-225-**-** named[1408]: client 127.0.0.1#41823: query: example.com IN A +
Jan 11 10:15:15 206-225-**-** named[1408]: client 127.0.0.1#41823: query: example.com IN AAAA +
Jan 11 10:15:15 206-225-**-** named[1408]: client 127.0.0.1#41823: query: example.com IN A +
That's just a handful of odd queries. I'm not a techie, nor am I knowledgable on security, but I do run a linux desktop and know my way around.

Anyway, I was wondering, should we be worried about these queries? What are they?

Thanks.
-RoaCh

Last edited by RoaCh Of DisCor; 01-11-2007 at 06:19 PM.
 
Old 01-11-2007, 06:20 PM   #2
x42bn6
LQ Newbie
 
Registered: Oct 2006
Distribution: Ubuntu 9.10
Posts: 24

Rep: Reputation: 15
(Second administrator here - we censored the IP address because I am paranoid)
 
Old 01-11-2007, 06:28 PM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
For part of it, it looks like someone mistyped gmail in the server's web browser. named is the DNS daemon.
 
Old 01-11-2007, 06:44 PM   #4
x42bn6
LQ Newbie
 
Registered: Oct 2006
Distribution: Ubuntu 9.10
Posts: 24

Rep: Reputation: 15
As far as I am concerned, nobody uses that server for their own purpose... It is used to host our forum.
 
Old 01-11-2007, 07:14 PM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
It is used to host our forum.
Let me guess, it's PHP-based?
 
Old 01-12-2007, 05:06 AM   #6
x42bn6
LQ Newbie
 
Registered: Oct 2006
Distribution: Ubuntu 9.10
Posts: 24

Rep: Reputation: 15
vBulletin 3.6.4, the newest version. I don't know the exact version of Fedora we use and stuff (my collegue will).
 
Old 01-12-2007, 07:33 AM   #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
Aw, well, named.log probably is nothing to worry about, my question would be: why is BIND looking for MX records and especially for domains you (probably) have nothing to do with like "askasalesrep"? If there are no exploitable holes in anything (publicly) accessable you run and you do watch logs and regularly audit the system then the explanation could be found in running something that needs MX lookups like an anti-spam solution. A quick way to see the top-30 domains requested from your named.log:
Code:
awk '{print $9}' named.log | sort | uniq | while read fqdn; do echo \
"`grep -c "${fqdn}" named.log` ${fqdn}"; done | sort -rk1 | head -30

Minor nit: if BIND is configured to check for IPv6 (the quad-A forward lookups) but you don't use IPv6 then why waste time on it?
 
Old 01-13-2007, 10:27 AM   #8
x42bn6
LQ Newbie
 
Registered: Oct 2006
Distribution: Ubuntu 9.10
Posts: 24

Rep: Reputation: 15
I'm totally new to Linux and stuff and I do not feel ashamed to say, "I don't know what the heck you just said."

This server doesn't send emails out unless they are the confirmation emails or members sending emails to each other via our system. Granted, there are members with email addresses ending in askasalesrep.com (1 member) and gmial.com (1 member), but both are not likely to be receiving email via our system.

Is it possible we have been compromised and someone is mass-sending out emails?
 
Old 01-13-2007, 06:08 PM   #9
Linux_Kidd
Member
 
Registered: Jan 2006
Location: USA
Posts: 737

Rep: Reputation: 78
mostly ipv4 and ipv6 'A' queries going on. something (if not you) is going to the internet by name. can you turn named off ?
 
Old 01-14-2007, 05:28 AM   #10
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
I'm totally new to Linux and stuff and I do not feel ashamed to say, "I don't know what the heck you just said."
NP, that's what we're here for, right?


This server doesn't send emails out unless they are the confirmation emails or members sending emails to each other via our system. Granted, there are members with email addresses ending in askasalesrep.com (1 member) and gmial.com (1 member), but both are not likely to be receiving email via our system.
OK, so at least the lookups for those domains is linked to membership.


Is it possible we have been compromised and someone is mass-sending out emails?
If you have any doubt then it would be a mistake for me to say "no problem" without you verifying the system and presenting "evidence" (even though no clear signs of intrusion where presented). It would be in your own interest to verify your system looking at the contents of the temp dirs, (changes in) the system auth, anything suspicious from the system and daemon logs, verbose process and network listings, your package management tools in package verification mode, any file integrity checker (if installed), Chkrootkit or Rootkit Hunter, and to make sure you get the "basics" the steps from say the Intruder Detection Checklist (CERT): http://www.cert.org/tech_tips/intrud...checklist.html. Post your results back RSN.

Most likely it is not a compromise, and if it is it may wel be confined to something piggybacking PHP, but making sure is the only way to deal with this.
 
  


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
LDAP queries.... pushpraj Linux - Distributions 2 09-01-2006 05:11 AM
python queries LAdProg2005 Programming 0 11-14-2005 10:38 AM
***Queries for all of u***** LinuxRam Linux - General 6 08-02-2004 01:09 PM
DNS Queries lcplutz@wincor Linux - Networking 2 06-04-2004 06:59 AM
Security queries hiteshmaisheri Linux - Security 1 03-20-2004 05:08 AM

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

All times are GMT -5. The time now is 01:18 PM.

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