source: postlfs/security/tripwire.xml@ 2ee0a026

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 2ee0a026 was 2ee0a026, checked in by Bruce Dubbs <bdubbs@…>, 18 years ago

Updated to tripwire-2.4.0.1

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@5848 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 11.7 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY tripwire-download-http "http://prdownloads.sourceforge.net/tripwire/tripwire-&tripwire-version;-src.tar.bz2?download">
8 <!ENTITY tripwire-download-ftp " ">
9 <!ENTITY tripwire-md5sum "b371f79ac23cacc9ad40b1da76b4a0c4">
10 <!ENTITY tripwire-size "1.2 MB">
11 <!ENTITY tripwire-buildsize "37 MB">
12 <!ENTITY tripwire-time "1.6 SBU">
13]>
14
15<sect1 id="tripwire" xreflabel="Tripwire-&tripwire-version;">
16 <?dbhtml filename="tripwire.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 <keywordset>
22 <keyword role="package">tripwire-&tripwire-version;.tar</keyword>
23 <keyword role="ftpdir">tripwire</keyword>
24 </keywordset>
25 </sect1info>
26
27 <title>Tripwire-&tripwire-version;</title>
28
29 <indexterm zone="tripwire">
30 <primary sortas="a-Tripwire">Tripwire</primary>
31 </indexterm>
32
33 <sect2 role="package">
34 <title>Introduction to Tripwire</title>
35
36 <para>The <application>Tripwire</application> package contains programs
37 used to verify the integrity of the files on a given system.</para>
38
39 <bridgehead renderas="sect3">Package Information</bridgehead>
40 <itemizedlist spacing="compact">
41 <listitem>
42 <para>Download (HTTP): <ulink url="&tripwire-download-http;"/></para>
43 </listitem>
44 <listitem>
45 <para>Download (FTP): <ulink url="&tripwire-download-ftp;"/></para>
46 </listitem>
47 <listitem>
48 <para>Download MD5 sum: &tripwire-md5sum;</para>
49 </listitem>
50 <listitem>
51 <para>Download size: &tripwire-size;</para>
52 </listitem>
53 <listitem>
54 <para>Estimated disk space required: &tripwire-buildsize;</para>
55 </listitem>
56 <listitem>
57 <para>Estimated build time: &tripwire-time;</para>
58 </listitem>
59 </itemizedlist>
60
61 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
62 <itemizedlist spacing="compact">
63 <listitem>
64 <para>Required patch:
65 <ulink url="&patch-root;/tripwire/tripwire-&tripwire-version;-gcc4_build_fixes-1.patch"/>
66 </para>
67 </listitem>
68 </itemizedlist>
69
70 <bridgehead renderas="sect3">Tripwire Dependencies</bridgehead>
71
72 <bridgehead renderas="sect4">Optional</bridgehead>
73 <para role="optional">MTA (See <xref linkend="server-mail"/>)</para>
74
75 <para condition="html" role="usernotes">User Notes:
76 <ulink url="&blfs-wiki;/tripwire"/></para>
77
78 </sect2>
79
80 <sect2 role="installation">
81 <title>Installation of Tripwire</title>
82
83 <para>Compile <application>Tripwire</application> by running the following
84 commands:</para>
85
86<screen><userinput>ln -s contrib install &amp;&amp;
87patch -Np1 -i ../tripwire-&tripwire-version;-gcc4_build_fixes-1.patch &amp;&amp;
88sed -i -e 's@TWDB="${prefix}@TWDB="/var@' install/install.cfg &amp;&amp;
89./configure --prefix=/usr --sysconfdir=/etc/tripwire &amp;&amp;
90make</userinput></screen>
91
92 <warning><para>The default configuration is to use a local MTA. If
93 you don't have an MTA installed and have no wish to install
94 one, modify <filename>install/install.cfg</filename> to use an SMTP
95 server instead. Otherwise the install will fail.</para></warning>
96
97 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
98
99<screen role="root"><userinput>make install &amp;&amp;
100cp -v policy/*.txt /usr/share/doc/tripwire</userinput></screen>
101
102 </sect2>
103
104 <sect2 role="commands">
105 <title>Command Explanations</title>
106
107 <para><command>ln -s contrib install</command>: This command creates
108 a symbolic link in the build directory needed for installation.</para>
109
110 <para><command>sed -i -e 's@TWDB="${prefix}@TWDB="/var@'
111 install/install.cfg</command>: This command tells the package to install
112 the program database and reports in
113 <filename class="directory">/var/lib/tripwire</filename>.</para>
114
115 <para><command>make install</command>: This command creates the
116 <application>Tripwire</application> security keys as well as installing
117 the binaries. There are two keys: a site key and a local key which are
118 stored in <filename class="directory">/etc/tripwire/</filename>.</para>
119
120 <para><command>cp -v policy/*.txt /usr/share/doc/tripwire</command>: This
121 command installs the documentation.</para>
122
123 </sect2>
124
125 <sect2 role="configuration">
126 <title>Configuring Tripwire</title>
127
128 <sect3 id="tripwire-config">
129 <title>Config Files</title>
130
131 <para><filename>/etc/tripwire/*</filename></para>
132
133 <indexterm zone="tripwire tripwire-config">
134 <primary sortas="e-etc-tripwire">/etc/tripwire/*</primary>
135 </indexterm>
136
137 </sect3>
138
139 <sect3>
140 <title>Configuration Information</title>
141
142 <para><application>Tripwire</application> uses a policy file to
143 determine which files are integrity checked. The default policy
144 file (<filename>/etc/tripwire/twpol.txt</filename>) is for a
145 default Redhat installation and will need to be updated for your
146 system.</para>
147
148 <para>Policy files should be tailored to each individual distribution
149 and/or installation. Some custom policy files can be found below:</para>
150
151<literallayout><ulink url="http://home.iprimus.com.au/glombowski/blfs/twpol-all.txt"/>
152Checks integrity of all files
153<ulink url="http://home.iprimus.com.au/glombowski/blfs/twpol-lfs.txt"/>
154Custom policy file for Base LFS 3.0 system
155<ulink url="http://home.iprimus.com.au/glombowski/blfs/twpol-suse7.2.txt"/>
156Custom policy file for SuSE 7.2 system</literallayout>
157
158 <para>Download the custom policy file you'd like to try, copy it into
159 <filename class="directory">/etc/tripwire/</filename>, and use it instead
160 of <filename>twpol.txt</filename>. It is, however, recommended that you
161 make your own policy file. Get ideas from the examples above and read
162 <filename>/usr/share/doc/tripwire/policyguide.txt</filename> for
163 additional information. <filename>twpol.txt</filename> is a good policy
164 file for beginners as it will note any changes to the file system and can
165 even be used as an annoying way of keeping track of changes for
166 uninstallation of software.</para>
167
168 <para>After your policy file has been transferred to
169 <filename class="directory">/etc/tripwire/</filename> you may begin
170 the configuration steps (perform as the
171 <systemitem class='username'>root</systemitem>):</para>
172
173<screen role="root"><userinput>twadmin --create-polfile --site-keyfile /etc/tripwire/site.key \
174 /etc/tripwire/twpol.txt &amp;&amp;
175tripwire --init</userinput></screen>
176
177 </sect3>
178
179 <sect3>
180 <title>Usage Information</title>
181
182 <para>To use <application>Tripwire</application> after creating a policy
183 file to run a report, use the following command:</para>
184
185<screen role="root"><userinput>tripwire --check &gt; /etc/tripwire/report.txt</userinput></screen>
186
187 <para>View the output to check the integrity of your files. An automatic
188 integrity report can be produced by using a cron facility to schedule
189 the runs.</para>
190
191 <para>Please note that after you run an integrity check, you must
192 examine the report (or email) and then modify the
193 <application>Tripwire</application> database to reflect the changed
194 files on your system. This is so that <application>Tripwire</application>
195 will not continually notify you that files you intentionally changed are
196 a security violation. To do this you must first <command>ls -l
197 /var/lib/tripwire/report/</command> and note the name of the newest file
198 which starts with <filename>linux-</filename> and ends in
199 <filename>.twr</filename>. This encrypted file was created during the
200 last report creation and is needed to update the
201 <application>Tripwire</application> database of your system. Then, as the
202 <systemitem class='username'>root</systemitem> user, type
203 in the following command making the appropriate substitutions for
204 <replaceable>&lt;?&gt;</replaceable>:</para>
205
206<screen role="root"><userinput>tripwire --update -twrfile \
207 /var/lib/tripwire/report/linux-<replaceable>&lt;???????&gt;</replaceable>-<replaceable>&lt;??????&gt;</replaceable>.twr</userinput></screen>
208
209 <para>You will be placed into <application>vim</application> with a copy
210 of the report in front of you. If all the changes were good, then just
211 type <command>:x</command> and after entering your local key, the database
212 will be updated. If there are files which you still want to be warned
213 about, remove the 'x' before the filename in the report and type
214 <command>:x</command>.</para>
215
216
217 <para>A good summary of tripwire operations can be found at
218 <ulink url="http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/ref-guide/ch-tripwire.html"/>.</para>
219
220 </sect3>
221
222 <sect3>
223 <title>Changing the Policy File</title>
224
225 <para>If you are unhappy with your policy file and would like to modify
226 it or use a new one, modify the policy file and then execute the following
227 commands as the <systemitem class='username'>root</systemitem> user:</para>
228
229<screen role="root"><userinput>twadmin --create-polfile /etc/tripwire/twpol.txt &amp;&amp;
230tripwire --init</userinput></screen>
231
232 </sect3>
233
234 </sect2>
235
236 <sect2 role="content">
237 <title>Contents</title>
238
239 <segmentedlist>
240 <segtitle>Installed Programs</segtitle>
241 <segtitle>Installed Libraries</segtitle>
242 <segtitle>Installed Directories</segtitle>
243
244 <seglistitem>
245 <seg>siggen, tripwire, twadmin, and twprint.</seg>
246 <seg>None</seg>
247 <seg>/etc/tripwire, /usr/share/doc/tripwire, and /var/lib/tripwire</seg>
248 </seglistitem>
249 </segmentedlist>
250
251 <variablelist>
252 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
253 <?dbfo list-presentation="list"?>
254 <?dbhtml list-presentation="table"?>
255
256 <varlistentry id="siggen">
257 <term><command>siggen</command></term>
258 <listitem>
259 <para>is a signature gathering utility that displays
260 the hash function values for the specified files.</para>
261 <indexterm zone="tripwire siggen">
262 <primary sortas="b-siggen">siggen</primary>
263 </indexterm>
264 </listitem>
265 </varlistentry>
266
267 <varlistentry id='tripwire-program'>
268 <term><command>tripwire</command></term>
269 <listitem>
270 <para>is the main file integrity checking program.</para>
271 <indexterm zone="tripwire tripwire">
272 <primary sortas="b-tripwire">tripwire</primary>
273 </indexterm>
274 </listitem>
275 </varlistentry>
276
277 <varlistentry id='twadmin'>
278 <term><command>twadmin</command></term>
279 <listitem>
280 <para>administrative and utility tool used to perform
281 certain administrative functions related to
282 <application>Tripwire</application> files and configuration
283 options.</para>
284 <indexterm zone="tripwire twadmin">
285 <primary sortas="b-twadmin">twadmin</primary>
286 </indexterm>
287 </listitem>
288 </varlistentry>
289
290 <varlistentry id='twprint'>
291 <term><command>twprint</command></term>
292 <listitem>
293 <para>prints <application>Tripwire</application>
294 database and report files in clear text format.</para>
295 <indexterm zone="tripwire twprint">
296 <primary sortas="b-twprint">twprint</primary>
297 </indexterm>
298 </listitem>
299 </varlistentry>
300
301 </variablelist>
302
303 </sect2>
304
305</sect1>
Note: See TracBrowser for help on using the repository browser.