Logs

Server integrity check

 
Controllo di integrita dei server Controlo da integridade dos servidores Kontrolle der Integrität von Servern Contrôle de l'intégrité des serveurs Verificación de la integridad de los servidores

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.

Best answers for « Server integrity check » in :
Checking server integrity Show 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,...
Installing a SAMBA server (Linux) Show Installing a SAMBA server Prerequisite Introduction The Samba Architecture Installation of required packages for samba server Starting Samba The commands Smb.conf file configuration ‘’global’’ Section ‘’documents’’...
Download MP3-Check Show Format 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...
Start/stop a service using command line ShowStart/stop a service using command line The netsh tool (netsh.exe) can automate the startup or shutdown of a service through the following command line: To start a service: Net start name_of_service To stop a service:...
The RPC server is unavailable ShowThe RPC server is unavailable First Solution Second Solution When the printers installed on the machine are no longer available and that the Windows system displays the following message: Unable to continue operation due to lack of...
Using Outlook with your Yahoo! Mail ShowUsing Outlook with your Yahoo! Mail Step 1: Configuration of your Yahoo! account Step 2: Check that the account is working It is now possible to use your Outlook account to with your Yahoo! paid subscription email accounts that...
Download Avast! Home Edition ShowDescription: Avast! 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...
Proxy and reverse proxy servers ShowProxy 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...
Networking - 3-Tier Client/Server Architecture ShowIntroduction to 2-Tier 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...
Client/Server Environment ShowIntroduction to 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...