tripwire (8) - Linux Manuals
tripwire: a file integrity checker for UNIX systems
NAME
tripwire - a file integrity checker for UNIX systemsSYNOPSIS
tripwire { -m i | --init } [ options... ]tripwire { -m c | --check } [ options... ]
tripwire { -m u | --update } [ options... ]
tripwire { -m p | --update-policy } [ options... ]
tripwire { -m t | --test } [ options... ]
DESCRIPTION
Database Initialization Mode
Running tripwire in Database Initialization mode is typically one of the first steps in setting up Tripwire for regular operation. This mode creates a baseline database in the location specified by the DBFILE variable in the Tripwire configuration file. The database is essentially a snapshot of the objects residing on the system. During later Tripwire integrity checks, this database serves as the basis for comparison.When run in Database Initialization mode, tripwire reads the policy file, generates a database based on its contents, and then cryptographically signs the resulting database. Options can be entered on the command line to specify which policy, configuration, and key files are used to create the database. The filename for the database can be specified as well. If no options are specified, the default values from the current configuration file are used.
Integrity Checking Mode
After building the Tripwire database, the next step is typically to run tripwire in Integrity Checking mode. This mode scans the system for violations, as specified in the policy file. Using the policy file rules, Tripwire will compare the state of the current file system against the initial baseline database. An integrity checking report is printed to stdout and is saved in the location specified by the REPORTFILE setting in the Tripwire configuration file.The generated report describes each policy file violation in detail, depending on whether the specified file system object was added, deleted, or changed. Each report item lists the properties of the object as it currently resides on the file system, and, if appropriate, the old value stored in the database. If there are differences between the database and the current system, the administrator can either fix the problem by replacing the current file with the correct file (e.g., an intruder replaced /bin/login), or update the database to reflect the new file (e.g., a fellow system administrator installed a new version of /usr/local/bin/emacs). The (-I or --interactive) option launches an editor that allows the user to update the database quickly. The Database Update mode of tripwire can also be used.
Database Update Mode
Running tripwire in Database Update mode allows any differences between the database and the current system to be reconciled. This will prevent the violation from showing up in future reports. If the reported change is unexpected and potentially malicious, then the changed file should be replaced with the original version. If there is a valid reason for the change, the database must be changed to match the current files.
In Database Update mode, the items to be changed are specified in a
"ballot box" in the plain text report
that is launched in an editor program.
The entries to
be updated are specified by leaving the "x" next to each policy
violation. After the user exits the editor and provides the correct
local passphrase,
tripwire will update the database.
Options to control this operation include the
(-Z
Because the policy and database files are binary-encoded and
cryptographically signed, the user will be prompted for the site and
local passphrases to change the policy settings. After the database is
successfully updated, the
database and policy files are re-encoded and signed.
Test mode only tests email notification for the address specified on
the command-line, and does not check for errors in the syntax used with
the emailto attribute in the policy file.
High: In high security mode, if a file does not match the
properties in the report file, Tripwire reports the differences as
warnings, and exits without changing the database.
Low: In low security mode, inconsistencies
are reported as warnings,
but the changes are still made to the database.
High: In high security mode, if a file on the filesystem does
not match the properties in the database file, Tripwire reports the
differences as warnings, and exits without changing the database or the
policy file.
Low: In low security mode, inconsistencies are reported as
warnings, but the changes are still made to the database and policy
file.
Permission is granted to copy and distribute modified versions of this man page under the conditions for verbatim copying, provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one.
Permission is granted to copy and distribute translations of this man page into another language, under the above conditions for modified versions, except that this permission notice may be stated in a translation approved by Tripwire, Inc.
Copyright 2000-2017 Tripwire, Inc. Tripwire is a registered trademark of Tripwire, Inc. in the United States and other countries. All rights reserved.
The Design and Implementation of Tripwire: A UNIX File Integrity Checker
by Gene Kim and Eugene Spafford. Purdue Technical Report CSD-TR-93-071.
Policy Update Mode
Policy update mode is used by tripwire to change or update the
policy file and to synchronize an earlier database with new policy
file information. The filename of the new clear text version of the
policy file is specified on the command line. The new policy file is
compared to the existing version, and the database is updated according
to the new policy rules. Any changes in the database since the last
integrity check will be detected and reported. How these violations
are interpreted depends on the security mode specified with the
(-Z or --secure-mode) option.
In high security mode (the default), Tripwire will print a list of
violations and exit without making changes to the database. In
low security mode, the violations are still
reported, but changes to the database are made automatically.
Test Mode
Test mode is used to check the operation of the Tripwire email
notification system. When run in this mode, Tripwire will use the
email notification settings specified in the configuration file to send
a test email message. If MAILMETHOD is set to SMTP, the SMTPHOST and
SMTPPORT values will be used to send email. If MAILMETHOD is set to
SENDMAIL, the MAILPROGRAM value will be used. If email notification is
working correctly, the address specified on the command line will
receive the following message:
To: user [at] domain.com
From: user <user [at] domain.com>
Subject: Test email message from Tripwire
If you receive this message, email notification
from Tripwire is working correctly.
OPTIONS
Database Initialization mode:
-m i --init -v --verbose -s --silent, --quiet -c cfgfile --cfgfile cfgfile -p polfile --polfile polfile -d database --dbfile database -S sitekey --site-keyfile sitekey -L localkey --local-keyfile localkey -P passphrase --local-passphrase passphrase -e --no-encryption
Integrity Checking mode:
[ object1 [ object2... ]]
-m c --check -I --interactive -v --verbose -s --silent, --quiet -c cfgfile --cfgfile cfgfile -p polfile --polfile polfile -d database --dbfile database -r report --twrfile report -S sitekey --site-keyfile sitekey -L localkey --local-keyfile localkey -P passphrase --local-passphrase passphrase -n --no-tty-output -V editor --visual editor -E --signed-report -i list --ignore list -l { level | name } --severity { level | name } -R rule --rule-name rule -x section --section section -M --email-report -t { 0|1|2|3|4 } --email-report-level { 0|1|2|3|4 } -h --hexadecimal
Low 33
Medium 66
High 100
Mutually exclusive with (-R).
Database Update mode:
-m u --update -v --verbose -s --silent, --quiet -c cfgfile --cfgfile cfgfile -p polfile --polfile polfile -d database --dbfile database -r report --twrfile report -S sitekey --site-keyfile sitekey -L localkey --local-keyfile localkey -P passphrase --local-passphrase passphrase -V editor --visual editor -a --accept-all -Z { low | high } --secure-mode { low | high }
Policy Update mode:
policyfile.txt
-m p --update-policy -v --verbose -s --silent, --quiet -c cfgfile --cfgfile cfgfile -p polfile --polfile polfile -d database --dbfile database -S sitekey --site-keyfile sitekey -L localkey --local-keyfile localkey -P passphrase --local-passphrase passphrase -Q passphrase --site-passphrase passphrase -Z { low | high } --secure-mode { low | high }
Test mode:
-m t --test -e user [at] domain.com --email user [at] domain.com
VERSION INFORMATION
This man page describes
tripwire
version 2.4
AUTHORS
Tripwire, Inc.
COPYING PERMISSIONS
Permission is granted to make and distribute verbatim copies of this man page provided the copyright notice and this permission notice are preserved on all copies.
SEE ALSO
twintro(8),
twadmin(8),
twprint(8),
siggen(8),
twconfig(4),
twpolicy(4),
twfiles(5)