[Logcheck-devel] Bug#617527: incomplete rules for scponly-full

Markus Treinen markus at treinen.name
Thu Mar 10 00:21:53 UTC 2011


Package: logcheck-database
Version: 1.3.13
Severity: normal

Hi,
replace the only line in /etc/logcheck/ignore.d.server/scponly

^\w{3} [ :0-9]{11} [._[:alnum:]-]+ scponly\[[0-9]+\]: running: (/(usr/)?bin/(ls|chmod|chown|chgrp|mkdir|rmdir|scp|ln|mv|rm|groups|pwd|echo|passwd)|cd|/usr/lib/sftp-server).* \(username: [._[:alnum:]-]+\([0-9]+\), IP/port: [.:[:alnum:]]+ [0-9]+ 22\)$

with

^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ scponly\[[[:digit:]]+\]: running: (/(usr/)?bin/(ls|chmod|chown|chgrp|mkdir|rmdir|scp|ln|mv|rm|groups|pwd|echo|passwd|rsync|unison|svn)|cd|/usr/lib/sftp-server)( .*)? \(username: [._[:alnum:]-]+\([[:digit:]]+\), IP/port: [.:[:alnum:]]+ [[:digit:]]+ [[:digit:]]+\)$

This has the following advantages:
1) includes rsync, unison and svn
2) matches the executable name correctly -> the old regexp for example also matched
   "/bin/mvevil"
3) ssh port is not restricted to 22 -> many people run ssh on different ports to
   evade simple probings

Best regards,
Markus


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-xen-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

-- no debconf information





More information about the Logcheck-devel mailing list