12. Loadable Module: Cheesewire (IDM_cheesewire.pm) — Tripwire-Like Functionality

12.1. What

IDM_cheesewire.pm offers Tripwire-like functionality: the inode, date-stamp, MD5 checksum and size of files is recorded in a database at a time the files are assumed "clean"; at run-time, current values are compared against those recorded and differences are logged.

Cheesewire can check some files more frequently than others: for example, files such as /bin/ls, /bin/ps, /bin/netsat and /bin/bash, and .sos on which these utilities depend, might be checked each hour, while the whole of /bin, /lib, /sbin, /usr/bin... might be checked only once a day to reduce load on the system.

12.2. How

Makes use of the standard Perl function stat and the CPAN Perl module Digest::MD5.

12.3. Configuration and Supporting Script

All paths in this section are relative to <sids_root>.

Configuration files:

    /etc/IDM_cheesewire/policy.txt
    /etc/IDM_cheesewire/policy_2.txt
    /etc/IDM_cheesewire/db.txt
    /etc/IDM_cheesewire/db_2.txt
The policy files describe which files and/or directories should be checked by the Cheesewire module, and which attributes of the file should be considered; the policies are turned into db files for input to the module by the script /src/Scripts/initcheesewire. The _2 policy is checked less frequently than the unnumbered ("_1") policy. Usage:
    # ...first edit the policy files, then...
    #
    cd /src/Scripts
    ./initcheewewire 1
    #
    # ...and/or
    #
    ./initcheewewire 2


...previousup (conts)next...



About this document:

Produced from the SGML: /home/isd/public_html/_cheesewire/_reml_grp/index.reml
On: 4/9/2006 at 17:35:44
Options: reml2 -i noindex -l long -o html -p multiple