<div dir="ltr"><div><br></div>Maybe now that bitcoin is growing out of the toy phase it&#39;s an idea to start gpg signing commits, like the Linux kernel (<a href="https://lwn.net/Articles/466468/">https://lwn.net/Articles/466468/</a>).<div>
<br></div><div>But I suppose then we can&#39;t use github anymore to merge as-is and need manual steps?<div><br></div><div>Wladimir</div><div><br><div><br></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Tue, Apr 2, 2013 at 12:54 AM, Roy Badami <span dir="ltr">&lt;<a href="mailto:roy@gnomon.org.uk" target="_blank">roy@gnomon.org.uk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
And the moment I hit send I realised it&#39;s not necessarily true.<br>
Conceivably, a collision attack might help you craft two commits (one<br>
good, one bad) with the same hash.<br>
<br>
But I still maintain what I just posted is true: if someone gets<br>
<div class="im HOEnZb">malicious code into the repo, it&#39;s going to be by social engineering,<br>
not by breaking the cyrpto.<br>
<br>
roy<br>
<br>
<br>
</div><div class="HOEnZb"><div class="h5">On Mon, Apr 01, 2013 at 11:51:07PM +0100, Roy Badami wrote:<br>
&gt; The attack Schneier is talking about is a collision attack (i.e. it<br>
&gt; creates two messages with the same hash, but you don&#39;t get to choose<br>
&gt; either of the messages).  It&#39;s not a second preimage attack, which is<br>
&gt; what you would need to be able to create a message that hashes to the<br>
&gt; same value of an existing message.<br>
&gt;<br>
&gt; (And it neither have anything to do with the birthday paradox, BTW -<br>
&gt; which relates to the chance of eventually finding two messages that<br>
&gt; hash to the same value by pure change)<br>
&gt;<br>
&gt; If someone gets malicious code into the repo, it&#39;s going to be by<br>
&gt; social engineering, not by breaking the cyrpto.<br>
&gt;<br>
&gt; roy<br>
&gt;<br>
&gt; On Tue, Apr 02, 2013 at 12:27:51AM +0200, Melvin Carvalho wrote:<br>
&gt; &gt; On 2 April 2013 00:10, Will &lt;<a href="mailto:will@phase.net">will@phase.net</a>&gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt; &gt; The threat of a SHA1 collision attack to insert a malicious pull request<br>
&gt; &gt; &gt; are tiny compared with the other threats - e.g. github being compromised,<br>
&gt; &gt; &gt; one of the core developers&#39; passwords being compromised, one of the core<br>
&gt; &gt; &gt; developers going rogue, sourceforge (distribution site) being compromised<br>
&gt; &gt; &gt; etc etc... believe me there&#39;s a lot more to worry about than a SHA1<br>
&gt; &gt; &gt; attack...<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Not meaning to scare, just to put things in perspective - this is why we<br>
&gt; &gt; &gt; all need to peer review each others commits and keep an eye out for<br>
&gt; &gt; &gt; suspicious commits, leverage the benefits of this project being open source<br>
&gt; &gt; &gt; and easily peer reviewed.<br>
&gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; Very good points, and I think you&#39;re absolutely right.<br>
&gt; &gt;<br>
&gt; &gt; But just running the numbers, to get the picture, based of scheiner&#39;s<br>
&gt; &gt; statistics:<br>
&gt; &gt;<br>
&gt; &gt; <a href="http://www.schneier.com/blog/archives/2012/10/when_will_we_se.html" target="_blank">http://www.schneier.com/blog/archives/2012/10/when_will_we_se.html</a><br>
&gt; &gt;<br>
&gt; &gt; We&#39;re talking about a million terrahashes = 2^60 right?<br>
&gt; &gt;<br>
&gt; &gt; With the block chain, you only have a 10 minute window, but with source<br>
&gt; &gt; code you have a longer time to prepare.<br>
&gt; &gt;<br>
&gt; &gt; Couldnt this be done with an ASIC in about a week?<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Will<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; On 1 April 2013 23:52, Melvin Carvalho &lt;<a href="mailto:melvincarvalho@gmail.com">melvincarvalho@gmail.com</a>&gt; wrote:<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt; On 1 April 2013 20:28, Petr Praus &lt;<a href="mailto:petr@praus.net">petr@praus.net</a>&gt; wrote:<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt;&gt; An attacker would have to find a collision between two specific pieces<br>
&gt; &gt; &gt;&gt;&gt; of code - his malicious code and a useful innoculous code that would be<br>
&gt; &gt; &gt;&gt;&gt; accepted as pull request. This is the second, much harder case in the<br>
&gt; &gt; &gt;&gt;&gt; birthday problem. When people talk about SHA-1 being broken they actually<br>
&gt; &gt; &gt;&gt;&gt; mean the first case in the birthday problem - find any two arbitrary values<br>
&gt; &gt; &gt;&gt;&gt; that hash to the same value. So, no I don&#39;t think it&#39;s a feasible attack<br>
&gt; &gt; &gt;&gt;&gt; vector any time soon.<br>
&gt; &gt; &gt;&gt;&gt;<br>
&gt; &gt; &gt;&gt;&gt; Besides, with that kind of hashing power, it might be more feasible to<br>
&gt; &gt; &gt;&gt;&gt; cause problems in the chain by e.g. constantly splitting it.<br>
&gt; &gt; &gt;&gt;&gt;<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt; OK, maybe im being *way* too paranoid here ... but what if someone had<br>
&gt; &gt; &gt;&gt; access to github, could they replace one file with one they had prepared at<br>
&gt; &gt; &gt;&gt; some point?<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt;&gt;<br>
&gt; &gt; &gt;&gt;&gt;<br>
&gt; &gt; &gt;&gt;&gt; On 1 April 2013 03:26, Melvin Carvalho &lt;<a href="mailto:melvincarvalho@gmail.com">melvincarvalho@gmail.com</a>&gt; wrote:<br>
&gt; &gt; &gt;&gt;&gt;<br>
&gt; &gt; &gt;&gt;&gt;&gt;  I was just looking at:<br>
&gt; &gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt; &gt;&gt;&gt;&gt; <a href="https://bitcointalk.org/index.php?topic=4571.0" target="_blank">https://bitcointalk.org/index.php?topic=4571.0</a><br>
&gt; &gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt; &gt;&gt;&gt;&gt; I&#39;m just curious if there is a possible attack vector here based on the<br>
&gt; &gt; &gt;&gt;&gt;&gt; fact that git uses the relatively week SHA1<br>
&gt; &gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt; &gt;&gt;&gt;&gt; Could a seemingly innocuous pull request generate another file with a<br>
&gt; &gt; &gt;&gt;&gt;&gt; backdoor/nonce combination that slips under the radar?<br>
&gt; &gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt; &gt;&gt;&gt;&gt; Apologies if this has come up before ...<br>
&gt; &gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt; &gt;&gt;&gt;&gt; ------------------------------------------------------------------------------<br>
&gt; &gt; &gt;&gt;&gt;&gt; Own the Future-Intel&amp;reg; Level Up Game Demo Contest 2013<br>
&gt; &gt; &gt;&gt;&gt;&gt; Rise to greatness in Intel&#39;s independent game demo contest.<br>
&gt; &gt; &gt;&gt;&gt;&gt; Compete for recognition, cash, and the chance to get your game<br>
&gt; &gt; &gt;&gt;&gt;&gt; on Steam. $5K grand prize plus 10 genre and skill prizes.<br>
&gt; &gt; &gt;&gt;&gt;&gt; Submit your demo by 6/6/13. <a href="http://p.sf.net/sfu/intel_levelupd2d" target="_blank">http://p.sf.net/sfu/intel_levelupd2d</a><br>
&gt; &gt; &gt;&gt;&gt;&gt; _______________________________________________<br>
&gt; &gt; &gt;&gt;&gt;&gt; Bitcoin-development mailing list<br>
&gt; &gt; &gt;&gt;&gt;&gt; <a href="mailto:Bitcoin-development@lists.sourceforge.net">Bitcoin-development@lists.sourceforge.net</a><br>
&gt; &gt; &gt;&gt;&gt;&gt; <a href="https://lists.sourceforge.net/lists/listinfo/bitcoin-development" target="_blank">https://lists.sourceforge.net/lists/listinfo/bitcoin-development</a><br>
&gt; &gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt; &gt;&gt;&gt;<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt; ------------------------------------------------------------------------------<br>
&gt; &gt; &gt;&gt; Own the Future-Intel&amp;reg; Level Up Game Demo Contest 2013<br>
&gt; &gt; &gt;&gt; Rise to greatness in Intel&#39;s independent game demo contest.<br>
&gt; &gt; &gt;&gt; Compete for recognition, cash, and the chance to get your game<br>
&gt; &gt; &gt;&gt; on Steam. $5K grand prize plus 10 genre and skill prizes.<br>
&gt; &gt; &gt;&gt; Submit your demo by 6/6/13. <a href="http://p.sf.net/sfu/intel_levelupd2d" target="_blank">http://p.sf.net/sfu/intel_levelupd2d</a><br>
&gt; &gt; &gt;&gt; _______________________________________________<br>
&gt; &gt; &gt;&gt; Bitcoin-development mailing list<br>
&gt; &gt; &gt;&gt; <a href="mailto:Bitcoin-development@lists.sourceforge.net">Bitcoin-development@lists.sourceforge.net</a><br>
&gt; &gt; &gt;&gt; <a href="https://lists.sourceforge.net/lists/listinfo/bitcoin-development" target="_blank">https://lists.sourceforge.net/lists/listinfo/bitcoin-development</a><br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;<br>
&gt;<br>
&gt; &gt; ------------------------------------------------------------------------------<br>
&gt; &gt; Own the Future-Intel&amp;reg; Level Up Game Demo Contest 2013<br>
&gt; &gt; Rise to greatness in Intel&#39;s independent game demo contest.<br>
&gt; &gt; Compete for recognition, cash, and the chance to get your game<br>
&gt; &gt; on Steam. $5K grand prize plus 10 genre and skill prizes.<br>
&gt; &gt; Submit your demo by 6/6/13. <a href="http://p.sf.net/sfu/intel_levelupd2d" target="_blank">http://p.sf.net/sfu/intel_levelupd2d</a><br>
&gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; Bitcoin-development mailing list<br>
&gt; &gt; <a href="mailto:Bitcoin-development@lists.sourceforge.net">Bitcoin-development@lists.sourceforge.net</a><br>
&gt; &gt; <a href="https://lists.sourceforge.net/lists/listinfo/bitcoin-development" target="_blank">https://lists.sourceforge.net/lists/listinfo/bitcoin-development</a><br>
&gt;<br>
&gt;<br>
&gt; ------------------------------------------------------------------------------<br>
&gt; Own the Future-Intel&amp;reg; Level Up Game Demo Contest 2013<br>
&gt; Rise to greatness in Intel&#39;s independent game demo contest.<br>
&gt; Compete for recognition, cash, and the chance to get your game<br>
&gt; on Steam. $5K grand prize plus 10 genre and skill prizes.<br>
&gt; Submit your demo by 6/6/13. <a href="http://p.sf.net/sfu/intel_levelupd2d" target="_blank">http://p.sf.net/sfu/intel_levelupd2d</a><br>
&gt; _______________________________________________<br>
&gt; Bitcoin-development mailing list<br>
&gt; <a href="mailto:Bitcoin-development@lists.sourceforge.net">Bitcoin-development@lists.sourceforge.net</a><br>
&gt; <a href="https://lists.sourceforge.net/lists/listinfo/bitcoin-development" target="_blank">https://lists.sourceforge.net/lists/listinfo/bitcoin-development</a><br>
&gt;<br>
<br>
------------------------------------------------------------------------------<br>
Own the Future-Intel&amp;reg; Level Up Game Demo Contest 2013<br>
Rise to greatness in Intel&#39;s independent game demo contest.<br>
Compete for recognition, cash, and the chance to get your game<br>
on Steam. $5K grand prize plus 10 genre and skill prizes.<br>
Submit your demo by 6/6/13. <a href="http://p.sf.net/sfu/intel_levelupd2d" target="_blank">http://p.sf.net/sfu/intel_levelupd2d</a><br>
_______________________________________________<br>
Bitcoin-development mailing list<br>
<a href="mailto:Bitcoin-development@lists.sourceforge.net">Bitcoin-development@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/bitcoin-development" target="_blank">https://lists.sourceforge.net/lists/listinfo/bitcoin-development</a><br>
</div></div></blockquote></div><br></div>