Prevent false positives for PostgreSQL in chkrootkit and rkhunter

In its default configuration on recent versions of Debian, PostgreSQL creates shared memory segment files in /dev/shm/. Common rootkit detection software such as chkrootkit or rkhunter flags these as potential indicators of infection. The file names are randomly generated, which makes filtering them out a little tricky. Here’s how to avoid the system flagging them up as false positives.

chkrootkit

Open the file /etc/chkrootkit/chkrootkit.ignore and add the following line:

/dev/shm/PostgreSQL\.[0-9]+

rkhunter

Open the file /etc/rkhunter.conf.local and add the following line:

ALLOWDEVFILE=/dev/shm/PostgreSQL.*

Add new comment

Restricted HTML

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <p> <br> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>
  • Web page addresses and email addresses turn into links automatically.
  • Lines and paragraphs break automatically.
CAPTCHA