From owner-freebsd-ports@freebsd.org Fri Oct 13 09:47:40 2017 Return-Path: Delivered-To: freebsd-ports@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 8B6F9E430FD for ; Fri, 13 Oct 2017 09:47:40 +0000 (UTC) (envelope-from tz@FreeBSD.org) Received: from toco-domains.de (mail.toco-domains.de [IPv6:2a01:4f8:150:50a5::6]) (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 517E581259; Fri, 13 Oct 2017 09:47:40 +0000 (UTC) (envelope-from tz@FreeBSD.org) Received: from [192.168.0.137] (port-212-202-156-99.static.qsc.de [212.202.156.99]) by toco-domains.de (Postfix) with ESMTPA id 6C2941AAF001; Fri, 13 Oct 2017 11:47:29 +0200 (CEST) Subject: Re: New pkg audit FNs To: Steve Wills , Jan Beich Cc: Matthew Seaman , ale@Freebsd.org, freebsd-ports@freebsd.org References: From: Torsten Zuehlsdorff Message-ID: <55596295-86d7-0068-4fff-e2c4f79366a1@FreeBSD.org> Date: Fri, 13 Oct 2017 09:25:09 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Oct 2017 09:47:40 -0000 Aloha, >> Why not >> teach pkg-audit(8) to query NVD based on CPE annotations in *binary* >> packages? >> Doing so would also provide a workaround for VuXML entries cancelled >> to reduce bloat. > > I agree, pkg-audit needs to be taught to do that. Along those lines, we > could create a port for cvechecker: > > https://github.com/sjvermeu/cvechecker > > But both solutions only handle installed packages. > > We would still need something to alert us to CVEs in non-installed > software, I think. > > Also, I've just looked and it seems only a little over 1000 ports have > CPE strings. Adding something to portlint that warned ports developers > to add any needed CPE info would be helpful. I think that type of > warning has helped us improve LICENSE entries. One more thought on this topic: a cvececker isn't enough. Looking at security updates of piwik, gitlab, phpmailer and many more: most of the security issues fixed never got an CVE entry. But of course any of the issues could be exploited in one or another way. But i think cvechecker is a step in the right direction. pkg audit is incredible helpful even with its current restrictions! Greetings, Torsten