Security Aspects to Watch for in Your Server Logs



web hosting

If you’ve started taking a closer eye on security for your web site then you’ve probably at some point started looking at the actual logs of users visiting your web site.  These can go by a lot of different names: we’ll stick with the blunt “web logs” for this article.  These are files that show you exactly who is doing, or trying to do, what with your web site, where they’re doing it from, and how they’re doing it (what browser they are using, often what operating system, and more information depending on your host’s web server software).

If you have a busy web site then it quickly becomes prohibitive to go through every line every day, and you want to be able to scan it for problems.  This is a good idea, but to be able to do so, you will need to have some idea of what kinds of problems you’re looking for.  Here is a summary of some of what you’re going to try to keep an eye out for:

Hits to non-existent pages

To scan your logs effectively you need to be able to know the names of the actual pages on your web site without looking, meaning that you also need to know immediately if you are looking at an attempted hit to a non-existent page.  There are a few common pages that you’ll see from someone trying to infiltrate.  “index.php” is one, and no, this won’t accomplish anything on their end if all you have is “index.html”: the “.html” extension does make it a completely separate page.

OK, we’ll then what’s the danger?  Nothing, immediately.  The reason that you’ll see these attempts is that some web design software packages have built-in bugs.  These create pages with vulnerabilities that have predictable names.  These hits are attempts to access those.

One important note about this, though, is that this isn’t always bad news.  Search engine spiders often do the same auto-browsing, but in this case they are looking for pages that contain instructions for the search engine, like “robots.txt.”

Funny URLs

Not “ha ha” funny, either.   There are two things you’re looking for here:

Lots of non-ASCII characters: These can either be control characters or other characters down the character set.  You’ll recognize them by a syntax like “%056”.  Again, these need some script on your end to do something with them (they send unauthorized instructions to said script), but it’s a sign that someone’s trying.

Attempted login information: Password protection is common.  So are people who don’t realize that you need a password other than “password”.  If you see a URL that is long, sent to a .cgi, .php or other executable page, and the URL contains in it what looks like a username/password combo, then that is what it probably is.

What to do

We’ve discussed elsewhere what to do when you see these things.  The quick summary: block the IP addresses you need to, and don’t block any more than that, lest you risk filtering out legitimate traffic.  Also don’t be afraid to ask your web host for an extra set of eyes if there’s something you’re suspicious of: not only do they have more experience, but if there’s an attack affecting multiple users, then they might recognize something about its footprint that you wouldn’t be able to.  This is your web site, your livelihood: there’s nothing wrong with being as secure about it as you want to be.

Tags: , , , , ,

Understanding The Root User And How to Obtain It

web hosting

If you’re new to the realm of dedicated web hosting, you may suddenly be inundated with a bunch of terms with which you’re unfamiliar. Believe it or not, there’s a lot more to web hosting than just disc space, bandwidth, and hardware: The...

Oct 5th, 2011 Read more

How to Install ModSecurity in CentOS

modsecurity-centos

If you’re the proud owner of a dedicated server running CentOS (Seems like most people are favoring the Linux distro these days!) then you owe it to yourself to install a simple utility called ModSecurity. The service is an application firewall that...

Oct 2nd, 2011 Read more

What the New User can Learn from the GoDaddy Account Hack

godaddy-web-hosting

Recently a security breach occurred in 445 of GoDaddy’s web hosting accounts.  While that may not seem like a lot on a percentage basis, that is also high enough to indicate that the hack was some type of systemic problem.  This can scare the...

Sep 30th, 2011 Read more

How To Connect To Your Server Using SSH

web hosting

SSH is about as cool as sliced bread, if maybe not a little bit more so. Seriously, it’s a great way to get at your server’s terminal shell, which—as we all know—is the hotbed of power. From there you can change just about any aspect of the server,...

Sep 28th, 2011 Read more

Keep Your Site Safe – Learn What Not to Do

web hosting

Let’s face it: The Internet isn’t the golden playground it once was, where all could go and have their swing in peace. In fact, it’s now so overrun with bullies and miscreants that it’s a wonder we haven’t decided to swap school districts yet!...

Sep 23rd, 2011 Read more

How And When To Offer SSH Access To Your Customers

offer-ssh-access

If you’re running on a Unix or Linux server, then you likely access your files systems via SSH on a daily basis. However, this might be well and fine for an administrator like you, but should you also be offering the same access to your customers? SSH...

Sep 22nd, 2011 Read more

How To Deal With A Possible Intruder On Your Server

web hosting

You’re cruising through your server’s inner network one fine day, when all of a sudden you notice an unfamiliar name accessing your files. This user may have come through SSH, or any other access method, but no matter the entry port, you certainly...

Sep 21st, 2011 Read more

How to Keep Your Server Safe From Common Security Problems

web hosting

It’s a wild, wild world out there. There’s all kinds of culprits just waiting to hack your website, trash all those gorgeous lines of code, and then steal your information from here to Sunday. Thankfully, though, we as web hosters have had plenty...

Sep 13th, 2011 Read more

Several Security Risks and How to Avoid Them

Avoid Security Risks

Yes, you’ve made sure that you’ve chosen a password that you can remember, that no one else can guess, and that has in it at least one number and one punctuation mark.  You know, though, that there is more to securing your web site than that,...

Sep 9th, 2011 Read more

Spam Assassin – Your Savior From Spam

Spam Assassin

How many times have you been put off by scores of spam mails when you open your email client, hoping to be able to find that elusive contract mail from a client? Website owners and administrators would vouch for the fact that there is hardly anything...

Sep 4th, 2011 Read more

Page 2 of 1012345...10...Last »

Stay in Touch with the Geeks

Our Community

Facebook
2277 Fans
Twitter
1423 Followers
FeedBurner
59 Subscribers

Submit News

Do you have an exciting story and want the world to hear it?

Submit a Story

  • 15K monthly visitors
  • PageRank 6
  • Alexa 11,000