Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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?
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.