• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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