Ubuntu 18.04
Sponsored Link

RKHunter : Rootkit 検出ツール2018/11/29

 
Rootkit 検出ツール RKHunter のインストールと設定です。
[1] RKHunter をインストールします。
root@dlp:~#
apt -y install rkhunter
[2] RKHunter の設定と利用方法です。
root@dlp:~#
vi /etc/default/rkhunter
# 9行目:日次で実行する

CRON_DAILY_RUN="
true
"
# 13行目:週次でデータベースを更新する

CRON_DB_UPDATE="
true
"
# 17行目:データベース更新の際レポートメールを送信

DB_UPDATE_EMAIL="
true
"
# システムのファイル情報をアップデート

root@dlp:~#
rkhunter --propupd
[ Rootkit Hunter version 1.4.6 ]
File updated: searched for 180 files, found 147
# チェック実行

# --sk で Enterキー押下をスキップ

# --rwo を指定すると、警告のみ表示

root@dlp:~#
rkhunter --check --sk
[ Rootkit Hunter version 1.4.6 ]

Checking system commands...

  Performing 'strings' command checks
    Checking 'strings' command                               [ OK ]

  Performing 'shared libraries' checks
    Checking for preloading variables                        [ None found ]
    Checking for preloaded libraries                         [ None found ]
    Checking LD_LIBRARY_PATH variable                        [ Not found ]

  Performing file properties checks
    Checking for prerequisites                               [ OK ]
    /usr/sbin/adduser                                        [ OK ]
    /usr/sbin/chroot                                         [ OK ]
    /usr/sbin/cron                                           [ OK ]
    /usr/sbin/groupadd                                       [ OK ]
    /usr/sbin/groupdel                                       [ OK ]
    /usr/sbin/groupmod                                       [ OK ]
    /usr/sbin/grpck                                          [ OK ]
    /usr/sbin/nologin                                        [ OK ]
    /usr/sbin/pwck                                           [ OK ]
    /usr/sbin/rsyslogd                                       [ OK ]
    /usr/sbin/sshd                                           [ OK ]

.....
.....

System checks summary
=====================

File properties checks...
    Files checked: 147
    Suspect files: 0

Rootkit checks...
    Rootkits checked : 501
    Possible rootkits: 0

Applications checks...
    All checks skipped

The system checks took: 2 minutes and 17 seconds

All results have been written to the log file: /var/log/rkhunter.log

One or more warnings have been found while checking the system.
Please check the log file (/var/log/rkhunter.log)
関連コンテンツ