From owner-freebsd-bugs@freebsd.org Fri Apr 28 04:20:07 2017 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A6EBDD5333F for ; Fri, 28 Apr 2017 04:20:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8BF628F3 for ; Fri, 28 Apr 2017 04:20:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v3S4K7Ce002444 for ; Fri, 28 Apr 2017 04:20:07 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 218925] 800.loginfail needs more info on some ssh login failures Date: Fri, 28 Apr 2017 04:20:07 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 11.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: dwmcrobb@me.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Apr 2017 04:20:07 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D218925 Bug ID: 218925 Summary: 800.loginfail needs more info on some ssh login failures Product: Base System Version: 11.0-STABLE Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: bin Assignee: freebsd-bugs@FreeBSD.org Reporter: dwmcrobb@me.com Created attachment 182143 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D182143&action= =3Dedit patch to pick up more useful ssh login failure data from auth.log I regularly get this kind of mail from the daily security run on public-fac= ing machines: Apr 26 06:00:50 ria sshd[31509]: Disconnecting: Too many authentication failures [preauth] Apr 26 06:49:03 ria sshd[31583]: Disconnecting: Too many authentication failures [preauth] Apr 26 06:56:49 ria sshd[31627]: Disconnecting: Too many authentication failures [preauth] Apr 26 07:45:25 ria sshd[31715]: Disconnecting: Too many authentication failures [preauth] Apr 26 09:28:19 ria sshd[31890]: Disconnecting: Too many authentication failures [preauth] Apr 26 09:59:13 ria sshd[31952]: Disconnecting: Too many authentication failures [preauth] Apr 26 11:16:29 ria sshd[32092]: Disconnecting: Too many authentication failures [preauth] Apr 26 12:52:50 ria sshd[32457]: Disconnecting: Too many authentication failures [preauth] Apr 26 15:29:09 ria sshd[33415]: Disconnecting: Too many authentication failures [preauth] Not very helpful. I should be seeing this: Apr 26 06:00:50 ria sshd[31509]: error: maximum authentication attempts exceeded for root from 188.187.52.118 port 49171 ssh2 [preauth] Apr 26 06:00:50 ria sshd[31509]: Disconnecting: Too many authentication failures [preauth] Apr 26 06:49:03 ria sshd[31583]: error: maximum authentication attempts exceeded for root from 87.198.39.108 port 45609 ssh2 [preauth] Apr 26 06:49:03 ria sshd[31583]: Disconnecting: Too many authentication failures [preauth] Apr 26 06:56:49 ria sshd[31627]: error: maximum authentication attempts exceeded for root from 190.216.171.66 port 39053 ssh2 [preauth] Apr 26 06:56:49 ria sshd[31627]: Disconnecting: Too many authentication failures [preauth] Apr 26 07:45:25 ria sshd[31715]: error: maximum authentication attempts exceeded for root from 62.20.61.178 port 40532 ssh2 [preauth] Apr 26 07:45:25 ria sshd[31715]: Disconnecting: Too many authentication failures [preauth] Apr 26 09:28:19 ria sshd[31890]: error: maximum authentication attempts exceeded for root from 112.250.104.128 port 43618 ssh2 [preauth] Apr 26 09:28:19 ria sshd[31890]: Disconnecting: Too many authentication failures [preauth] Apr 26 09:59:13 ria sshd[31952]: error: maximum authentication attempts exceeded for root from 202.100.182.254 port 54912 ssh2 [preauth] Apr 26 09:59:13 ria sshd[31952]: Disconnecting: Too many authentication failures [preauth] Apr 26 11:16:29 ria sshd[32092]: error: maximum authentication attempts exceeded for root from 71.227.146.158 port 60455 ssh2 [preauth] Apr 26 11:16:29 ria sshd[32092]: Disconnecting: Too many authentication failures [preauth] Apr 26 12:52:50 ria sshd[32457]: error: maximum authentication attempts exceeded for root from 77.37.232.131 port 39678 ssh2 [preauth] Apr 26 12:52:50 ria sshd[32457]: Disconnecting: Too many authentication failures [preauth] Apr 26 15:29:09 ria sshd[33415]: error: maximum authentication attempts exceeded for root from 78.194.25.54 port 49924 ssh2 [preauth] Apr 26 15:29:09 ria sshd[33415]: Disconnecting: Too many authentication failures [preauth] Even better would be: Apr 26 06:00:50 ria sshd[31509]: error: maximum authentication attempts exceeded for root from 188.187.52.118 port 49171 ssh2 [preauth] Apr 26 06:49:03 ria sshd[31583]: error: maximum authentication attempts exceeded for root from 87.198.39.108 port 45609 ssh2 [preauth] Apr 26 06:56:49 ria sshd[31627]: error: maximum authentication attempts exceeded for root from 190.216.171.66 port 39053 ssh2 [preauth] Apr 26 07:45:25 ria sshd[31715]: error: maximum authentication attempts exceeded for root from 62.20.61.178 port 40532 ssh2 [preauth] Apr 26 09:28:19 ria sshd[31890]: error: maximum authentication attempts exceeded for root from 112.250.104.128 port 43618 ssh2 [preauth] Apr 26 09:59:13 ria sshd[31952]: error: maximum authentication attempts exceeded for root from 202.100.182.254 port 54912 ssh2 [preauth] Apr 26 11:16:29 ria sshd[32092]: error: maximum authentication attempts exceeded for root from 71.227.146.158 port 60455 ssh2 [preauth] Apr 26 12:52:50 ria sshd[32457]: error: maximum authentication attempts exceeded for root from 77.37.232.131 port 39678 ssh2 [preauth] Apr 26 15:29:09 ria sshd[33415]: error: maximum authentication attempts exceeded for root from 78.194.25.54 port 49924 ssh2 [preauth] A minor change (attached) will at least get the lines that are useful (and = also the cruft but I can live with that), and I don't believe it will muck up the recognition of other login failures. --=20 You are receiving this mail because: You are the assignee for the bug.=