<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.bretts.org/index.php?action=history&amp;feed=atom&amp;title=Tripwire</id>
		<title>Tripwire - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.bretts.org/index.php?action=history&amp;feed=atom&amp;title=Tripwire"/>
		<link rel="alternate" type="text/html" href="https://wiki.bretts.org/index.php?title=Tripwire&amp;action=history"/>
		<updated>2026-06-24T03:29:34Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.28.0</generator>

	<entry>
		<id>https://wiki.bretts.org/index.php?title=Tripwire&amp;diff=3335&amp;oldid=prev</id>
		<title>205.228.74.13: /* Policy file */</title>
		<link rel="alternate" type="text/html" href="https://wiki.bretts.org/index.php?title=Tripwire&amp;diff=3335&amp;oldid=prev"/>
				<updated>2008-06-12T11:30:56Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Policy file&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 11:30, 12 June 2008&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l29&quot; &gt;Line 29:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 29:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Encrypt the policyfile, and update the database to reflect the new policy&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Encrypt the policyfile, and update the database to reflect the new policy&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;tripwire --update-policy [-&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Z &lt;/del&gt;low] mypol.txt&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;tripwire --update-policy [-&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;-secure-mode &lt;/ins&gt;low] mypol.txt&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Then, tidy up temporary and backup files, and rerun an update to pick up changed files (as above).&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Then, tidy up temporary and backup files, and rerun an update to pick up changed files (as above).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>205.228.74.13</name></author>	</entry>

	<entry>
		<id>https://wiki.bretts.org/index.php?title=Tripwire&amp;diff=3228&amp;oldid=prev</id>
		<title>Admin: 2 revision(s)</title>
		<link rel="alternate" type="text/html" href="https://wiki.bretts.org/index.php?title=Tripwire&amp;diff=3228&amp;oldid=prev"/>
				<updated>2007-11-03T18:03:07Z</updated>
		
		<summary type="html">&lt;p&gt;2 revision(s)&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 18:03, 3 November 2007&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan='2' style='text-align: center;' lang='en'&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.bretts.org/index.php?title=Tripwire&amp;diff=3227&amp;oldid=prev</id>
		<title>205.228.74.12: /* Policy file */</title>
		<link rel="alternate" type="text/html" href="https://wiki.bretts.org/index.php?title=Tripwire&amp;diff=3227&amp;oldid=prev"/>
				<updated>2007-02-05T10:53:29Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Policy file&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 10:53, 5 February 2007&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l30&quot; &gt;Line 30:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 30:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;tripwire --update-policy [-Z low] mypol.txt&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;tripwire --update-policy [-Z low] mypol.txt&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;rm mypol.txt&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Then, tidy up temporary and backup files, and rerun an update to pick up changed files (as above).&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==== Policy Options ====&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==== Policy Options ====&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>205.228.74.12</name></author>	</entry>

	<entry>
		<id>https://wiki.bretts.org/index.php?title=Tripwire&amp;diff=3226&amp;oldid=prev</id>
		<title>192.168.1.64 at 14:06, 3 February 2007</title>
		<link rel="alternate" type="text/html" href="https://wiki.bretts.org/index.php?title=Tripwire&amp;diff=3226&amp;oldid=prev"/>
				<updated>2007-02-03T14:06:16Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Checking for changes ==&lt;br /&gt;
This looks at all the files specified in the policyfile, and compares their fingerprints with those in the tripwire database. It also saves a copy of the report in /var/lib/tripwire/reports&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
tripwire --check [--email-report]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Updating after known changes (eg. '''apt-get upgrade''') ==&lt;br /&gt;
To use a recently generated report as the basis for the files to update (you can choose to update or not update&lt;br /&gt;
fingerprints for any of the files marked as changed on the recent report):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
tripwire --update --twrfile /var/lib/tripwire/report/recent-report.twr&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or to generate a report and then identify desired or undesired changes (this is equivalent to both of the commands in the sections above):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
tripwire --check --interactive&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Changing tripwire configuration ==&lt;br /&gt;
&lt;br /&gt;
=== Policy file ===&lt;br /&gt;
This file details the files to be watched for changes, and so is the most common configuration change.&lt;br /&gt;
* Create a plaintext version of the policy file&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
twadmin --print-polfile &amp;gt; mypol.txt&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Edit '''mypol.txt'''&lt;br /&gt;
&lt;br /&gt;
* Encrypt the policyfile, and update the database to reflect the new policy&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
tripwire --update-policy [-Z low] mypol.txt&lt;br /&gt;
rm mypol.txt&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Policy Options ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
-     Ignore the following properties&lt;br /&gt;
+     Record and check the following properties&lt;br /&gt;
a     Access timestamp&lt;br /&gt;
b     Number of blocks allocated&lt;br /&gt;
c     Inode timestamp (create/modify)&lt;br /&gt;
d     ID of device on which inode resides&lt;br /&gt;
g     File owner's group ID&lt;br /&gt;
i     Inode number&lt;br /&gt;
l     File is increasing in size (a &amp;quot;growing file&amp;quot;)&lt;br /&gt;
m     Modification timestamp&lt;br /&gt;
n     Number of links (inode reference count)&lt;br /&gt;
p     Permissions and file mode bits&lt;br /&gt;
r     ID of device pointed to by inode (valid only for device objects)&lt;br /&gt;
s     File size&lt;br /&gt;
t     File type&lt;br /&gt;
u     File owner's user ID&lt;br /&gt;
C     CRC-32 hash value&lt;br /&gt;
H     Haval hash value&lt;br /&gt;
M     MD5 hash value&lt;br /&gt;
S     SHA hash value&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Builtin variables ====&lt;br /&gt;
;ReadOnly&lt;br /&gt;
:ReadOnly is good for files that are widely available but are intended to be read-only. Value: '''+pinugtsdbmCM-rlacSH'''&lt;br /&gt;
;Dynamic&lt;br /&gt;
:Dynamic is good for monitoring user directories and files that tend to be dynamic in behavior. Value: '''+pinugtd-srlbamcCMSH'''&lt;br /&gt;
;Growing&lt;br /&gt;
:The Growing variable is intended for files that should only get larger. Value: '''+pinugtdl-srbamcCMSH''' &lt;br /&gt;
;Device&lt;br /&gt;
:Device is good for devices or other files that Tripwire should not attempt to open. Value: '''+pugsdr-intlbamcCMSH''' &lt;br /&gt;
;IgnoreAll&lt;br /&gt;
:IgnoreAll tracks a file's presence or absence, but doesn't check any other properties. Value: '''-pinugtsdrlbamcCMSH''' &lt;br /&gt;
;IgnoreNone&lt;br /&gt;
:IgnoreNone turns on all properties and provides a convenient starting point for defining your own property masks (for example, mymask = $(IgnoreNone) -ar;). Value: '''+pinugtsdrbamcCMSH-l'''&lt;br /&gt;
&lt;br /&gt;
=== Configuration file ===&lt;br /&gt;
This file only stores basic settings about the site keys, the location of the various tripwire files etc,&lt;br /&gt;
and so shouldn't often need changing.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
twadmin --print-cfgfile &amp;gt; mycfg.txt&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Edit '''mycfg.txt'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
twadmin --create-polfile mycfg.txt&lt;br /&gt;
rm mypol.txt&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Common Options ====&lt;br /&gt;
;EMAILNOVIOLATIONS&lt;br /&gt;
:Send a report email even if no files were reported changed&lt;br /&gt;
&lt;br /&gt;
;LOOSEDIRECTORYCHECKING&lt;br /&gt;
:Only report changes to files, not to contents of directories&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
Intrustion Detection for the Masses: http://www.linuxjournal.com/article/4718&lt;br /&gt;
HOWTO - Setting up tripwire: http://www.alwanza.com/howto/linux/tripwire.html&lt;/div&gt;</summary>
		<author><name>192.168.1.64</name></author>	</entry>

	</feed>