From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#32544: [ELPA] core packages need generated files Date: Mon, 27 Aug 2018 20:15:28 -0400 Message-ID: References: <87mut797fd.fsf@gmx.de> <4dh8jfo090.fsf@fencepost.gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1535415251 23125 195.159.176.226 (28 Aug 2018 00:14:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 28 Aug 2018 00:14:11 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 32544@debbugs.gnu.org, Michael Albinus To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 28 02:14:07 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fuRe3-0005rk-3g for geb-bug-gnu-emacs@m.gmane.org; Tue, 28 Aug 2018 02:14:07 +0200 Original-Received: from localhost ([::1]:35616 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fuRg9-0001dn-5d for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Aug 2018 20:16:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57854) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fuRfz-0001dV-EW for bug-gnu-emacs@gnu.org; Mon, 27 Aug 2018 20:16:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fuRfu-0000iP-BP for bug-gnu-emacs@gnu.org; Mon, 27 Aug 2018 20:16:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57842) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fuRfu-0000ht-7G for bug-gnu-emacs@gnu.org; Mon, 27 Aug 2018 20:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fuRft-0001do-Ul for bug-gnu-emacs@gnu.org; Mon, 27 Aug 2018 20:16:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 28 Aug 2018 00:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32544 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 32544-submit@debbugs.gnu.org id=B32544.15354153334942 (code B ref 32544); Tue, 28 Aug 2018 00:16:01 +0000 Original-Received: (at 32544) by debbugs.gnu.org; 28 Aug 2018 00:15:33 +0000 Original-Received: from localhost ([127.0.0.1]:34627 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fuRfR-0001HG-3f for submit@debbugs.gnu.org; Mon, 27 Aug 2018 20:15:33 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:59898) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fuRfO-0001F5-4m for 32544@debbugs.gnu.org; Mon, 27 Aug 2018 20:15:31 -0400 Original-Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id w7S0FSk7005930; Mon, 27 Aug 2018 20:15:29 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 8FBE6AEBF8; Mon, 27 Aug 2018 20:15:28 -0400 (EDT) In-Reply-To: <4dh8jfo090.fsf@fencepost.gnu.org> (Glenn Morris's message of "Mon, 27 Aug 2018 19:31:07 -0400") X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 2 Rules triggered EDT_SA_DN_PASS=0, RV6360=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6360> : inlines <6831> : streams <1796754> : uri <2697473> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:149783 Archived-At: > Is the concern privilege escalation in build recipes in malicious elpa > packages? Yes. > But couldn't the same package run the same bad code at package install > time on the end user's machine, today and for as long as elpa.gnu.org > has existed? Yes. Tho not only "at package install time", since that same bad code can be run any time later when the package is activated or loaded... > Ie, if we assume malicious code can get into elpa packages with no-one > noticing, the whole system is already broken anyway? Yup. > But if you want to make the elpa system more secure one piece at a time, > that's obviously no bad thing. I think the reasons why I'm more worried about elpa.gnu.org than the end-user's machines include: - very little time between the moment we receive the commit-diffs by email and the moment the code is run. So even if we notice the offending code on the spot, there's not much time to react. - elpa.gnu.org is part of infrastructure that Emacs users trust when downloading GNU ELPA packages (e.g. it holds the PGP signing key), so a breach could affect all GNU ELPA users (especially if not noticed). Stefan