Open Source Tripwire® is a security and data integrity tool for monitoring. Ago #36 Tripwire Install in Kubernetes Opened by Mohitg06 over 1 year ago.
{ Setting up tripwire }
Section 0. Background Information |
Section 1. Play the Fedora Virtual Machine |
Section 2. Login to your Fedora14 server. |
Section 3. Installing perl |
Section 4. Installing tripwire |
Section 5. Initialize tripwire |
Section 6. Reducing False Positives |
#!/usr/bin/perl
#Path to tripwire policy backup file
$policy_file = '/etc/tripwire/twpol.txt.BKP';
#Put tripwire policy file into an array
@CONTENT = `cat $policy_file`;
#False Positive Entries we want to ignore
@IGNORE_LIST = `awk '{print $2}' /var/tmp/firstrun.txt`;
#Open a new file called twpol.txt
open(NEWFILE,'>/etc/tripwire/twpol.txt');
#Go through each line in the twpol.txt.BKP file
foreach my $line (@CONTENT)
{
#Chop off the hard return at the end of each line
chomp($line);
#Reset IGNORE_FLAG before each check
my $IGNORE_FLAG = 'F';
#Then check the line against the ignore list
foreach my $entry (@IGNORE_LIST)
{
#Chop off the hard return at the end of each line
chomp($entry);
#Compare tripwire line against each ignore list line
if(($line =~ m/s$entrys/)&&($line =~ m/-> $/))
{
#Setting the FLAG to true means a match was found
$IGNORE_FLAG = 'T';
print '[Ignoring]: $linen';
}
}
if($IGNORE_FLAG eq 'F')
{
#Write policy entry to file, if not found in the ignore list
print NEWFILE '$linen';
}
}
close(NEWFILE);
Section 7. Re-initialize tripwire policy |
Section 8. Setting up cron |
Section: Proof of Lab |
While it is recommended that
Locate the
Locate the
Type
After installing the
We recommend you read the release notes and
The
Run the configuration script
Once encoded and signed, the configuration file should not be renamed or moved.
Initialize the
Run the first integrity check. (
Edit the configuration file (
Edit the policy file (
If you plan to modify the policy file, we recommend you do so before running the configuration script. If you modify the policy file after running the configuration script, you must re-run the configuration file before initializing the database file.