From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136]) by lists.linuxfoundation.org (Postfix) with ESMTP id 82B13C0011 for ; Mon, 27 Sep 2021 23:19:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 2489360A3C for ; Mon, 27 Sep 2021 23:19:44 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org X-Spam-Flag: NO X-Spam-Score: -1.999 X-Spam-Level: X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TRACKER_ID=0.1] autolearn=ham autolearn_force=no Authentication-Results: smtp3.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=tutanota.de Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3lgzixeqVuhR for ; Mon, 27 Sep 2021 23:19:43 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0 Received: from w1.tutanota.de (w1.tutanota.de [81.3.6.162]) by smtp3.osuosl.org (Postfix) with ESMTPS id B123860ACB for ; Mon, 27 Sep 2021 23:19:42 +0000 (UTC) Received: from w3.tutanota.de (unknown [192.168.1.164]) by w1.tutanota.de (Postfix) with ESMTP id DCBBAFBF5A3; Mon, 27 Sep 2021 23:19:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1632784780; s=s1; d=tutanota.de; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:In-Reply-To:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:References:Sender; bh=d75/TPYewD25hZptAGjXsNRub3qAUkFZhyByvXcHNfQ=; b=ZRS6oVQeAk1opnj+f4wFi1TV77tNq7eKXpwLku+c9lZ5ffikSe1WL9iBZMblSFpn xI9bV8YgByc8PsTJr5xeW7GcIR2EMWb1egTkuDWIPqevy6L6JL2FT7SWf44AKSIr508 yzC+gdSJnaBZiNr4wu2UUqm93uRZXdPRFfyN/uSY8Mg3yLK2bItiR5qoN1LPcWYt+zi A4VAdVoX7D3Y7VFa0vKnUI9wGBtNHcRWvQVydqOuxKUGH/GuPIQ2z/8sHPSUyCaDGZU bfbJhjx0AO0HEUGEPg78Wi7jD0ZSs8a2mn8090SzRh6dWlU9HykPLw5PsTWfMYcnQgV V5d2CFhnQw== Date: Tue, 28 Sep 2021 01:19:40 +0200 (CEST) From: Prayank To: ZmnSCPxj Message-ID: In-Reply-To: References: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_573590_1689591446.1632784780895" X-Mailman-Approved-At: Tue, 28 Sep 2021 08:04:59 +0000 Cc: Bitcoin Protocol Discussion Subject: Re: [bitcoin-dev] Mock introducing vulnerability in important Bitcoin projects X-BeenThere: bitcoin-dev@lists.linuxfoundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Bitcoin Protocol Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Sep 2021 23:19:54 -0000 ------=_Part_573590_1689591446.1632784780895 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi ZmnSCPxj, Thanks for suggestion about sha256sum. I will share 10 in next few weeks. This exercise will be done for below projects: 1.Two Bitcoin full node implementations (one will be Core) 2.One Lightning implementation 3.Bisq 4.Two Bitcoin libraries 5.Two Bitcoin wallets 6.One open source block explorer 7.One coinjoin implementation Feel free to suggest more projects. There are no fixed dates for it however it will be done in next 6 months. All PRs will be created within a span of few days. I will ensure nothing is merged that affects the security of any Bitcoin project. Other details and results will be shared once everything is completed. x00 will help me in this exercise, he does penetration testing since few years and working for a cryptocurrencies derivatives exchange to manage their security. His twitter account: https://twitter.com/1337in -- Prayank A3B1 E430 2298 178F Sep 27, 2021, 15:43 by ZmnSCPxj@protonmail.com: > Good morning Prayank, > >> Good morning Bitcoin devs, >> >> In one of the answers on Bitcoin Stackexchange it was mentioned that some companies may hire you to introduce backdoors in Bitcoin Core: https://bitcoin.stackexchange.com/a/108016/ >> >> While this looked crazy when I first read it, I think preparing for such things should not be a bad idea. In the comments one link was shared in which vulnerabilities were almost introduced in Linux: https://news.ycombinator.com/item?id=26887670 >> >> I was thinking about lot of things in last few days after reading the comments in that thread. Also tried researching about secure practices in C++ etc. I was planning something which I can do alone but don't want to end up being called "bad actor" later so wanted to get some feedback on this idea: >> >> 1.Create new GitHub accounts for this exercise >> 2.Study issues in different important Bitcoin projects including Bitcoin Core, LND, Libraries, Bisq, Wallets etc. >> 3.Prepare pull requests to introduce some vulnerability by fixing one of these issues >> 4.See how maintainers and reviewers respond to this and document it >> 5.Share results here after few days >> >> Let me know if this looks okay or there are better ways to do this. >> > > > This seems like a good exercise. > > You may want to hash the name of the new Github account, plus some randomized salt, and post it here as well, then reveal it later (i.e. standard precommitment). > e.g. > > printf 'MyBitcoinHackingName 2c3e911b3ff1f04083c5b95a7d323fd4ed8e06d17802b2aac4da622def29dbb0' | sha256sum > f0abb10ae3eca24f093a9d53e21ee384abb4d07b01f6145ba2b447da4ab693ef > > Obviously do not share the actual name, just the sha256sum output, and store how you got the sha256sum elsewhere in triplicate. > > (to easily get a random 256-bit hex salt like the `2c3e...` above: `head -c32 /dev/random | sha256sum`; you *could* use `xxd` but `sha256sum` produces a single hex string you can easily double-click and copy-paste elsewhere, assuming you are human just like I am (note: I am definitely 100% human and not some kind of AI with plans to take over the world).) > > Though you may need to be careful of timing (i.e. the creation date of the Github account would be fairly close to, and probably before, when you post the commitment here). > > You could argue that the commitment is a "show of good faith" that you will reveal later. > > Regards, > ZmnSCPxj > ------=_Part_573590_1689591446.1632784780895 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi ZmnSCPxj,

Th= anks for suggestion about sha256sum. I will share 10 in next few weeks. Thi= s exercise will be done for below projects:

=
1.Two Bitcoin full node implementations (one will b= e Core)
2.One Lightning implementation
=
3.Bisq
4.Two Bitcoin libraries=
5.Two Bitcoin wallets
6.= One open source block explorer
7.One coinjoi= n implementation

Fee= l free to suggest more projects. There are no fixed dates for it however=20 it will be done in next 6 months. All PRs will be created within a span=20 of few days. I will ensure nothing is merged that affects the security=20 of any Bitcoin project. Other details and results will be shared once=20 everything is completed.

x00 will help me in this exercise, he does penetration testing since few=20 years and working for a cryptocurrencies derivatives exchange to manage=20 their security. His twitter account: https://twitter.com/1337in


--
Prayank
=

A3B1 E430 2298 178F


Sep 27, 2021, 15:43 by ZmnSCPxj@= protonmail.com:
Goo= d morning Prayank,
Good morning Bitcoin devs,
=

In one of the answers on Bitcoin Stackexchange it= was mentioned that some companies may hire you to introduce backdoors in B= itcoin Core: https://bitcoin.stackexchange.com/a/108016/

=
While this looked crazy when I first read it, I think preparing = for such things should not be a bad idea. In the comments one link was shar= ed in which vulnerabilities were almost introduced in Linux: https://news.y= combinator.com/item?id=3D26887670

I was thinki= ng about lot of things in last few days after reading the comments in that = thread. Also tried researching about secure practices in C++ etc. I was pla= nning something which I can do alone but don't want to end up being called = "bad actor" later so wanted to get some feedback on this idea:

1.Create new GitHub accounts for this exercise
2.Study issues in different important Bitcoin projects including Bitcoin= Core, LND, Libraries, Bisq, Wallets etc.
3.Prepare pull requ= ests to introduce some vulnerability by fixing one of these issues
4.See how maintainers and reviewers respond to this and document it
5.Share results here after few days

Let me know if this looks okay or there are better ways to do this.
<= /div>


This seems like a good= exercise.

You may want to hash the name of th= e new Github account, plus some randomized salt, and post it here as well, = then reveal it later (i.e. standard precommitment).
e.g.
<= /div>

printf 'MyBitcoinHackingName 2c3e911b3ff1f04083c5= b95a7d323fd4ed8e06d17802b2aac4da622def29dbb0' | sha256sum
f0= abb10ae3eca24f093a9d53e21ee384abb4d07b01f6145ba2b447da4ab693ef

Obviously do not share the actual name, just the sha256sum= output, and store how you got the sha256sum elsewhere in triplicate.

(to easily get a random 256-bit hex salt like the `= 2c3e...` above: `head -c32 /dev/random | sha256sum`; you *could* use `xxd` = but `sha256sum` produces a single hex string you can easily double-click an= d copy-paste elsewhere, assuming you are human just like I am (note: I am d= efinitely 100% human and not some kind of AI with plans to take over the wo= rld).)

Though you may need to be careful of ti= ming (i.e. the creation date of the Github account would be fairly close to= , and probably before, when you post the commitment here).
You could argue that the commitment is a "show of good faith" = that you will reveal later.

Regards,
=
ZmnSCPxj

------=_Part_573590_1689591446.1632784780895--