• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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:

    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