From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by sourceware.org (Postfix) with ESMTPS id F23C03858D34; Fri, 5 Apr 2024 21:16:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org F23C03858D34 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org F23C03858D34 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::32f ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712351770; cv=none; b=LurV7ZA3pjUqmMpcKCfyoVRrcs1pW0YaYye2MJibMGBwUymLY9IyiyDZJjSAm4Qh8KCWv6X7tsEvm6c+2XjR3GzOmLT0GqVc/CfBQojm4UXw+Ki2IIq1MQx8kIjwfpWCwnQ78bbeUQv4Fp7SvyBtnW+Q1vUGpHIhOYEtFUg4RYo= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712351770; c=relaxed/simple; bh=salGC3wFms6nmciOD5aE/jBwC+Lz1UDIUvZfFzl4JpM=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=ITCicBR+SwweP5mb8lwE2UdCmWL5JRLawZ13arTctxCPHm6qwqFEwWYrHP49297umzuDup4Bf/W63F19VBKfuv1AgpLyZJoSkPWclvxIcnDDSgKzRaiKop5Co6nzOvjL1dq9oIuGXJJa9hZv5rSaopvs1z0sQo+BQRYOxowE7ks= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-4162ec14805so11259765e9.1; Fri, 05 Apr 2024 14:16:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712351766; x=1712956566; darn=sourceware.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=salGC3wFms6nmciOD5aE/jBwC+Lz1UDIUvZfFzl4JpM=; b=GE7r6WkWNvnPluwtuQvUcTFrHAgXnudkPOQoR5myTHSnN5bx3F2QjYBMNtGSLw8605 8gyX82bwbE10VEGfXy1xawNioSVNnaqDZqb2tpvsLeaK0Py+bKr8knAxN+7g3qqdbv+X YlS10lH6Qbm3RnzfMFAxLXHBESXPf+NRTde03wUgUzNaBC1YjnywXbB5fViSFZRG8fh1 2Ja2oiwBYlj/JTShC7ITZyX+kS6flFmqdHgHh5c+k/kyJ+Z/6HKqq8gbAUv+WZFv3Rxu /wxguSmbdEaqrc5Cg9Fq/dRzcJHYH8HiBnSFd/Wg9OZdz88hXwcsIb9dQcMrLJ+m5DpI b2Fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712351766; x=1712956566; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=salGC3wFms6nmciOD5aE/jBwC+Lz1UDIUvZfFzl4JpM=; b=dp00vz8QH0Z44JbUMWleg+D4c+heVmWGfo1hPKadTmfSh6+lsbWEYJEG77gMZiChV/ MYL0t7NmGEqKh24lWAXqTkmshgKWISDgVMU/dg/9VlgIX2PrV4lxEPpBtRdu45sHowZ0 iMhErzc9ZgeVzx7k32v3l7hmN9HPi22WxMd4prsHceXLQQiFEzAgl3bw7qRu/1Reozz9 K6eUmXjt4cpHei6WgcbSuxHL/ipTMgXtrGccsymrusKliMxFOieo6iVKZu+ApZ4psEBZ +HGNWE6X+/aR9xLjcmtovlB++2Vn4t3T45/vAPn5HzuTuyv18muK1sCHNdRa1P69Z5tO r96A== X-Forwarded-Encrypted: i=1; AJvYcCVEH2kz0DjA5Z1z4cbwLTnoNgQjAWqcYHNB8TCeB29r9wajs9brI8sW+644emaVRhsNWYlVmR3nH8d0J9RMxqjW57bDUeYSVxiSg0jqzeI3NHBtI/HdxKho4x40hD1bH1SkFF4lXJby984eyk6dQYK4WftIfHmGvvK/dRUKP4q2KALspFVmK1dBgqElCg+RMdE= X-Gm-Message-State: AOJu0YxAXIJRfedFoaYHw+gMwQhCBbgH50rRZ62lg/XQ54sEpY1sYG+g nXIOEvEb2Yi/vjGc0Vl6kCZhxti9+GlKPWdNVY/lRpf3rytxidAqVhlhGvHWh8op7nezkD0fxcD RiFvgiTkXayMMEHsPfHEoeVwtVnk= X-Google-Smtp-Source: AGHT+IFr/mk89OIuDrAQJycz/41pho9/CO7z4HflnAOOqjYDCkgQsVY3qY3d4UHeD1DTdmjg2EqLmOygabHMwsrrrz0= X-Received: by 2002:a05:600c:3508:b0:416:2f34:b2e3 with SMTP id h8-20020a05600c350800b004162f34b2e3mr2425012wmq.38.1712351766238; Fri, 05 Apr 2024 14:16:06 -0700 (PDT) MIME-Version: 1.0 References: <20240329203909.GS9427@gnu.wildebeest.org> <20240401150617.GF19478@gnu.wildebeest.org> <12215cd2-16db-4ee4-bd98-6a4bcf318592@cs.ucla.edu> <6239192ba9ff8aad0752309a54b633dc75a57c77.camel@tugraz.at> <8e877d2f-01e0-c786-dea5-265edbdc0c07@suse.de> <8d84f989031aa34eae919f8ff2d3cb4e60faf6a7.camel@gwdg.de> In-Reply-To: <8d84f989031aa34eae919f8ff2d3cb4e60faf6a7.camel@gwdg.de> From: Andrew Sutton Date: Fri, 5 Apr 2024 17:15:55 -0400 Message-ID: Subject: Re: Sourceware mitigating and preventing the next xz-backdoor To: Martin Uecker Cc: Jonathon Anderson , Michael Matz , Ian Lance Taylor , Paul Koning , Paul Eggert , Sandra Loosemore , Mark Wielaard , overseers@sourceware.org, gcc@gcc.gnu.org, binutils@sourceware.org, gdb@sourceware.org, libc-alpha@sourceware.org Content-Type: multipart/alternative; boundary="000000000000c1df8c06155ff6aa" X-Spam-Status: No, score=-3030.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --000000000000c1df8c06155ff6aa Content-Type: text/plain; charset="UTF-8" > > > > > I think the key difference here is that Autotools allows arbitrarily > generated code to be executed at any time. More modern build systems > require the use of specific commands/files to run arbitrary code, e.g. > CMake (IIRC [`execute_process()`][2] and [`ExternalProject`][3]), Meson > ([`run_command()`][1]), Cargo ([`build.rs`][4]).\ > > To me it seems that Cargo is the absolute worst case with respect to > supply chain attacks. > > It pulls in dependencies recursively from a relatively uncurated > list of projects, puts the source of all those dependencies into a > hidden directory in home, and runs Build.rs automatically with > user permissions. > 100% this. Wait until you learn how proc macros work. --000000000000c1df8c06155ff6aa--