LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 04-19-2005, 05:42 PM   #1
rumex
LQ Newbie
 
Registered: Feb 2005
Location: UK
Distribution: Fedora Core 3
Posts: 5

Rep: Reputation: 0
tripwire: paranoid setup - key file vulnerability?


Should the site.key and <hostname>-local.key files be deleted following --init?

Following installing and initialising Tripwire. There are a number of files that may pose a security threat if not deleted. The twpol.txt and twcfg.txt definately need to be deleted.
The site.key and <hostname>-local.key files are needed to perform a cron initiated --check. However the existence of the site.key allows the twpol.txt to be recreated from the tw.pol file (without the entry of a passphrase). Thus an intruder who has root privilege's can avoid detection by modifying a file I am not checking.

Which files can safely be readable to an intruder?
Can I have a cron --check job without compromising my system?
Should I run two parallel tripwire databases, one paranoid on a CD-R and one for daily checks. Can anyone suggest a lightweight policy set for daily checks?
 
Old 04-19-2005, 07:43 PM   #2
vineet.k
LQ Newbie
 
Registered: Apr 2005
Distribution: RedHat
Posts: 17

Rep: Reputation: 1
Remote tripwire check

1) Type the following in a file named "remtripcheck"

#!/usr/bin/expect --

set timeout 180
set machine [lindex $argv 0]
set password [lindex $argv 1]
spawn ssh root@$machine tripwire --check
expect "root@$machine's password: "
send "$password\n"
interact

2) make it an executable script

chmod 711 remtripcheck

3) Make it a command

mv remtripcheck /bin

4)then If you want to run tripwire check on any remote machine, the syntax is

remtripcheck <Mach ip address> <root password>

5) Done

Now you can write another script to execute this command in your machines cron rather than on the machine where the tripwire is installed.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting wep key and essid setup on bootup in linux kernel info here if you need it MaximalSbcYahoo Debian 1 04-10-2005 03:12 PM
KDE key shortcut file atheist Linux - Software 1 05-23-2004 12:14 PM
End Of File Key (EOF) in linux ereeno Linux - Software 3 08-05-2003 03:05 AM
tripwire reports /usr/sbin/tripwire changed alfaalfabeta Linux - Security 5 07-22-2003 05:52 PM
WEP 128 key - how to setup? pr1sg Linux - Wireless Networking 2 07-17-2003 07:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 05:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration