Flux rss

Server integrity check

 
Prevention - DetectionMore information

Integrity check

When a server has been compromised, the hacker usually covers his/her tracks by deleting all records of his/her activity from the logs. Additionally, he/she installs some tools to enable him/her to create a backdoor, in order to facilitate a return visit later on.

Ever clever, the hacker usually fixes the vulnerability which had allowed him/her to gain entry, so that other hackers can't infiltrate it in turn.

However, the hacker's presence can be revealed by certain administrative commands which display a list of processes underway, or of users connected to the machine. For this reason, tools called rootkits have been developed to overwrite these system tools and replace them with equivalent functions which hide the hacker's presence.

It is easy to see why, in the absence of obvious damage, an administrator may find it difficult to tell if a computer has been compromised. One of the first things to do once an intrusion has been detected is to establish when it occurred, in order to determine which other servers may have been affected, and how.

In general, servers use files to store logs of their activity, and in particular any errors encountered.

Therefore, after a computer attack, it is rare for the hacker to successfully compromise a system on the first try. He/she usually works by trial and error, testing out various requests.

This is why log monitoring can be used to detect suspicious activity. It is particularly important to monitor the logs of security-related software; as well-configured as they may be, they can still be the target of an attack.

Checking for the presence of rootkits

There are some programs (chkrootkit, for example) which are used to check if there are rootkits on a system. However, in order to be able to use such tools, you must be certain of the integrity of the tool and the results it displays onscreen. Therefore, a compromised system cannot be considered reliable.

Analysing integrity

In order to ensure system integrity, it is therefore necessary to detect intrusions at a higher level. This is the goal of integrity checkers like Tripwire.

The software Tripwire, originally developed by Eugene Spafford and Gene Kim in 1992, is used to ensure system integrity by constantly monitoring changes to certain files and folders. Tripwire carries out integrity checks and maintains an up-to-date signature database. At regular intervals, it inspects the following file characteristics in order to tell if they have been modified and/or compromised:

  • permissions;
  • date last modified;
  • access date;
  • file size;
  • file signature.

Alerts are sent by email, preferable to a remote server, so as to keep the hacker from erasing them.

Limits to integrity checking

For the results of an integrity checker to be reliable, you must be certain of the machine's integrity at the time it is installed. It is also very difficult to configure this kind of software, as the number of files that may need to be monitored can be very large. What's more, whenever new applications are installed, their files must be configured to be checked.

Additionally, this kind of solution tends to send many false alarms, especially when the system is only modifying configuration files or updating itself.

Finally, if the machine is actually compromised, the hacker might attempt to compromise the integrity checker before the next update, which is why it is important to store alerts on a remote machine or a non-rewritable external medium.

Resources

Article written 22 May 2006 by Jean-François Pillou.

Last update on Thursday October 16, 2008 02:43:19 PM.

This document entitled « Server integrity check » from Kioskea (en.kioskea.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the licence, as this note appears clearly.

Results for

Attack detection - Checking server integrity When a server has been compromised, the hacker usually covers his/her tracks by deleting all records of his/her activity from the logs. Additionally, he/she installs some tools to enable him/her to create a backdoor, in order to facilitate a return... en.kioskea.net/detection/verificarion-integrite-serveurs.php3
Networking - Client/Server Architecture Numerous applications run in a client/server environment, this means that client computers (computers forming part of the network) contact a server, generally a very powerful computer in terms of input/output, which provides services to the client... en.kioskea.net/cs/csintro.php3
WinXP Home Install CD Hello, I have a computer that came installed with WinXP Home. I want to fomrat the HD and reinstall WinXPHome. I have a Microsoft Certificate of Authenticity and Product Key but no CD. How do I get an install CD or an install file to reinstall WinXP... en.kioskea.net/forum/affich-11920-winxp-home-install-cd

Results for

CMOS CHECKSUM ERROR - DEFAULT LOADEDCMOS CHECKSUM ERROR - DEFAULT LOADED When starting your PC, the following error message is displayed: CMOS wrong CMOS MEMORY size WRONG CMOS Checksum Bad CMOS checksum error defaults loaded Warning! CPU has been changed please re... en.kioskea.net/faq/sujet-618-cmos-checksum-error-default-loaded
RCP Server not availableRCP Server not available RCP stands for Remote Procedure Call and if the computer displays “Operation could not be completed. The RPC server is unavailable” while trying to access the printers installed on the computer or trying to... en.kioskea.net/faq/sujet-356-rcp-server-not-available
BIOS ROM CHECKSUM ERROR-SYSTEM HALTEDBIOS ROM CHECKSUM ERROR-SYSTEM HALTED If the following error message is displayed when booting up your PC. BIOS ROM CHECKSUM ERROR-SYSTEM HALTED This means that the information found on the BIOS are invalid or cannot be ... en.kioskea.net/faq/sujet-716-bios-rom-checksum-error-system-halted

Results for

Router is hearing your serverHello, What command would i use to check if the router is hearing your server SAPs? en.kioskea.net/forum/affich-2343-router-is-hearing-your-server
Connection has timed out - FirefoxHello, I am using Firefox on Windows Vista. When I click on a link from within my credit union's site, I get this message: Connection has timed out. The server at global1.onlinebank.com is taking too long to respond. I double-checked to see that... en.kioskea.net/forum/affich-3788-connection-has-timed-out-firefox
Can't open .org webpages using firefoxHello, Everytime i try to go to any web page ending with .org, i get the following error message: Server not found Firefox can't find the server at www.xxxxxx.org. * Check the address for typing errors such as ww.example.com instead of... en.kioskea.net/forum/affich-27037-can-t-open-org-webpages-using-firefox

Results for

Download Avast! 4 Home Editionavast! 4 Home Edition is a complete and free antivirus solution, fully able to find computer viruses, to create and check the integrity of programs installed, to test executed programs and opened documents, to test and check email and other functions.... en.kioskea.net/telecharger/telecharger-89-avast-4-home-edition
Download MP3-CheckFormat MP3 is audio format par excellence for audio compression. But it is really possible that there are errors in formats, notably graffiti there. MP3-Check is an application which allows to prove your music collection for quality and possible... en.kioskea.net/telecharger/telecharger-696-mp3-check

Results for

Network equipment - Proxy servers A proxy server is a machine which acts as an intermediary between the computers of a local area network (sometimes using protocols other than TCP/IP) and the Internet Most of the time the proxy server is used for the web, and when it is, it's an HTTP... en.kioskea.net/lan/proxy.php3
Networking - 3-Tier Client/Server Architecture 2-tier architecture is used to describe client/server systems where the client requests resources and the server responds directly to the request, using its own resources. This means that the server does not call on another application in order to... en.kioskea.net/cs/cs3tier.php3
Intranet - Installing a mail server The most commonly used e-mail server in Linux is Sendmail; however, as it is very hard to configure, we will use Qmail, an alternative e-mail server, instead. Qmail is made up of a group of programs that work with different UID/GIDs, in order to... en.kioskea.net/intranet/resmail.php3