Rkhunter warnings

Discussion in 'ISPConfig 3 Priority Support' started by Jemt, Mar 31, 2022.

  1. Jemt

    Jemt Member HowtoForge Supporter

    Hi,

    I just ran `rkhunter --check` manually today. Take note of the timestamps in the warning. I was under the impression that rkhunter ran every day. Is this not the case?
    upload_2022-3-31_8-42-54.png

    The ISPConfig web interface has a nice RKHunter log viewer - but it doesn't show any timestamps, so the result could be years old. Please add a timestamp.

    Furthermore, Debian has disabled DB updates for rkhunter (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=869760). Does ISPConfig work around this by temporarily enabling updates, or does it update the database by some other means? If not, the Rkhunter log view should show a big fat red warning saying that RKHunter's database is outdated, and that the server is unprotected.

    I was under the impression that I was protected, but all this leaves me with lots of doubts and concerns. Do you have any recommendations as to how I could verify the integrity of the server, now that RKHunter seems to have been inactive for a very long time ? At least I don't think I can rely on local file hashes and timestamps. Will a check against an updated rkhunter database suffice, or is there more I can/should do ?

    - Thanks in advance
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Rkhunter is running daily and your screenshot does not show any issue in this regard. Rkhunter is not updating file properties on it's own (means rkhunter does not forget file changes) when you run it. If you verified that everything is fine with that file, you can run rkhunter with the property update option to let it update it's file property database.

    Regarding your link from Debian issue tracker, you should read it until the end then you see that Debian disabled the updates on purpose.

     
  3. Jemt

    Jemt Member HowtoForge Supporter

    Hi @till
    Thanks for your swift reply.
    I wasn't aware that RKHunter didn't update properties by default. Thanks.
    I was aware though that updates were disabled due to a security issue. The question is, do ISPConfig update the database somehow else? If not, I don't see any value in running rkhunter at all. At least it would make sense to flag this as a security problem in the RKHunter log in the web interface - don't you think?
     
  4. Jemt

    Jemt Member HowtoForge Supporter

    Perhaps RKHunter's database is updated via apt-get - in that case I wouldn't consider it a problem.
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    Which would basically mean that we reintroduce the issue which caused it to be disabled, not sure if that's such a good idea. As rkhunter is a package in the Debian package system, it should receive updates like other packages via apt.
     
  6. Jemt

    Jemt Member HowtoForge Supporter

    Thanks @till - appreciate your thoughts on the matter.
     
  7. Jesse Norell

    Jesse Norell Well-Known Member Staff Member Howtoforge Staff

    I will often set rkhunter to update properties after dpkg changes, which seems to work well (other that it slows down the apt update process, which is annoying). I would guess it does not update those files via http at that time, though would need to confirm to be sure.
     

Share This Page