git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Avery Pennarun <apenwarr@gmail.com>
To: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Cc: walt <w41ter@gmail.com>, git@vger.kernel.org
Subject: Re: Question about scm security holes
Date: Fri, 5 Mar 2010 13:22:19 -0500	[thread overview]
Message-ID: <32541b131003051022oe64428bsa387e64e30bbeaab@mail.gmail.com> (raw)
In-Reply-To: <alpine.DEB.1.00.1003050953580.20986@pacific.mpi-cbg.de>

On Fri, Mar 5, 2010 at 4:25 AM, Johannes Schindelin
<Johannes.Schindelin@gmx.de> wrote:
> The trick now is to craft the commit in such a manner that it will not be
> noticed retro-actively. This is a simple case of social engineering: you
> have to imitate the style of the committer/author you are impersonating.
> The commit message must look like the usual ones (typos, preferred words,
> grammar, length of paragraphs, comprehensibility, etc)
>
> Likewise, the code has to be analyzed for style, and obviously for most
> likely targets of a backdoor (both in terms of "it is a perfect spot for
> a backdoor" and "it is not uncommon for the author to touch that
> part of the code").

There is still one major advantage to preventing modification of past
commits: once you find out there's been a breach, you can just go back
through the commits *since* the breach and double-check them.  Without
that guarantee, you have to recheck *every* commit, which is much more
work.

Not to say that a sneaky commit would be easy to detect, though.  I
often add bugs to my own code without even trying to hide them, and
they're still pretty hard to find afterward.

Have fun,

Avery

  parent reply	other threads:[~2010-03-05 18:22 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-04 20:09 Question about scm security holes walt
2010-03-05  2:03 ` Avery Pennarun
2010-03-05  3:00   ` John Tapsell
2010-03-05  3:19     ` Avery Pennarun
2010-03-05  4:07       ` John Tapsell
2010-03-05  3:20   ` walt
2010-03-05  3:28     ` Avery Pennarun
2010-03-05  7:36   ` Andreas Krey
2010-03-05  9:25   ` Johannes Schindelin
2010-03-05 10:49     ` Jakub Narebski
2010-03-05 18:22     ` Avery Pennarun [this message]
2010-03-05 22:33       ` Johannes Schindelin
2010-03-05 17:47 ` Daniel Barkalow

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=32541b131003051022oe64428bsa387e64e30bbeaab@mail.gmail.com \
    --to=apenwarr@gmail.com \
    --cc=Johannes.Schindelin@gmx.de \
    --cc=git@vger.kernel.org \
    --cc=w41ter@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).