From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#61277: FR: ELPA security - Restrict package builds to signed git commits Date: Wed, 15 Feb 2023 05:37:36 -0800 Message-ID: References: <87pmapqoo5.fsf@daniel-mendler.de> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6957"; mail-complaints-to="usenet@ciao.gmane.io" Cc: mail@daniel-mendler.de, 61277@debbugs.gnu.org, yantar92@posteo.net, monnier@iro.umontreal.ca To: rms@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 15 14:38:17 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pSHzF-0001cF-Er for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 15 Feb 2023 14:38:17 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pSHz6-0003E2-QJ; Wed, 15 Feb 2023 08:38:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pSHz0-0003Bd-FS for bug-gnu-emacs@gnu.org; Wed, 15 Feb 2023 08:38:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pSHz0-0006dZ-4b for bug-gnu-emacs@gnu.org; Wed, 15 Feb 2023 08:38:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pSHz0-0000uI-0A for bug-gnu-emacs@gnu.org; Wed, 15 Feb 2023 08:38:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 15 Feb 2023 13:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61277 X-GNU-PR-Package: emacs Original-Received: via spool by 61277-submit@debbugs.gnu.org id=B61277.16764682673440 (code B ref 61277); Wed, 15 Feb 2023 13:38:01 +0000 Original-Received: (at 61277) by debbugs.gnu.org; 15 Feb 2023 13:37:47 +0000 Original-Received: from localhost ([127.0.0.1]:58238 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pSHyk-0000tP-PE for submit@debbugs.gnu.org; Wed, 15 Feb 2023 08:37:47 -0500 Original-Received: from mail-oa1-f44.google.com ([209.85.160.44]:44696) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pSHyh-0000tA-4F for 61277@debbugs.gnu.org; Wed, 15 Feb 2023 08:37:45 -0500 Original-Received: by mail-oa1-f44.google.com with SMTP id 586e51a60fabf-16aa71c1600so22866321fac.11 for <61277@debbugs.gnu.org>; Wed, 15 Feb 2023 05:37:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=WzkSYQZ0qSGedS1LufqJXNIEoPS3lMKvTA76R1yyFXI=; b=ZZ1/jI+SjKv3S+w+e+GzRo2Pg7Ya2ECjttPL35abF/oVaBOFLT+ssuPC3H+YXo2hki q4Bt5w8BlzpYIbxyPEUwGpxP2XkKWY51HwkrQHcQli/YDCz6marU5mTSBesPfJy967y5 2OSdeHb18uVddtcElOoeNCDmutZ12OrZ/M+mkrkF1rrERw1qotNNh3UzYDNuQaTVgmbm NSixI/Tc7VxwHb9L/b5BKkDPn7zzW+LoRAeZV6AUN8TVmwAavCJBixdvG0/33HB8jpyU Fb/waLHqufT5TItPR1J1kmncqKuiEO6JTKW4COfq0kOKQr0kzXPq2JW6MIda5CXnd2TR VSuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=WzkSYQZ0qSGedS1LufqJXNIEoPS3lMKvTA76R1yyFXI=; b=Vx4U4MbViQ1czjxEtVLhKiKeVVIi5adOnBZFpaXOUgK5pMzJYtFUmf3O9KMW8VK0/i IptSUB4yhPyDP5wbPvY0gx/Hos4WIlf527nTksbJm53qU9sD1F5lBRFUfWZZPsTTCG5S R4xtlR0cWpJZM6FemUs99OP6g0FPdRo9pUxtGOPV0Uf+j2WBhHOzSNVlAFuzJzh550YF D8HSF9cMMbzr3FyKeneF6acLiumtXr4z9NsJMxbSm9ZkSNMwbvf0Bq/swigcdYcYKEkk tQo10XJ/hQgt0k/zBo1n5dJFwG+D2PecBFwjdtjObgF82S4R/V1NETjBwNe+9Sm1cDJE UgpQ== X-Gm-Message-State: AO0yUKX69NZRadIYgc1i4qyyWP/bOB6GnQS4LWB4AQmegTnWPVNAMJgs BuiqZy85/+ZeItG8Td+Z04aXJ9R/GbjFu5G+C70= X-Google-Smtp-Source: AK7set83dXjktOprQzB9ieonKKQXsQ80c5E7K9tWJGX7RDcqfmQGkCG3cm2g2AzLiSBoEQFo2EHmldxeon/YVle7sUQ= X-Received: by 2002:a05:6870:d152:b0:16a:684e:4c25 with SMTP id f18-20020a056870d15200b0016a684e4c25mr276226oac.199.1676468257399; Wed, 15 Feb 2023 05:37:37 -0800 (PST) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 15 Feb 2023 05:37:36 -0800 In-Reply-To: X-Hashcash: 1:20:230215:mail@daniel-mendler.de::p2kQ5SRyHpYobTtz:61sO X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:255698 Archived-At: Richard Stallman writes: > You're discussing the "how" of a possible breach, > but what I really need to know is the "what". > What is being breached? What is the context here? The "what" is the git repository of a GNU ELPA or NonGNU ELPA package. If an attacker can introduce a commit containing malicious code, and create a new git tag pointing to that commit, the GNU ELPA scripts will fetch it, and release a new version of the package (now including the malicious code). By requiring tags to be cryptographically signed, we can have a greater confidence that any new tag has at the very least been signed off by the developer him/herself.