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