• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Issue Watchdog - rkhunter: Different problems

P_heck

Basic Pleskian
Environment:
OS‪Debian 7.11‬ProductPlesk Onyx
Version 17.5.3 Update #15, last updated on July 25, 2017 06:27 AM

I have used the Debian rkhunter package version 1.4.0 on another server and it works fine. On my Plesk server, I want to use the version shipped with Plesk but encounter the following problem:

  1. Mail is not send.

    Mail is configured using the default settings:

    Code:
    MAIL_CMD=/opt/psa/admin/bin/modules/watchdog/send-mail

    E-Mail address (here anonymized) is set to:
    Code:
    MAIL-ON-WARNING=info@domain.tld

    When switching to the default rkhunter setting:

    Code:
    MAIL_CMD=mail -s "[rkhunter] Warnings found for ${HOST_NAME}"

    I get the following error:

    Code:
    -s=[rkhunter] contains invalid character '['

    Changing the original command in the rkhunter.conf file to

    Code:
    MAIL_CMD=mail -s "rkhunter Warnings found for ${HOST_NAME}"

    doesn't change anything (Strange).

    Why is mail not being send? Normal Watchdog weekly mails are received.

  2. Warning in rkhunter.log:

    Code:
    [15:17:05]   /opt/psa/etc/modules/watchdog/rkhunter.conf     [ Warning ]
    [15:17:05] Warning: Package manager verification has failed:
    [15:17:05]          File: /opt/psa/etc/modules/watchdog/rkhunter.conf
    [15:17:05]          The file hash value has changed

    How can I update the hash value?

    Always performed a
    Code:
    /usr/local/psa/admin/bin/modules/watchdog/rkhunter --update --propupd

    after changing the rkhunter.conf file.

  3. Warning in rkhunter.log:
    Code:
    [15:17:42]   Checking for suspicious shared memory segments  [ Warning ]
    [15:17:42] Warning: The following suspicious shared memory segments have been found:
    [15:17:42]          Process:     PID: 29900    Owner: magicspam
    [15:17:42]          Process:     PID: 27522    Owner: root
    [15:17:42] Info: Found process pathname '/usr/lib/apache2/mpm-prefork/apache2': it is whitelisted.

    I checked the processes with this script to determine the process: linuxplayer/who_attach_shm.pl at master · curu/linuxplayer · GitHub

    Output:
    Code:
    ################################################################################
    shm attach process list, group by shm key
    ################################################################################
    
    0x00000000:    /opt/psa/admin/sbin/modules/magicspampro/magicspam-daemon
    0x0102321d:    /usr/lib/apache2/mpm-prefork/apache2
    
    
    ################################################################################
    process shm usage
    ################################################################################
    /opt/psa/admin/sbin/modules/magicspampro/magicspam-daemon [1]:    0x00000000
    /usr/lib/apache2/mpm-prefork/apache2 [1]:    0x0102321d

    So I whitelisted these processes in the rkhunter.conf file:
    Code:
    ALLOWIPCPROC=/usr/lib/apache2/mpm-prefork/apache2
    ALLOWIPCPROC=/opt/psa/admin/sbin/modules/maagicspampro/magicspam-daemon

    But the warning stays. Anything I have done wrong?

Thanks in advance for any helpful hint!

Cheers Peter
 
Back
Top