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