Rules Related To 'tripwire'

Component overview

Relevant packages:

Relevant groups:

Changelog:

No changes recorded.

Relevant rules:

Rule details

Install Tripwire

package_tripwire_installed

Description

The tripwire package needs to be present in the container or container image.

Rationale

The tripwire package provides the Tripwire file and directory integrity checker, a common alternative to AIDE. It must be installed for any integrity checking to be possible.

Build and Initialize Tripwire Database

tripwire_build_database

Description

Run the following command to generate the initial known-good database, supplying the local passphrase when prompted:

$ sudo tripwire --init
By default the database is written to /var/lib/tripwire/$(HOSTNAME).twd, as configured by the DBFILE directive in /etc/tripwire/twcfg.txt. To run a manual integrity check afterwards:
$ sudo tripwire --check
If the check produces unexpected output, investigate.

Rationale

For Tripwire to be effective, an initial database of "known-good" information about files must be captured so that installed files can be verified against it.

Configure Periodic Execution of Tripwire

tripwire_periodic_cron_checking

Description

Tripwire should run at least weekly. The Debian tripwire package installs /etc/cron.daily/tripwire by default, which runs tripwire --check once a day and mails the report to root. The script can instead be moved to /etc/cron.weekly if weekly checks are preferred.

Rationale

By default, integrity checking tools do not run themselves periodically. Running Tripwire on a schedule is necessary to reveal unexpected changes to installed files in a timely manner.