🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.git
Article #51

Re: git non-intrusive clone

#51
From: "Luca Di Carlo"
Date: Wed, 07 Oct 2026 19:19
40 lines
10977 bytes
Hey,
You are right, I've re-read the article that I had in mind, he downloads it as zip before, not as clone.
`.git` is not cloned. 
Sorry for that. 
Thanks

On Wed, Oct 7, 2026, at 20:54, D. Ben Knoble wrote:
> I may have misunderstood, but…
> 
> On Wed, Oct 7, 2026 at 4:40 AM Luca Di Carlo wrote:
> >
> > Hey everyone,
> > I am reading more and more blog posts about job interviews that require the people to git clone a malicious repo with commands executed using git hooks.
> 
> I don't think a _clone_ can ship and enable hooks on its own. (I know
> of at least one npm package that wants to install Git hooks when you
> run "npm i"/"npm ci", though… turn on "ignore-scripts" for that.) That
> is, you should be very careful executing anything from a cloned
> repository you don't trust, but I don't think a clone can ship
> executable hooks in a meaningful way.
> 
> What *can* get you is an archive that includes ".git/", since it can
> contain hooks that Git will execute (modulo safe.directory, I think,
> but that typically doesn't apply in these situations). So: also be
> careful extracting arbitrary archives!
> 
> Maybe you had other security flaw in mind, or maybe someone else can
> tell me how we fix this beyond "tell folks to be careful" (which I
> agree doesn't scale well).
> 
> -- 
> D. Ben Knoble
> 

Luca
Technical Details
Message-ID: <d6dc70f6-f155-4a5a-b647-ac24b2b1ed37@app.fastmail.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-71401-linux-kernel-git=dewy.ru
References: <e30c5b13-5ca3-43d1-a87a-d807b71bad7b@app.fastmail.com> <CALnO6CCTbWLn2rO9ASr+5K07vqkaWCx+H8NsCxaAMgHUYR=z5g@mail.gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-71401-linux-kernel-git=dewy.ru
From: luca@dicarlo.email ("Luca Di Carlo")
Newsgroups: linux.kernel.git
Subject: Re: git non-intrusive clone
Date: Wed, 07 Oct 2026 21:19:02 +0200
Organization: Usenet Network
Message-ID: <d6dc70f6-f155-4a5a-b647-ac24b2b1ed37@app.fastmail.com>
References: <e30c5b13-5ca3-43d1-a87a-d807b71bad7b@app.fastmail.com>
 <CALnO6CCTbWLn2rO9ASr+5K07vqkaWCx+H8NsCxaAMgHUYR=z5g@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
	logging-data="719986"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:077W+AulBlX5ehZvAr/i5u7+CCU= sha256:eEoNMWTHGiCx2C0HWr4PkVoNLy3C8brxKFNlD6RACNo=
	sha1:E8qVwRPCdburYRCPnLW08kmjrMo= sha256:T2/HkIyJaXftgaH0fF2PuH7vS8Pndr98eXkUvj9ulAM=
List-ID: <git.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id A434610F21E; Wed,  7 Oct 2026 22:20:41 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -0.75
X-Spam-Status: No, score=-0.75 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
	MAILING_LIST_MULTI=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
	URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=dicarlo.email header.b=Bu97nZjk; dkim=pass (2048-bit key)
	header.d=messagingengine.com header.b=RkhewT0V
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id Qt_DFOuZilNm;
	Wed,  7 Oct 2026 22:20:38 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=git+bounces-71401-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=dicarlo.email
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id 892FD10F218; Wed,  7 Oct 2026 22:20:34 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
	by tor.lore.kernel.org (Postfix) with ESMTP id 3E8732B6D0; Wed,  7 Oct 2026 19:20:28 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 628364E533C;
	Wed,  7 Oct 2026 19:20:26 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=dicarlo.email header.i=@dicarlo.email header.b="Bu97nZjk";
	dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="RkhewT0V"
X-Received: from fhigh-a7-smtp.messagingengine.com (fhigh-a7-smtp.messagingengine.com [103.168.172.158])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 42A7B4E36F8
	for <git@vger.kernel.org>; Wed,  7 Oct 2026 19:20:19 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.158
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1791400822; cv=none; b=CnDCG0Au7A5vzOd9kDCkTcqhKGhnGA9ytxSLNRdMQlMwowePhWtNsK0roFCXJSNtkSM+Okwm5/dBinpOPKAVkF7VEQysfS+2+5ogYPytxaDpQvUZ8U/KN36l0AwARh52lx2aaKS8pBnxAmA1YNd50uWUe1yTKyFd+1qZ79b7o70=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1791400822; c=relaxed/simple;
	bh=laZExpenkr6pf9XCly7/weCkeiSIV8WKzDxx/dKwu/U=;
	h=MIME-Version:Date:From:To:Cc:Message-Id:In-Reply-To:References:
	 Subject:Content-Type; b=CYbDJvqrjB+29xe69L4magoBv5i2nj73xb1KkExNQyjdaOfNjb/bQXWELQoloU8imRYwP1uPum7DrLrho3mQq4uVcXdQ0PpjpFqltuFolpRuQTpz2q7NC1T3q5XsHTZkJWFLzvSVvCwuU9636T1CLmG8RaihHAT5hbtecDG8iWo=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dicarlo.email; spf=pass smtp.mailfrom=dicarlo.email; dkim=pass (2048-bit key) header.d=dicarlo.email header.i=@dicarlo.email header.b=Bu97nZjk; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=RkhewT0V; arc=none smtp.client-ip=103.168.172.158
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dicarlo.email
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=dicarlo.email
X-Received: from ams-compute-01.internal (ams-compute-01.internal [10.64.2.61])
	by mailfhigh.phl.internal (Postfix) with ESMTP id 147D014000C2
	for <git@vger.kernel.org>; Wed,  7 Oct 2026 15:20:18 -0400 (EDT)
X-Received: from ams-imap-11 ([10.64.2.31])
  by ams-compute-01.internal (MEProxy); Wed, 07 Oct 2026 15:20:18 -0400
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dicarlo.email;
	 h=cc:cc:content-transfer-encoding:content-type:content-type
	:date:date:from:from:in-reply-to:in-reply-to:message-id
	:mime-version:references:reply-to:subject:subject:to:to; s=fm1;
	 t=1791400817; x=1791487217; bh=laZExpenkr6pf9XCly7/weCkeiSIV8WK
	zDxx/dKwu/U=; b=Bu97nZjk4ybTnBlQuurR19qCGE/McEVPVKtyhZLcCpHdWGks
	iECVIhvWHrNrrFsDuejhh5lMAH6B32e1KDzHmtdRH1AKi53VVb6/jbTe5vzHckfA
	X3eGcy5CF/ma1OgNRkOmCwwN6/FWbhEXjuGXPS2BYPyzRrisGp0isYYPkS0BAKKQ
	gZDQDQSq8iTg99ImYlePT8X3pFSyxmKhnz8Se736Meer01twwDFSc60ZXFlhRSBs
	tLpKi445yy7bh/ztijkGOWUVfjLJOdDHWjCd8N57tRSNNt6brDAJV4cGj4RU1Hyn
	qdImqbdleVeNpVfnfOG4EL1CGDiF9GJW830hVw==
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
	messagingengine.com; h=cc:cc:content-transfer-encoding
	:content-type:content-type:date:date:feedback-id:feedback-id
	:from:from:in-reply-to:in-reply-to:message-id:mime-version
	:references:reply-to:subject:subject:to:to:x-me-proxy
	:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1791400817; x=
	1791487217; bh=laZExpenkr6pf9XCly7/weCkeiSIV8WKzDxx/dKwu/U=; b=R
	khewT0VF3339AEUlvGArLg0dCvsvVY5fKSMu7or3SADv2eduhYFM1PTDoAwadxuC
	9bLxVCSE4xH+hDaTToqsguoCMTlHVMwo+BlyhIpw/Rb/i1nKyK7AgjIntThgKi/f
	76PDgNbywDIfPkJ8yFrt/YQ0wT8y2+cIjp9Oeng+kdDy+s1wEtS1knZZj8cBcIhH
	y9YKoxMcl/5O1Pb3+ILdsiwhmFvFMN00PND+XCs1bSkk81e10GjkVMmAr1GUqCZe
	lRGyxslR21VK0sr6/0TRXoFnqkxVrZwc5tKlgvyxgZqQRxO/bFxVZmXkPLYXf8UE
	EjccQdu5/GrlJOqMiKalQ==
X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-06;
	repo=github.com/dkim2wg/interop; date=2026-10-04; sw=lmtpprox;
	action=sign d=dicarlo.email a=rsa-sha256;
X-DKIM2-Signature: i=1; m=1; t=1791400817; d=dicarlo.email;
	mf=PGx1Y2FAZGljYXJsby5lbWFpbD4=;
	rt=PGdpdEB2Z2VyLmtlcm5lbC5vcmc+;
	s=fm1:rsa-sha256:kcxf8gz6R2Z/tvTt8IwJqN91E6dkP/jJKgGVuvGs2G12aLu
	21dYrDKELdsyYK/rGj3zWfhetYRRFSnGdOmGeEyMPobPLmfDl5k81aZEtqjdKA+Q
	cc1BTXXFaIderagmwqNppJHWnM3uX9XgQ3dqIrXDB9w/5INwtpXytDWpRFaYBRAY
	jYbwqWFsaBKoOgTHtTtecdCpThQij1BPJSrb20e9V2b6MrMlZPONNJ744ctjk5r+
	DZjHjH+rMfrYQhMKbdABwMRrN2z/vu7rksUs8cItFL0xeeYsFkJ5Pmary6epSiiq
	atMCf6TAAk3vLsWizqc3dxyHqSVNjPdZdQgNYqg==;
X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-06;
	repo=github.com/dkim2wg/interop; date=2026-10-04; sw=lmtpprox;
	action=mi-m=1; hc=12;
	hn=cc,content-transfer-encoding,content-type,date,feedback-id,
	from,in-reply-to,message-id,mime-version,references,subject,to;
X-Message-Instance: m=1; h=sha256:x/iJHPb/ek31ucvcy9MfUdXV5/sFxaH8KWPe+LpCymY=:laZExpenkr6pf9XCly7/weCkeiSIV8WKzDxx/dKwu/U=;
X-ME-Sender: <xms:b5vGar-EICUIDjv_Oy7BOdqWfKjPasdn774p-cob7rpSZslvRtq1RQ>
    <xme:b5vGaijzvuP4rSzW7KjwLbqZZNND9OT8Vfgg97e2s6FnmNDUUBLbWexpRNfkTjK5v
    mAmOrFusDlwenxCkGnURl2l32H4t7p1BHxehPeKuwjK1GomwFoHv0WQ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3269492f:Fastmail
X-Received: by mailuser.ams.internal (Postfix, from userid 501)
	id 51CEEF8008C; Wed,  7 Oct 2026 15:20:15 -0400 (EDT)
X-Mailer: MessagingEngine.com Webmail Interface
X-Precedence: bulk
X-Mailing-List: git@vger.kernel.org
X-List-Subscribe: <mailto:git+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:git+unsubscribe@vger.kernel.org>
X-Cc: git@vger.kernel.org
X-In-Reply-To:  <CALnO6CCTbWLn2rO9ASr+5K07vqkaWCx+H8NsCxaAMgHUYR=z5g@mail.gmail.com>