Open Source Tripwire
Open Source Tripwire is a free software security and data integrity tool for monitoring and alerting on specific file change(s) on a range of systems originally developed by Eugene H.[src] Spafford and Gene Kim.[src] The project is based on code originally contributed by Tripwire, Inc.[src] in 2000.[src] It is released under the terms of GNU General Public License.[src] , but not maintained anymore.[src] The latest update was in 2018.[src] It works by creating a baseline database, and then regularly comparing the state of the file system with the database.[src] If it detects changes (e.g.[src] addition or modification of some files), it includes these changes in its report, so that the security administrators could check these changes.[src]
Open Source Tripwire is a free software security and data integrity tool for monitoring and alerting on specific file change(s) on a range of systems originally developed by Eugene H.[src] Spafford and Gene Kim.[src] The project is based on code originally contributed by Tripwire, Inc.[src] in 2000.[src] It is released under the terms of GNU General Public License.[src] , but not maintained anymore.[src] The latest update was in 2018.[src] It works by creating a baseline database, and then regularly comparing the state of the file system with the database.[src] If it detects changes (e.g.[src] addition or modification of some files), it includes these changes in its report, so that the security administrators could check these changes.[src] ==History== The Tripwire was created by Dr.[src] Eugene Spafford and Gene Kim in 1992 in response to a series of stealthy intrusions that occurred in early 1991.[src] These attacks circumvented the existing security systems by infecting the shared libraries in a way that their CRC checksums were unchanged.[src] Tripwire was designed to use message digest functions from different hash families (e.g.[src] MD5 and Snefru) in order to stay reliable even after one of the hashing algorithms gets compromised.[src] The name "Tripwire" comes from the trap or tripwire files which alert administrators upon being accessed by intruders.[src] Spafford recalls: Tripwire was written in C and its design emphasized the program and database portability.[src] On November 2, 1992, it was released for a beta testing.[src] In December 1993, the formal release was made after identifying and fixing several bugs.[src] Early releases were developed in a cleanroom style, where Gene Kim did the development and Eugene Spafford ran the acceptance testing.[src] The Tripwire was initially free and open-source, but it went commercial in 1997.[src] Open Source Tripwire was released in October, 2000, under the GNU General Public License.[src] On May 4, 2015, the source code was moved from SourceForge to GitHub.[src] ==Overview== During the installation, Open Source Tripwire asks the user to set the site-key and local key passphrases.[src] The site-key passphrase encrypts the policy and configuration files which are shared across multiple systems.[src] The local passphrase is used to protect files on a specific machine.[src] The policy file contains the list of files and directories to scan and the rules (e.g.[src] which attributes of the directory tree to look at).[src] Open Source Tripwire later asks for the local passphrase when creating an initial database with file signatures.[src] It runs the first scan of the system and saves the result to the database.[src] Afterwards, it runs integrity checks and compares the result with the database.[src] For example, if a new file is created then it will be listed in the subsequent integrity check report.[src] Open Source Tripwire can be configured to regularly run integrity checks and send report e-mails to the system administrator.[src] The database should be initialized before the system is at risk of being compromised.[src] The user can create the tripwire files which look like they have valuable information (e.g.[src] the file called master-password.txt ) and configure Open Source Tripwire to track these files in order to catch snooping intruders.[src] When the intruder reads these files, their access timestamps get updated and the security administrators get notified about this incident.[src] Unlike Tripwire Enterprise, Open Source Tripwire is not available for Windows and has only basic policies.[src] Windows users can run the Open Source Tripwire using the Cygwin, but it will not scan Windows specific attributes such as Windows Registry.[src] ==Details== ===Policy file=== The policy file is called twpol.txt (or tw.config in the previous versions), and it tells which files and directories need to be monitored.[src] It supports preprocessing which allows administrators to write only one policy file for many different machines.[src] In the policy file, along with each file or directory there is a selection-mask that tells which attributes to ignore and which to report.[src] For example, the selection-mask could be written to report changes in modification timestamp, number of links, size of the file, permission and modes, but ignore changes to the access timestamp.[src] Also, there is an option to specify whether or not Tripwire should be recursing into a directory, i.e.[src] checking the subdirectories, subdirectories of those subdirectories, etc.[src] Example of the policy file: system binaries SYSBIN = +pngu+sm; /usr/local/bin/pwgen -> $(SYSBIN); /usr/bin -> $(SYSBIN); /usr/sbin -> $(SYSBIN); /etc/security -> +pug (recurse=-1); ignore last log !/etc/security/lastlog; logs SYSLOGS = +p-lum; /var/adm/messages -> $(SYSLOGS); /opt -> $(SYSBIN); ignore these do not scan !/opt/dump; !/opt/freeware; The following example of the policy file from "The Design and Implementation of Tripwire: A File System Integrity Checker" by Spafford and Kim makes use of the preprocessing language.[src] Here it is used to ignore the directory with printer logs on a specific host, and this directory will be scanned on all other hosts.[src] Thus, the preprocessing allows to use the same policy file on this specific host and on other hosts, otherwise the user would need to write separate policy files.[src] file/dir selection-mask /etc R # all files under /etc @@ifhost solaria.cs.purdue.edu !/etc/lp # except for SVR4 printer logs @@endif /etc/passwd R+12 # you can't be too careful /etc/mtab L # dynamic files /etc/motd L /etc/utmp L =/var/tmp R # only the directory, not its contents ===Configuration file=== The configuration file is called twcfg.txt , and it contains information about paths to the policy file, database file, report file, etc.[src] It also has entries for mail settings (for instance, which program to use to send an e-mail with the report).[src] Example of the configuration file: ROOT =/opt/freeware/sbin POLFILE =/etc/tripwire/tw.pol DBFILE =/var/lib/tripwire/$(HOSTNAME).twd REPORTFILE =/var/lib/tripwire/report/$(HOSTNAME)-$(DATE).twr SITEKEYFILE =/etc/tripwire/site.key LOCALKEYFILE =/etc/tripwire/$(HOSTNAME)-local.key EDITOR =/usr/bin/vi LATEPROMPTING =false LOOSEDIRECTORYCHECKING =false MAILNOVIOLATIONS =true EMAILREPORTLEVEL =3 REPORTLEVEL =3 MAILMETHOD =SENDMAIL SYSLOGREPORTING =false MAILPROGRAM =/usr/sbin/sendmail -oi -t ===Database file=== The database file is unique for each machine, as opposed to the policy and configuration files which could be shared across multiple machines.[src] It stores file permissions, modification dates and signatures of the files.[src] For each file, the database can store up to ten signatures.[src] The database does not store the content itself, because storing the content of the files would use too much disk space.[src] The database file is human-readable, and the user can verify properties of individual files and check the database for potential tampering.[src] When the integrity check detects a new file, but its path does not have an entry in the policy file, Tripwire chooses the closest ancestor entry and copies its selection-mask, or uses the default selection-mask if the entry could not be found at all.[src] Tripwire has an interactive update mode which simplifies the process of reviewing every updated file.[src] For each created, deleted or modified file it asks whether or not the corresponding database entry should be changed.[src] ===Signatures=== In order to minimize the impact of hash collisions (i.e.[src] the signature would not change even when the file was changed) on the security, Tripwire uses multiple different hashing algorithms to compute multiple signatures for each file.[src] Because different hashing algorithms have different performances, Tripwire allows to configure which signatures to use and how frequently.[src] For example, the system could be configured to compare CRC32 signatures every hour and compare MD5 signatures every day.[src] This way the hourly integrity checks would run faster, and even if some file gets modified without changing its CRC32 checksum, it will get reported during the daily integrity check.[src] Tripwire provides a generic interface to signature routines, so the user can include their own checksum methods.[src] ==See also== AIDE Host-based intrusion detection system comparison OSSEC Samhain ==References== ==External links== Tripwire, Inc.[src]
75 sentences · 75 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Open Source Tripwire." encyclopegia.org, 2025, https://encyclopegia.org/wiki/open-source-tripwire. Accessed 30 November 2026.
Chicago
"Open Source Tripwire." encyclopegia.org. Accessed November 30, 2026. https://encyclopegia.org/wiki/open-source-tripwire.
APA
encyclopegia.org. (2025). Open Source Tripwire. Retrieved November 30, 2026, from https://encyclopegia.org/wiki/open-source-tripwire
Accessed November 30, 2026 · CC BY-SA 4.0 · citation page · JSON
Claims
| Predicate | Value | Source |
|---|---|---|
| release date | 2000 | Wikipedia |