| |
Tripwire filesystem integrity checking
Install Tripwire:
Skip Tripwire initialization during the installation.
To initialize Tripwire, you need to setup
- local key and site key
- configuration file, twcfg.txt
- policy file, twpol.txt
- encrypt them with the site key --> tw.cfg, tw.pol
Generate the site and local keys:
Remember the passphrase.
Two new files, site.key and desktop...-local.key,
appear in directory /etc/tripwire.
The default configuration file, /etc/tripwire/twcfg.txt, is okay to use as it is. It sets the paths and some env. variables.
The policy file contains rule names, severity levels, and the file systems list.
Modify the policy file, /etc/tripwire/twpol.txt as follows:
- remove /root (the whole section)
- remove /etc/rc.boot
- remove /proc
- after /dev, add
The site key encrypts/signs the configuration and policy files, tw.cfg, tw.pol;
the local key encrypts/signs the database. Sign the configuration and policy files:
The new files tw.cfg and tw.pol are encrypted with
site.key and not human readable.
Build the Tripwire database and sign it with the local key:
Remove the text configuration and policy files for better protection:
Note, in case you need to modify them, they can be extracted from tw.cfg and tw.pol:
Run system integrity check:
Create a new file, /etc/newfile.txt and run the integrity
check again.
Print the last tripwire report:
include("right-side-menu.inc");
?>
|