1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Intrusion detection by CRCing files

Discussion in 'Security' started by ma0, Mar 5, 2007.

  1. #1
    Someone knows a good 'n' easy software that makes CRC of every file on a certain directory in order to compare the CRCs with previous days CRCs.
    I'd like to use something like this on my shared host space, but I forgot the name of such software.

    I could probably do a script with 'cksum'..anyone did that?
     
    ma0, Mar 5, 2007 IP
  2. ma0

    ma0 Peon

    Messages:
    218
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    md5sum should do the same as cksum..
     
    ma0, Mar 5, 2007 IP
  3. ThreeGuineaWatch

    ThreeGuineaWatch Well-Known Member

    Messages:
    1,489
    Likes Received:
    69
    Best Answers:
    0
    Trophy Points:
    140
    #3
    mtree is the standard tool for this on BSD boxes. I am sure Loonix has a port too.

    Run,

    $ mtree -K sha256digest
    Code (markup):
    on the filesystem (or at the very least kernel and system binaries) and store it offline.
     
    ThreeGuineaWatch, Mar 12, 2007 IP
  4. ma0

    ma0 Peon

    Messages:
    218
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Unfortunately is not installed on my host :(
    I'll send a support request about it.
    Right now I am using
    find . -type f | xargs md5sum > results050307.txt
    
    Code (markup):
    But it gets even file I don't want to control, so it's a bit hard to check results.txt files by hand or diff..

    Anyway, I am not sure if I have to start it on binaries files..this should be the task of the hosting company. I'm not using my own server.
     
    ma0, Mar 13, 2007 IP
  5. sacx13

    sacx13 Active Member

    Messages:
    438
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    58
    #5
    the software is Tripwire ?

    Regards
     
    sacx13, Mar 14, 2007 IP
  6. ma0

    ma0 Peon

    Messages:
    218
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #6
    yes I think it was tripwire..but now I'm looking for something simpler, like a script or two .
     
    ma0, Mar 14, 2007 IP
  7. ThreeGuineaWatch

    ThreeGuineaWatch Well-Known Member

    Messages:
    1,489
    Likes Received:
    69
    Best Answers:
    0
    Trophy Points:
    140
    #7
    Well, if you are looking to protect only C++ source files (for example), then why not make that:

    find . -type f -name "*.cpp" | xargs md5sum > results050307.txt
    Code (markup):
    The other thing I notice you missed out is that you will need to get a hash of your results file - otherwise how will you know that has not also been tampered with? ;)
     
    ThreeGuineaWatch, Mar 14, 2007 IP
  8. ma0

    ma0 Peon

    Messages:
    218
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #8
    That could be a good example. But then a hacker could easily change just the .o files. Which is better 'cause you never open them so you don't really see the difference if he add some malicious code. Of course he has to change it every time I recompile.

    About your last question:
    scp resultsfile.txt localhost:/

    :)
     
    ma0, Mar 15, 2007 IP