Date: Thu, 26 Aug 2004 04:03:46 GMT From: Mitsuru Ogino <ogino@verama.net> To: freebsd-gnats-submit@FreeBSD.org Subject: conf/70973: script 800.loginfail dose not report 'Illegal user' login failures Message-ID: <200408260403.i7Q43kQq012340@www.freebsd.org> Resent-Message-ID: <200408260410.i7Q4APqh096528@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 70973 >Category: conf >Synopsis: script 800.loginfail dose not report 'Illegal user' login failures >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Aug 26 04:10:25 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Mitsuru Ogino >Release: 5.2.1-RELEASE-p8 >Organization: >Environment: FreeBSD vic.verama.net 5.2.1-RELEASE-p8 FreeBSD 5.2.1-RELEASE-p8 #6: Tue Jun 1 18:43:31 JST 2004 root@vic.verama.net:/usr/src/sys/i386/compile/VIC i386 >Description: Sshd(8) reports login failures. But the style of report is different between the failure caused by wrong user and that by wrong password. /etc/periodic/security/800.loginfail only report failure by wrong password. It is important to know that someone attempt to login the system. So the system should report 'Illegal user' login failures to root. >How-To-Repeat: in /var/log/auth.log Aug 26 01:47:25 vic sshd[68106]: Illegal user test from xxx.xxx.xxx.xxx >Fix: Use code to find pattern 'illegal user': 62c62 < n=$(catmsgs | grep -ia "^$yesterday.*fail" | --- > n=$(catmsgs | egrep -ia "^$yesterday.*(fail|illegal user)" | >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200408260403.i7Q43kQq012340>