{"id":2437,"date":"2016-01-03T23:14:02","date_gmt":"2016-01-03T14:14:02","guid":{"rendered":"http:\/\/tech.akat.info\/?p=2437"},"modified":"2016-01-03T23:17:05","modified_gmt":"2016-01-03T14:17:05","slug":"tripwire","status":"publish","type":"post","link":"https:\/\/tech.akat.info\/?p=2437","title":{"rendered":"Tripwire"},"content":{"rendered":"<h1>Tripwire\u3068\u306f<\/h1>\n<p>\u6539\u3056\u3093\u691c\u77e5\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2<br \/>\n\u6b63\u5e38\u306a\u72b6\u614b\u3067\u306e\u30b7\u30b9\u30c6\u30e0\u306e\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8(\u30d9\u30fc\u30b9\u30e9\u30a4\u30f3\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9)\u3092\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u4fdd\u5b58\u3057<br \/>\n\u73fe\u5728\u306e\u72b6\u614b\u3067\u306e\u30b7\u30b9\u30c6\u30e0\u306e\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3068\u6bd4\u8f03\u3059\u308b\u3053\u3068\u3067\u6539\u3056\u3093\u3092\u691c\u77e5\u3057\u307e\u3059<\/p>\n<p>\u30dd\u30ea\u30b7\u30fc\u3092\u8a18\u8ff0\u3057\u305f\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb(\u4ee5\u964d\u3001\u30dd\u30ea\u30b7\u30fc\u30d5\u30a1\u30a4\u30eb(\u5e73\u6587)\u3068\u547c\u3076)\u306e\u5185\u5bb9\u3092\u5143\u306b<br \/>\ntwadmin \u30b3\u30de\u30f3\u30c9\u3092\u5229\u7528\u3057\u3066\u4f5c\u6210\u3059\u308b<\/p>\n<h1>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h1>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nroot@hostname:\/home\/shimizu# aptitude install tripwire\r\n\u4ee5\u4e0b\u306e\u65b0\u898f\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059:\r\n  tripwire\r\n...\r\n<\/pre>\n<p><a href=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2016\/01\/2016-01-03_183355.png\" rel=\"attachment wp-att-2445\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2016\/01\/2016-01-03_183355.png\" alt=\"2016-01-03_183355\" width=\"300\" height=\"212\" class=\"alignnone size-medium wp-image-2445\" \/><\/a><\/p>\n<p><a href=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2016\/01\/2016-01-03_183423.png\" rel=\"attachment wp-att-2444\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2016\/01\/2016-01-03_183423.png\" alt=\"2016-01-03_183423\" width=\"300\" height=\"210\" class=\"alignnone size-medium wp-image-2444\" \/><\/a><\/p>\n<p><a href=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2016\/01\/2016-01-03_183447.png\" rel=\"attachment wp-att-2443\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2016\/01\/2016-01-03_183447.png\" alt=\"2016-01-03_183447\" width=\"300\" height=\"212\" class=\"alignnone size-medium wp-image-2443\" \/><\/a><\/p>\n<p><a href=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2016\/01\/2016-01-03_183506.png\" rel=\"attachment wp-att-2442\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2016\/01\/2016-01-03_183506.png\" alt=\"2016-01-03_183506\" width=\"300\" height=\"214\" class=\"alignnone size-medium wp-image-2442\" \/><\/a><\/p>\n<p>Generating site key (this may take several minutes)&#8230;<br \/>\n<a href=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2016\/01\/2016-01-03_183550.png\" rel=\"attachment wp-att-2441\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2016\/01\/2016-01-03_183550.png\" alt=\"2016-01-03_183550\" width=\"300\" height=\"213\" class=\"alignnone size-medium wp-image-2441\" \/><\/a><\/p>\n<p><a href=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2016\/01\/2016-01-03_183617.png\" rel=\"attachment wp-att-2440\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2016\/01\/2016-01-03_183617.png\" alt=\"2016-01-03_183617\" width=\"300\" height=\"211\" class=\"alignnone size-medium wp-image-2440\" \/><\/a><\/p>\n<p>Generating local key (this may take several minutes)&#8230;<br \/>\n<a href=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2016\/01\/2016-01-03_183700.png\" rel=\"attachment wp-att-2439\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2016\/01\/2016-01-03_183700.png\" alt=\"2016-01-03_183700\" width=\"300\" height=\"212\" class=\"alignnone size-medium wp-image-2439\" \/><\/a><\/p>\n<p><a href=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2016\/01\/2016-01-03_183724.png\" rel=\"attachment wp-att-2438\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2016\/01\/2016-01-03_183724.png\" alt=\"2016-01-03_183724\" width=\"300\" height=\"212\" class=\"alignnone size-full wp-image-2438\" \/><\/a><\/p>\n<h1>\u5229\u7528\u3057\u3066\u307f\u308b<\/h1>\n<p>\u672c\u6765\u3067\u3042\u308c\u3070\u30dd\u30ea\u30b7\u30fc\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066<br \/>\n\u305d\u308c\u306b\u5fdc\u3058\u3066\u30a2\u30e9\u30fc\u30c8\u3068\u3057\u305f\u308a\u3001\u30e1\u30fc\u30eb\u9001\u3063\u305f\u308a\u3067\u304d\u308b\u3088\u3046\u3060\u304c\u3001\u3001\u6df1\u8ffd\u3044\u306f\u3057\u306a\u3044(\u3000\uff65`\u03c9\uff65\u00b4)<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n### DB\u521d\u671f\u5316(\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3092\u53d6\u5f97) ###\r\nroot@hostname:\/home\/shimizu# tripwire --init\r\nPlease enter your local passphrase:\r\nParsing policy file: \/etc\/tripwire\/tw.pol\r\nGenerating the database...\r\n...\r\n\r\nThe object: &quot;\/proc\/sys\/fs\/binfmt_misc&quot; is on a different file system...ignoring.\r\nWrote database file: \/var\/lib\/tripwire\/hostname.twd\r\nThe database was successfully generated.\r\n\r\n### \u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u306e\u6bd4\u8f03\u3092\u3059\u308b ###\r\nroot@hostname:\/etc\/tripwire# tripwire --check\r\n\r\n...\r\n-------------------------------------------------------------------------------\r\n  Section: Unix File System\r\n-------------------------------------------------------------------------------\r\n\r\n  Rule Name                       Severity Level    Added    Removed  Modified\r\n  ---------                       --------------    -----    -------  --------\r\n  Other binaries                  66                0        0        0\r\n  Tripwire Binaries               100               0        0        0\r\n  Other libraries                 66                0        0        0\r\n  Root file-system executables    100               0        0        0\r\n* Tripwire Data Files             100               1        0        0\r\n  System boot changes             100               0        0        0\r\n  Root file-system libraries      100               0        0        0\r\n  (\/lib)\r\n  Critical system boot files      100               0        0        0\r\n* Other configuration files       66                2        0        1\r\n  (\/etc)\r\n  Boot Scripts                    100               0        0        0\r\n  Security Control                66                0        0        0\r\n* Root config files               100               0        0        5\r\n* Devices &amp; Kernel information    100               1098     1098     0\r\n  Invariant Directories           66                0        0        0\r\n\r\nTotal objects scanned:  47683\r\nTotal violations found:  2205\r\n\r\n===============================================================================\r\nObject Summary:\r\n===============================================================================\r\n\r\n-------------------------------------------------------------------------------\r\n# Section: Unix File System\r\n-------------------------------------------------------------------------------\r\n-------------------------------------------------------------------------------\r\nRule Name: Tripwire Data Files (\/var\/lib\/tripwire\/hostname.twd)\r\nSeverity Level: 100\r\n-------------------------------------------------------------------------------\r\n\r\nAdded:\r\n&quot;\/var\/lib\/tripwire\/hostname.twd&quot;\r\n\r\n-------------------------------------------------------------------------------\r\nRule Name: Other configuration files (\/etc)\r\nSeverity Level: 66\r\n-------------------------------------------------------------------------------\r\n\r\nAdded:\r\n&quot;\/etc\/tripwire\/report.txt&quot;\r\n&quot;\/etc\/tripwire\/delete&quot;\r\n\r\nModified:\r\n&quot;\/etc\/tripwire&quot;\r\n\r\n...\r\n<\/pre>\n<h1>\u53c2\u8003URL<\/h1>\n<p><a href=\"http:\/\/www.yukun.info\/blog\/2013\/12\/linux-tripwire-setting-check.html\">Linux: Tripwire\u306e\u904b\u7528\u30b5\u30a4\u30af\u30eb\u306e\u57fa\u672c \u2013 \u30dd\u30ea\u30b7\u30fc\u8a2d\u5b9a\u304b\u3089\u6539\u7ac4\u30c1\u30a7\u30c3\u30af\uff5eDB\u66f4\u65b0<\/a><br \/>\n<a href=\"https:\/\/vok.paburica.com\/index.php?tripwire%2FDebian%E3%81%B8%E3%81%AE%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB\">tripwire\/Debian\u3078\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Tripwire\u3068\u306f \u6539\u3056\u3093\u691c\u77e5\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2 \u6b63\u5e38\u306a\u72b6\u614b\u3067\u306e\u30b7\u30b9\u30c6\u30e0\u306e\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8(\u30d9\u30fc\u30b9\u30e9\u30a4\u30f3\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9)\u3092\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u4fdd\u5b58\u3057 \u73fe\u5728\u306e\u72b6\u614b\u3067\u306e\u30b7\u30b9\u30c6\u30e0\u306e\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3068\u6bd4\u8f03\u3059\u308b\u3053\u3068\u3067\u6539\u3056\u3093\u3092\u691c\u77e5\u3057\u307e\u3059 \u30dd\u30ea\u30b7 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[91],"tags":[],"_links":{"self":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/2437"}],"collection":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2437"}],"version-history":[{"count":3,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/2437\/revisions"}],"predecessor-version":[{"id":2448,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/2437\/revisions\/2448"}],"wp:attachment":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2437"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2437"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2437"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}