AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 962260
Accepted
Asarluhi
Asarluhi
Asked: 2017-10-06 07:58:42 +0800 CST2017-10-06 07:58:42 +0800 CST 2017-10-06 07:58:42 +0800 CST

如何处理假定的 chkrootkit 误报

  • 772

我apt-install在新安装的 Ubuntu 服务器 16.04.3 中安装了 chkrootkit。
chkrootkit 首次运行后发现可疑文件和目录:

Searching for suspicious files and dirs, it may take a while... The following suspicious files and directories were found: 
/usr/lib/python3/dist-packages/fail2ban/tests/files/config/apache-auth/noentry/.htaccess /usr/lib/python3/dist-packages/fail2ban/tests/files/config/apache-auth/digest_time/.htaccess /usr/lib/python3/dist-packages/fail2ban/tests/files/config/apache-auth/digest_time/.htpasswd /usr/lib/python3/dist-packages/fail2ban/tests/files/config/apache-auth/digest_anon/.htaccess /usr/lib/python3/dist-packages/fail2ban/tests/files/config/apache-auth/digest_anon/.htpasswd /usr/lib/python3/dist-packages/fail2ban/tests/files/config/apache-auth/digest_wrongrelm/.htaccess /usr/lib/python3/dist-packages/fail2ban/tests/files/config/apache-auth/digest_wrongrelm/.htpasswd /usr/lib/python3/dist-packages/fail2ban/tests/files/config/apache-auth/digest/.htaccess /usr/lib/python3/dist-packages/fail2ban/tests/files/config/apache-auth/digest/.htpasswd /usr/lib/python3/dist-packages/fail2ban/tests/files/config/apache-auth/basic/authz_owner/.htaccess /usr/lib/python3/dist-packages/fail2ban/tests/files/config/apache-auth/basic/authz_owner/.htpasswd /usr/lib/python3/dist-packages/fail2ban/tests/files/config/apache-auth/basic/file/.htaccess /usr/lib/python3/dist-packages/fail2ban/tests/files/config/apache-auth/basic/file/.htpasswd /lib/modules/4.4.0-87-generic/vdso/.build-id /lib/modules/4.4.0-96-generic/vdso/.build-id
/lib/modules/4.4.0-87-generic/vdso/.build-id /lib/modules/4.4.0-96-generic/vdso/.build-id

我注意到三年前 stackexchange 的另一个用户发现了相同的误报并发布了Chkrootkit 发现了很多可疑文件和目录,以及 /sbin/init INFECTED。

在chkrootkit 官方网站的常见问题解答编号 8中声明他们不能将误报列入白名单,因为攻击者可能会使用它,因为他知道 chkrootkit 会忽略某些文件和目录。

您建议如何处理这一长长的文件和目录列表?如何检查它们是否为误报?如果它们是误报,有没有办法将这些文件与其原始内容进行比较(如使用 的包dpkg -V)?

chkrootkit
  • 1 1 个回答
  • 1676 Views

1 个回答

  • Voted
  1. Best Answer
    Panther
    2017-10-06T08:05:10+08:002017-10-06T08:05:10+08:00

    你可以用 debsums 验证你的包(有点)

    sudo apt install debsums
    

    然后

    sudo debsums
    

    默认情况下,它会跳过配置文件,以包含它们

    sudo debsums -a
    

    要仅显示错误,请使用 -s 标志

    sudo debsums -as
    

    有关详细信息和其他选项,请参阅 man debsums

    http://manpages.ubuntu.com/manpages/zesty/en/man1/debsums.1.html

    If  you  are  looking  for  an integrity checker that can run from safe
           media, do integrity checks on checksum  databases  and  can  be  easily
           configured  to  run periodically to warn the admin of changes see other
           tools such as: aide, integrit, samhain, or tripwire.
    

    这些工具(aide、integrit、samhain 或tripwire)应在全新安装/已知良好的系统上安装/初始化,并且最好从实时媒体运行,因为破解工具可以在破解系统上击败这些工具。

    • 4

相关问题

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve