[b4b71892] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[b4b71892] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[fce275e] | 7 | <!ENTITY tripwire-download-http "&sourceforge-repo;/tripwire/tripwire-&tripwire-version;-src.tar.bz2">
|
---|
[dc94017e] | 8 | <!ENTITY tripwire-download-ftp " ">
|
---|
[fb3d3afd] | 9 | <!ENTITY tripwire-md5sum "1147c278b528ed593023912c4b649a">
|
---|
| 10 | <!ENTITY tripwire-size "700 KB">
|
---|
| 11 | <!ENTITY tripwire-buildsize "28 MB">
|
---|
[2ee0a026] | 12 | <!ENTITY tripwire-time "1.6 SBU">
|
---|
[b4b71892] | 13 | ]>
|
---|
| 14 |
|
---|
[2ee0a026] | 15 | <sect1 id="tripwire" 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 |
|
---|
[2ee0a026] | 25 | <indexterm zone="tripwire">
|
---|
[1503942] | 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 |
|
---|
[2f00f964] | 59 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 60 | <para role="required"><xref linkend="openssl"/></para>
|
---|
[7f5c97e] | 61 |
|
---|
[2f00f964] | 62 |
|
---|
[1503942] | 63 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[7f5c97e] | 64 | <para role="optional">An <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 |
|
---|
[fb3d3afd] | 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 |
|
---|
[2ee0a026] | 81 | <warning><para>The default configuration is to use a local MTA. If
|
---|
| 82 | you don't have an MTA installed and have no wish to install
|
---|
| 83 | one, modify <filename>install/install.cfg</filename> to use an SMTP
|
---|
| 84 | server instead. Otherwise the install will fail.</para></warning>
|
---|
[7f5c97e] | 85 |
|
---|
[fb3d3afd] | 86 | <para>This package does not come with a test suite.</para>
|
---|
| 87 |
|
---|
[1503942] | 88 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[305e60de] | 89 |
|
---|
[1503942] | 90 | <screen role="root"><userinput>make install &&
|
---|
[fb3d3afd] | 91 | cp -v policy/*.txt /usr/doc/tripwire</userinput></screen>
|
---|
[b4b71892] | 92 |
|
---|
[1503942] | 93 | </sect2>
|
---|
[b4b71892] | 94 |
|
---|
[1503942] | 95 | <sect2 role="commands">
|
---|
| 96 | <title>Command Explanations</title>
|
---|
[b4b71892] | 97 |
|
---|
[1503942] | 98 | <para><command>sed -i -e 's@TWDB="${prefix}@TWDB="/var@'
|
---|
| 99 | install/install.cfg</command>: This command tells the package to install
|
---|
| 100 | the program database and reports in
|
---|
| 101 | <filename class="directory">/var/lib/tripwire</filename>.</para>
|
---|
[b4b71892] | 102 |
|
---|
[1503942] | 103 | <para><command>make install</command>: This command creates the
|
---|
| 104 | <application>Tripwire</application> security keys as well as installing
|
---|
| 105 | the binaries. There are two keys: a site key and a local key which are
|
---|
| 106 | stored in <filename class="directory">/etc/tripwire/</filename>.</para>
|
---|
[b4b71892] | 107 |
|
---|
[cffe62a2] | 108 | <para><command>cp -v policy/*.txt /usr/doc/tripwire</command>: This command
|
---|
| 109 | installs the <application>tripwire</application> sample policy files with
|
---|
| 110 | the other <application>tripwire</application> documentation.</para>
|
---|
[b4b71892] | 111 |
|
---|
[1503942] | 112 | </sect2>
|
---|
[b4b71892] | 113 |
|
---|
[1503942] | 114 | <sect2 role="configuration">
|
---|
| 115 | <title>Configuring Tripwire</title>
|
---|
[b4b71892] | 116 |
|
---|
[1503942] | 117 | <sect3 id="tripwire-config">
|
---|
| 118 | <title>Config Files</title>
|
---|
[b4b71892] | 119 |
|
---|
[1503942] | 120 | <para><filename>/etc/tripwire/*</filename></para>
|
---|
[b4b71892] | 121 |
|
---|
[2ee0a026] | 122 | <indexterm zone="tripwire tripwire-config">
|
---|
[1503942] | 123 | <primary sortas="e-etc-tripwire">/etc/tripwire/*</primary>
|
---|
| 124 | </indexterm>
|
---|
[b4b71892] | 125 |
|
---|
[1503942] | 126 | </sect3>
|
---|
[e40cb61] | 127 |
|
---|
[1503942] | 128 | <sect3>
|
---|
| 129 | <title>Configuration Information</title>
|
---|
| 130 |
|
---|
| 131 | <para><application>Tripwire</application> uses a policy file to
|
---|
| 132 | determine which files are integrity checked. The default policy
|
---|
| 133 | file (<filename>/etc/tripwire/twpol.txt</filename>) is for a
|
---|
[fb3d3afd] | 134 | default installation and will need to be updated for your
|
---|
[1503942] | 135 | system.</para>
|
---|
| 136 |
|
---|
[cffe62a2] | 137 | <para>Policy files should be tailored to each individual distribution
|
---|
| 138 | and/or installation. Some example policy files can be found in <filename
|
---|
| 139 | class="directory">/usr/doc/tripwire/</filename> (Note that <filename
|
---|
| 140 | class="directory">/usr/doc/</filename> is a symbolic link on LFS systems
|
---|
| 141 | to <filename class="directory">/usr/share/doc/</filename>).</para>
|
---|
| 142 |
|
---|
| 143 | <para>If desired, copy the policy file you'd like to try into <filename
|
---|
| 144 | class="directory">/etc/tripwire/</filename> instead of using the default
|
---|
| 145 | policy file, <filename>twpol.txt</filename>. It is, however, recommended
|
---|
| 146 | that you edit your policy file. Get ideas from the examples above and
|
---|
| 147 | read <filename>/usr/doc/tripwire/policyguide.txt</filename> for
|
---|
| 148 | additional information. <filename>twpol.txt</filename> is a good policy
|
---|
| 149 | file for learning about <application>Tripwire</application> as it will
|
---|
| 150 | note any changes to the file system and can even be used as an annoying
|
---|
| 151 | way of keeping track of changes for uninstallation of software.</para>
|
---|
| 152 |
|
---|
| 153 | <para>After your policy file has been edited to your satisfaction you may
|
---|
| 154 | begin the configuration steps (perform as the <systemitem
|
---|
[4d3e5f1] | 155 | class='username'>root</systemitem>) user:</para>
|
---|
[1503942] | 156 |
|
---|
| 157 | <screen role="root"><userinput>twadmin --create-polfile --site-keyfile /etc/tripwire/site.key \
|
---|
[dd362e5] | 158 | /etc/tripwire/twpol.txt &&
|
---|
[1503942] | 159 | tripwire --init</userinput></screen>
|
---|
| 160 |
|
---|
[fb3d3afd] | 161 | <para>Depending on your system and the contents of the policy file, the
|
---|
[cffe62a2] | 162 | initialization phase above can take a relatively long time.</para>
|
---|
[fb3d3afd] | 163 |
|
---|
[1503942] | 164 | </sect3>
|
---|
| 165 |
|
---|
| 166 | <sect3>
|
---|
| 167 | <title>Usage Information</title>
|
---|
| 168 |
|
---|
[cffe62a2] | 169 | <para><application>Tripwire</application> will identify file changes in
|
---|
| 170 | the critical system files specified in the policy file. Using
|
---|
| 171 | <application>Tripwire</application> while making frequent changes to
|
---|
| 172 | these directories will flag all these changes. It is most useful after a
|
---|
| 173 | system has reached a configuration that the user considers stable.</para>
|
---|
[fb3d3afd] | 174 |
|
---|
[cffe62a2] | 175 | <para>To use <application>Tripwire</application> after creating a policy
|
---|
| 176 | file to run a report, use the following command:</para>
|
---|
[1503942] | 177 |
|
---|
| 178 | <screen role="root"><userinput>tripwire --check > /etc/tripwire/report.txt</userinput></screen>
|
---|
| 179 |
|
---|
[cffe62a2] | 180 | <para>View the output to check the integrity of your files. An automatic
|
---|
| 181 | integrity report can be produced by using a cron facility to schedule the
|
---|
| 182 | runs.</para>
|
---|
[fb3d3afd] | 183 |
|
---|
[410e228b] | 184 | <para>Reports are stored in binary and, if desired, encrypted. View reports,
|
---|
[cffe62a2] | 185 | as the <systemitem class="username">root</systemitem> user, with:</para>
|
---|
[fb3d3afd] | 186 |
|
---|
| 187 | <screen role="root">twprint --print-report -r /var/lib/tripwire/report/<replaceable><report-name.twr></replaceable></screen>
|
---|
| 188 |
|
---|
[cffe62a2] | 189 | <para>After you run an integrity check, you should examine the
|
---|
| 190 | report (or email) and then modify the <application>Tripwire</application>
|
---|
| 191 | database to reflect the changed files on your system. This is so that
|
---|
| 192 | <application>Tripwire</application> will not continually notify you that
|
---|
| 193 | files you intentionally changed are a security violation. To do this you
|
---|
| 194 | must first <command>ls -l /var/lib/tripwire/report/</command> and note
|
---|
| 195 | the name of the newest file which starts with your system name as
|
---|
| 196 | presented by the command <userinput>uname -n</userinput>
|
---|
| 197 | and ends in <filename>.twr</filename>. These files were created
|
---|
| 198 | during report creation and the most current one is needed to update the
|
---|
| 199 | <application>Tripwire</application> database of your system. As the
|
---|
| 200 | <systemitem class='username'>root</systemitem> user, type in the
|
---|
| 201 | following command making the appropriate report name:</para>
|
---|
[fb3d3afd] | 202 |
|
---|
| 203 | <screen role="root"><userinput>tripwire --update --twrfile /var/lib/tripwire/report/<replaceable><report-name.twr></replaceable></userinput></screen>
|
---|
[1503942] | 204 |
|
---|
[4d3e5f1] | 205 | <para>You will be placed into <application>Vim</application> with a copy
|
---|
[1503942] | 206 | of the report in front of you. If all the changes were good, then just
|
---|
[4751980e] | 207 | type <command>:wq</command> and after entering your local key, the database
|
---|
[1503942] | 208 | will be updated. If there are files which you still want to be warned
|
---|
| 209 | about, remove the 'x' before the filename in the report and type
|
---|
[c9d91e8a] | 210 | <command>:wq</command>.</para>
|
---|
[1503942] | 211 |
|
---|
[7f5c97e] | 212 | <para>A good summary of tripwire operations can be found at
|
---|
[2ee0a026] | 213 | <ulink url="http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/ref-guide/ch-tripwire.html"/>.</para>
|
---|
| 214 |
|
---|
[1503942] | 215 | </sect3>
|
---|
| 216 |
|
---|
| 217 | <sect3>
|
---|
| 218 | <title>Changing the Policy File</title>
|
---|
| 219 |
|
---|
| 220 | <para>If you are unhappy with your policy file and would like to modify
|
---|
| 221 | it or use a new one, modify the policy file and then execute the following
|
---|
[0bc6cf76] | 222 | commands as the <systemitem class='username'>root</systemitem> user:</para>
|
---|
[1503942] | 223 |
|
---|
| 224 | <screen role="root"><userinput>twadmin --create-polfile /etc/tripwire/twpol.txt &&
|
---|
| 225 | tripwire --init</userinput></screen>
|
---|
| 226 |
|
---|
| 227 | </sect3>
|
---|
| 228 |
|
---|
| 229 | </sect2>
|
---|
| 230 |
|
---|
| 231 | <sect2 role="content">
|
---|
| 232 | <title>Contents</title>
|
---|
| 233 |
|
---|
| 234 | <segmentedlist>
|
---|
| 235 | <segtitle>Installed Programs</segtitle>
|
---|
| 236 | <segtitle>Installed Libraries</segtitle>
|
---|
| 237 | <segtitle>Installed Directories</segtitle>
|
---|
| 238 |
|
---|
| 239 | <seglistitem>
|
---|
[fb3d3afd] | 240 | <seg>siggen, tripwire, twadmin, and twprint</seg>
|
---|
[1503942] | 241 | <seg>None</seg>
|
---|
[fb3d3afd] | 242 | <seg>/etc/tripwire, /var/lib/tripwire, and /usr/share/doc/tripwire</seg>
|
---|
[1503942] | 243 | </seglistitem>
|
---|
| 244 | </segmentedlist>
|
---|
| 245 |
|
---|
| 246 | <variablelist>
|
---|
| 247 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 248 | <?dbfo list-presentation="list"?>
|
---|
| 249 | <?dbhtml list-presentation="table"?>
|
---|
| 250 |
|
---|
| 251 | <varlistentry id="siggen">
|
---|
| 252 | <term><command>siggen</command></term>
|
---|
| 253 | <listitem>
|
---|
| 254 | <para>is a signature gathering utility that displays
|
---|
| 255 | the hash function values for the specified files.</para>
|
---|
[2ee0a026] | 256 | <indexterm zone="tripwire siggen">
|
---|
[1503942] | 257 | <primary sortas="b-siggen">siggen</primary>
|
---|
| 258 | </indexterm>
|
---|
| 259 | </listitem>
|
---|
| 260 | </varlistentry>
|
---|
| 261 |
|
---|
[2ee0a026] | 262 | <varlistentry id='tripwire-program'>
|
---|
[1503942] | 263 | <term><command>tripwire</command></term>
|
---|
| 264 | <listitem>
|
---|
| 265 | <para>is the main file integrity checking program.</para>
|
---|
[2ee0a026] | 266 | <indexterm zone="tripwire tripwire">
|
---|
[1503942] | 267 | <primary sortas="b-tripwire">tripwire</primary>
|
---|
| 268 | </indexterm>
|
---|
| 269 | </listitem>
|
---|
| 270 | </varlistentry>
|
---|
| 271 |
|
---|
| 272 | <varlistentry id='twadmin'>
|
---|
| 273 | <term><command>twadmin</command></term>
|
---|
| 274 | <listitem>
|
---|
| 275 | <para>administrative and utility tool used to perform
|
---|
| 276 | certain administrative functions related to
|
---|
| 277 | <application>Tripwire</application> files and configuration
|
---|
| 278 | options.</para>
|
---|
[2ee0a026] | 279 | <indexterm zone="tripwire twadmin">
|
---|
[1503942] | 280 | <primary sortas="b-twadmin">twadmin</primary>
|
---|
| 281 | </indexterm>
|
---|
| 282 | </listitem>
|
---|
| 283 | </varlistentry>
|
---|
| 284 |
|
---|
| 285 | <varlistentry id='twprint'>
|
---|
| 286 | <term><command>twprint</command></term>
|
---|
| 287 | <listitem>
|
---|
| 288 | <para>prints <application>Tripwire</application>
|
---|
| 289 | database and report files in clear text format.</para>
|
---|
[2ee0a026] | 290 | <indexterm zone="tripwire twprint">
|
---|
[1503942] | 291 | <primary sortas="b-twprint">twprint</primary>
|
---|
| 292 | </indexterm>
|
---|
| 293 | </listitem>
|
---|
| 294 | </varlistentry>
|
---|
| 295 |
|
---|
| 296 | </variablelist>
|
---|
| 297 |
|
---|
| 298 | </sect2>
|
---|
[e40cb61] | 299 |
|
---|
[f45b1953] | 300 | </sect1>
|
---|