{"id":3960,"date":"2015-12-19T01:33:48","date_gmt":"2015-12-18T17:33:48","guid":{"rendered":"https:\/\/www.darknet.org.uk\/?p=3960"},"modified":"2015-12-19T01:33:58","modified_gmt":"2015-12-18T17:33:58","slug":"integrit-file-verification-system","status":"publish","type":"post","link":"https:\/\/www.darknet.org.uk\/2015\/12\/integrit-file-verification-system\/","title":{"rendered":"Integrit – File Verification System"},"content":{"rendered":"

Integrit is a file verification system, a simple yet secure alternative to products like tripwire. It has a small memory footprint, uses up-to-date cryptographic algorithms, and has features that make sense (like including the MD5 checksum of newly generated databases in the report).<\/p>\n

\"Integrit<\/p>\n

The Integrit system detects intrusion by detecting when trusted files have been altered.<\/p>\n

By creating an Integrit database (update mode) that is a snapshot of a host system in a known state, the host’s files can later be verified as unaltered by running integrit in check mode to compare current state to the recorded known state. Integrit can do a check and an update simultaneously.<\/p>\n

Other options are:<\/p>\n

AIDE \u2013 Advanced Intrusion Detection Environment<\/a>
\n–
Tiger \u2013 Unix Security Audit & Intrusion Detection Tool<\/a>
\n–
Samhain v.2.5.9c \u2013 Open Source Host-Based Intrusion Detection System (HIDS)<\/a>
\n–
OSSEC HIDS \u2013 Open Source Host-based Intrusion System<\/a><\/p>\n

Usage<\/h3>\n

Using a product like Integrit for intrusion detection is a continuous process, involving a sequence something like the following:<\/p>\n

    \n
  1. Generate a new current-state database while checking against an old known-state database that has been protected from modification (This step can be done unattended, since the report that integrit generates at runtime includes the MD5 checksum of the newly-generated current-state database. The output should be directed to a remote host, e.g., via a trusted sendmail binary.) *<\/strong> <\/li>\n
  2. Read the report, possibly using UN*X or XML tools to massage it into a form to your liking (There is an example GUI viewer for integrit’s XML output in the examples directory of the distribution.)<\/li>\n
  3. If the report looks fine, copy the new database to a secure server for export via read-only NFS, or a secure medium that can be made read-only.<\/li>\n
  4. Verify that the current md5sum of the database you just copied over matches the MD5 checksum in the report. (This shows that no one has tampered with the database since the report and the new database were generated.)<\/li>\n
  5. Everything’s OK, so the new database will be the known-state database the next time you repeat this process.<\/li>\n<\/ol>\n

    *<\/strong> You may use a script to renice the Integrit process and possibly do a sequence of runs, each with a different configuration file.<\/em><\/p>\n

    Output<\/h3>\n

    The human-readable format is intended for quick scanning on a viewer with a large number of columns (like an xterm with maximized width).<\/p>\n

    Other popular file integrity verification systems split the information between a list of files that have changed at the top of the report and a more detailed section showing the nature of the changes at the bottom of the report. Instead, integrit provides all the information for each file as it learns it.<\/p>\n

    Besides saving on runtime memory usage, the big advantage of this approach is that the person reading the output never has to skip to the end of the report to learn the exact nature of a change.<\/p>\n

    You can download integrit here:<\/p>\n

    integrit-4.1.tar.gz<\/a><\/p>\n

    Or read more here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"

    Integrit is a file verification system, a simple yet secure alternative to products like tripwire. It has a small memory footprint, uses up-to-date cryptographic algorithms, and has features that make sense (like including the MD5 checksum of newly generated databases in the report). The Integrit system detects intrusion by detecting when trusted files have been […]<\/p>\n","protected":false},"author":25,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"Integrit is a file verification system, a simple yet secure alternative to products like tripwire.It has a small memory footprint & uses modern algorithms.","_seopress_robots_index":"","_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[12,11],"tags":[544],"featured_image_src":null,"featured_image_src_square":null,"author_info":{"display_name":"Darknet","author_link":"https:\/\/www.darknet.org.uk\/author\/darknet\/"},"_links":{"self":[{"href":"https:\/\/www.darknet.org.uk\/wp-json\/wp\/v2\/posts\/3960"}],"collection":[{"href":"https:\/\/www.darknet.org.uk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.darknet.org.uk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.darknet.org.uk\/wp-json\/wp\/v2\/users\/25"}],"replies":[{"embeddable":true,"href":"https:\/\/www.darknet.org.uk\/wp-json\/wp\/v2\/comments?post=3960"}],"version-history":[{"count":0,"href":"https:\/\/www.darknet.org.uk\/wp-json\/wp\/v2\/posts\/3960\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.darknet.org.uk\/wp-json\/wp\/v2\/media?parent=3960"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.darknet.org.uk\/wp-json\/wp\/v2\/categories?post=3960"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.darknet.org.uk\/wp-json\/wp\/v2\/tags?post=3960"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}