{"id":15162,"date":"2017-09-26T21:30:13","date_gmt":"2017-09-26T12:30:13","guid":{"rendered":"https:\/\/sys-guard.com\/?p=15162"},"modified":"2017-09-27T14:03:52","modified_gmt":"2017-09-27T05:03:52","slug":"rhhunter%e3%81%ae%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab-rootkit%e3%82%92%e6%a4%9c%e7%9f%a5","status":"publish","type":"post","link":"https:\/\/sys-guard.com\/post-15162\/","title":{"rendered":"rkhunter\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb Rootkit\u3092\u691c\u77e5"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-15163img-responsive\" src=\"https:\/\/sys-guard.com\/contents\/wp-content\/uploads\/2017\/09\/rkhunter_20170926_1.jpg\" alt=\"rkhunter\" width=\"680\" height=\"356\" \/><\/p>\n<p>\u4eca\u56de\u306fRootkit\u3092\u691c\u77e5\u3059\u308brkhunter\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308bTips\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h2>Rootkit\u3063\u3066\u306a\u306b\u3082\u306e\uff1f<\/h2>\n<p>\u4e0d\u6b63\u4fb5\u5165\u3057\u305f\u30b5\u30fc\u30d0\u3067\u3001\u653b\u6483\u8005\u304c\u307e\u305a\u884c\u3046\u3053\u3068\u306f<strong>Rootkit<\/strong>\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002Rootkit\u306f\u30d0\u30c3\u30af\u30c9\u30a2\u3084\u30dc\u30c3\u30c8\u3092\u8a2d\u7f6e\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u7121\u52b9\u5316\u3059\u308b\u4e0d\u6b63\u653b\u6483\u7528\u306e\u30c4\u30fc\u30eb\u304c\u307e\u3068\u3081\u3089\u308c\u305f\u4e00\u63c3\u3044\u306e\u5ac1\u5165\u308a\u9053\u5177\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3>rkhunter\u306f\u305d\u306eRootkit\u306e\u75d5\u8de1\u3092\u691c\u77e5\u3057\u3066\u6559\u3048\u3066\u304f\u308c\u307e\u3059\u3002<\/h3>\n<p><strong>\u4f55\u5e74\u3082\u7ba1\u7406\u3055\u308c\u3066\u3044\u306a\u3044\u30b5\u30fc\u30d0<\/strong>\u3001\u4e16\u306e\u4e2d\u306b\u305f\u304f\u3055\u3093\u3042\u308a\u307e\u3059\u3002\u7ba1\u7406\u3055\u308c\u3066\u3044\u308b\u30b5\u30fc\u30d0\u3067\u3042\u3063\u3066\u3082\u4e0d\u6b63\u4fb5\u5165\u304b\u3089\u6c17\u4ed8\u304f\u306e\u306f\u65e9\u304f\u3066100\u65e5\u4ee5\u964d\u3068\u8a00\u308f\u308c\u3066\u3044\u307e\u3059\u3002RootKit\u691c\u77e5\u30c4\u30fc\u30eb\u306b\u3088\u3063\u3066\u7570\u5e38\u3092\u611f\u77e5\u3057\u3001<strong>\u65e9\u671f\u767a\u898b\u304c\u88ab\u5bb3\u3092\u6700\u5c0f\u5316<\/strong>\u3057\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<pre class=\"lang:default decode:true \"># yum install epel-release\r\n\r\n# yum --enablerepo=epel install rkhunter<\/pre>\n<p>&nbsp;<\/p>\n<h2>\u30a8\u30e9\u30fc\u5bfe\u7b56<\/h2>\n<blockquote><p>Warning: Checking for prerequisites [ Warning ]\nUnable to find &#8216;file&#8217; command &#8211; all script replacement checks will be skipped.<br \/>\nWarning: The SSH and rkhunter configuration options should be the same:<br \/>\nSSH configuration option &#8216;PermitRootLogin&#8217;: no<br \/>\nRkhunter configuration option &#8216;ALLOW_SSH_ROOT_USER&#8217;: unset<\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<pre class=\"lang:default decode:true \"># vi \/etc\/rkhunter.conf\r\n\r\n\r\n#ALLOW_SSH_ROOT_USER=no\r\nALLOW_SSH_ROOT_USER=unset\r\n\r\n\u2193\u5909\u66f4\r\n\r\n#ALLOW_SSH_ROOT_USER=no\r\n#ALLOW_SSH_ROOT_USER=unset\r\nALLOW_SSH_ROOT_USER=no<\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"lang:default decode:true \"># yum install file<\/pre>\n<p>&nbsp;<\/p>\n<h4>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8<\/h4>\n<p>&nbsp;<\/p>\n<p>\u30b7\u30b9\u30c6\u30e0\u306e\u30d5\u30a1\u30a4\u30eb\u60c5\u5831\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8<\/p>\n<pre class=\"lang:default decode:true \"># rkhunter --propupd\r\n\r\n[ Rootkit Hunter version 1.4.4 ]\r\nFile created: searched for 174 files, found 121<\/pre>\n<p>&nbsp;<\/p>\n<p>\u691c\u77e5\u5bfe\u8c61\u60c5\u5831\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8<\/p>\n<pre class=\"lang:default decode:true\"># rkhunter --update\r\n\r\n[ Rootkit Hunter version 1.4.4 ]\r\n\r\nChecking rkhunter data files...\r\n  Checking file mirrors.dat                                  [ Updated ]\r\n  Checking file programs_bad.dat                             [ Updated ]\r\n  Checking file backdoorports.dat                            [ No update ]\r\n  Checking file suspscan.dat                                 [ Updated ]\r\n  Checking file i18n\/cn                                      [ No update ]\r\n  Checking file i18n\/de                                      [ Updated ]\r\n  Checking file i18n\/en                                      [ No update ]\r\n  Checking file i18n\/tr                                      [ Updated ]\r\n  Checking file i18n\/tr.utf8                                 [ Updated ]\r\n  Checking file i18n\/zh                                      [ Updated ]\r\n  Checking file i18n\/zh.utf8                                 [ Updated ]\r\n  Checking file i18n\/ja                                      [ Updated ]<\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h4>\u30c1\u30a7\u30c3\u30af\u3057\u3066\u307f\u3088\u3046<\/h4>\n<pre class=\"lang:default decode:true\"># rkhunter --check --sk\r\n\r\n\u203b--rwo\u3092\u3064\u3051\u308b\u3068\u8b66\u544a\u304c\u3042\u308b\u5834\u5408\u306e\u307f\u7d50\u679c\u304c\u8868\u793a\u3055\u308c\u307e\u3059\r\n# rkhunter --check --sk --rwo<\/pre>\n<p>&nbsp;<\/p>\n<p>\u52d5\u4f5c\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u306d\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h4>\u5b9a\u671f\u5b9f\u884c\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u4f5c\u6210<\/h4>\n<pre class=\"lang:default decode:true \"># vi \/root\/rkhunter.sh\r\n\r\n\r\n#!\/bin\/sh\r\n\r\n## -------------------------------\r\n\r\nMAILTO=hoge@example.com\r\n## -------------------------------\r\n\r\nMAILBODY=\/tmp\/`mktemp temp.XXXXXX`\r\n\r\n\r\n# rootkit\u5224\u5b9a\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u66f4\u65b0\r\n\/bin\/rkhunter --update &gt; \/dev\/null 2&gt;&amp;1\r\n\r\n# \u30c1\u30a7\u30c3\u30af\u5b9f\u884c \u7570\u5e38\u304c\u3042\u308c\u3070\u30e1\u30fc\u30eb\u3092\u884c\u3046\r\n\/bin\/rkhunter -c --sk --cronjob --rwo 2&gt;&amp;1 &gt; $MAILBODY\r\nif [ -s $MAILBODY ]; then\r\n    mail -s \"[Rootkit Hunter] `hostname` `date +%Y-%m-%d`\" $MAILTO &lt; $MAILBODY\r\nfi\r\n\r\n\r\nrm -f $MAILBODY<\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<pre class=\"lang:default decode:true \"># chmod +x \/root\/rkhunter.sh<\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"lang:default decode:true \"># sh \/root\/rkhunter.sh<\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"lang:default decode:true \"># vi \/etc\/crontab\r\n\r\n\u203b\u4e0b\u8a18\u3092\u8ffd\u52a0\r\n\r\n## 4\u664240\u5206\u306brkhunter\u5b9f\u884c\r\n20 4 * * * root \/root\/rkhunter.sh<\/pre>\n<p>&nbsp;<\/p>\n<p>\u3053\u308c\u3067\u8a2d\u5b9a\u306f\u304a\u3057\u307e\u3044\u3002rkhunter\u4ee5\u5916\u306b\u3082\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u7cfb\u306e\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u306f\u8c4a\u5bcc\u3067\u3059\u306e\u3067\u3001\u8abf\u3079\u3066\u3082\u307f\u308b\u306e\u3082\u9762\u767d\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u304a\u75b2\u308c\u69d8\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u56de\u306fRootkit\u3092\u691c\u77e5\u3059\u308brkhunter\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308bTips\u3067\u3059\u3002 &nbsp; &nbsp; Rootkit\u3063\u3066\u306a\u306b\u3082\u306e\uff1f \u4e0d\u6b63\u4fb5\u5165\u3057\u305f\u30b5\u30fc\u30d0\u3067\u3001\u653b\u6483\u8005\u304c\u307e\u305a\u884c\u3046\u3053\u3068\u306fRootkit\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002Rootkit\u306f\u30d0\u30c3\u30af\u30c9\u30a2\u3084\u30dc\u30c3\u30c8\u3092\u8a2d [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":15164,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[60,20,26],"tags":[],"_links":{"self":[{"href":"https:\/\/sys-guard.com\/wp-json\/wp\/v2\/posts\/15162"}],"collection":[{"href":"https:\/\/sys-guard.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sys-guard.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sys-guard.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/sys-guard.com\/wp-json\/wp\/v2\/comments?post=15162"}],"version-history":[{"count":0,"href":"https:\/\/sys-guard.com\/wp-json\/wp\/v2\/posts\/15162\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sys-guard.com\/wp-json\/wp\/v2\/media\/15164"}],"wp:attachment":[{"href":"https:\/\/sys-guard.com\/wp-json\/wp\/v2\/media?parent=15162"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sys-guard.com\/wp-json\/wp\/v2\/categories?post=15162"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sys-guard.com\/wp-json\/wp\/v2\/tags?post=15162"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}