From owner-freebsd-questions@freebsd.org Wed Nov 27 17:28:27 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 162F11B25D7 for ; Wed, 27 Nov 2019 17:28:27 +0000 (UTC) (envelope-from yasu@utahime.org) Received: from gate.utahime.jp (gate.utahime.jp [183.180.29.210]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47NSRF5Dydz4KP4 for ; Wed, 27 Nov 2019 17:28:25 +0000 (UTC) (envelope-from yasu@utahime.org) Received: from eastasia.home.utahime.org (eastasia.home.utahime.org [192.168.174.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by gate.utahime.jp (Postfix) with ESMTPS id 579791E1BF for ; Thu, 28 Nov 2019 02:28:15 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=utahime.org; s=maybe2019112701; t=1574875695; bh=6TcNyN5E8M7/E9+x3pvszwMPbpQD9QZSQrmmjLFk6VM=; h=Date:To:Subject:From:In-Reply-To:References; b=URyvjXvPw/F8uLHKp7bA5KMpOzvD8pgE+t92AgbtVTOZA3WYV0dEiax7dsMOwGFRk UYXqdTMorMzmjPKbJkXAO3MxSp/RN4M+5zz3kktwFdEcflq0oJWg2tBVKZMBuJcdNi VlVZhtVo7tyDnDCKWr761fbDHSp2BcVz52af6OEdkf5prckr4OMWqCgls5h4dyryOG He6RFsTdUyMZIyr3x6WbwrBC+htIFmBfJaoUnV1ZdPdh1I+BQXL47LwFBWIoe5KXaN lMUT3z7rfChV9G61dFLsc/2vEvSdLFVk2TPq3gil+bI2pjOt7B7GK6e2o1oMBRLtIm HGI30Bg9FU27Q== Received: from localhost (rolling.home.utahime.org [192.168.174.11]) (using TLSv1.3 with cipher TLS_CHACHA20_POLY1305_SHA256 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by eastasia.home.utahime.org (Postfix) with ESMTPSA id 29CCB45F7D; Thu, 28 Nov 2019 02:28:14 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.102.1 at eastasia.home.utahime.org Date: Thu, 28 Nov 2019 02:27:21 +0900 (JST) Message-Id: <20191128.022721.1343122922192153682.yasu@utahime.org> To: freebsd-questions@freebsd.org Subject: Re: FreeBSD-12 logcheck From: Yasuhiro KIMURA In-Reply-To: <4d6ddb1dae5865ba9dad6142340ab42d.squirrel@webmail.harte-lyne.ca> References: <4d6ddb1dae5865ba9dad6142340ab42d.squirrel@webmail.harte-lyne.ca> X-Mailer: Mew version 6.8 on Emacs 26.3 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 47NSRF5Dydz4KP4 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=utahime.org header.s=maybe2019112701 header.b=URyvjXvP; dmarc=none; spf=pass (mx1.freebsd.org: domain of yasu@utahime.org designates 183.180.29.210 as permitted sender) smtp.mailfrom=yasu@utahime.org X-Spamd-Result: default: False [0.60 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[utahime.org:s=maybe2019112701]; NEURAL_HAM_MEDIUM(-0.35)[-0.352,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+a:spf-authorized.utahime.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.42)[-0.418,0]; RCVD_COUNT_THREE(0.00)[3]; DMARC_NA(0.00)[utahime.org]; MV_CASE(0.50)[]; DKIM_TRACE(0.00)[utahime.org:+]; MID_CONTAINS_FROM(1.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(0.37)[ip: (0.27), ipnet: 183.180.0.0/16(0.14), asn: 2519(1.43), country: JP(0.02)]; ASN(0.00)[asn:2519, ipnet:183.180.0.0/16, country:JP]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Nov 2019 17:28:27 -0000 Hi James, Thank you for using logcheck. I'm maintainer of this port. From: "James B. Byrne via freebsd-questions" Subject: FreeBSD-12 logcheck Date: Wed, 27 Nov 2019 11:48:33 -0500 > I have installed logcheck on a test machine and get the daily report. > In it I see messages similar to the following: > > Nov 26 07:02:43 vhost04 sshd[28949]: Bad protocol version > identification '\026\003\001' from 77.247.109.57 port 53786 If you saw this message in report mail by logcheck, it must be as follwowing. ---------------------------------------------------------------------- Nov 26 07:02:43 vhost04 sshd[28949]: Bad protocol version identification '\026\003\001' from 77.247.109.57 port 53786 ---------------------------------------------------------------------- Therefore, > This is basically noise most likely generated by some self-propagating > malware. If wish to eliminate this from the report. I added this to > /usr/local/etc/logcheck/violations.ignore.d/local-sshd: > > > ^\w{3} [ :[:digit:]]{11} .*sshd\[.*\]: Bad protocol > version identification.* This pattern should be ---------------------------------------------------------------------- ^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ sshd\[[[:digit:]]+\]: Bad protocol version identification.* ---------------------------------------------------------------------- and it need to be written to /usr/local/etc/logcheck/ignore.d.server/local-ssh unless you change the value of REPORTLEVEL in /usr/local/etc/logcheck/logcheck.conf. --- Yasuhiro KIMURA