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