Article View: news.software.nntp
Article #61015Re: [FNTP] 'in-completeness'
From: Kjetil Torgrim Homme
Date: Fri, 04 Oct 2002 15:37
Date: Fri, 04 Oct 2002 15:37
110 lines
6606 bytes
6606 bytes
[Curt Welch]:
>
> Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:
> > the "answer" to part N-1 and N+1 must be a hash of their content.
> > anything else will allow the attacker to keep the answers and replace
> > the content. assumption: we trust part 1. it is therefore part 1
> > which must contain the information allowing us to trust part 2. (and
> > so on by recursion.)
> >
> > with such a hash in place (put it in a random header, it's acceptable
> > to use HEAD to choose the right candidate), the idea of using
> > overlapping parts is unnecessary.
>
> Ah, but we want to be able to trust reposts even if they have
> nothing to do with the orginal post.
mm, yes? I'll be more explicit. article 1 contains the segment
0..500k. it includes the header:
X-Next-Segment: offset=500000 size=5000000 md5=2ca809d77efa7254482d3350eb5abe53
article 2 includes the header:
X-Next-Segment: offset=1000000 size=5000000 md5=9cfe84382574173a6bf0af0333e30ed1
if you want to repost a segment, you presumably have the complete
file, and can calculate the MD5 hash of the byte range following your
segment. this scheme allows the reposts to use a different segment
size than the original, it only makes the code for the verification in
the client a little more complicated.
the main issue is the loss of part 1. then you've lost your anchor,
and trust in the other parts is reduced. but you can still piece the
parts together into chains when the hashes matches.
real 1 2 3 5 6 7
fake 4 5
you download parts 1 2 3 4. you notice that the hash of 4 doesn't
match the header of 3. you download both 5, and notice that the hash
of the fake 5 matches the header of the fake 4. so you trust the
other 5 more (but you're still not safe), download 6 and 7, and see
that they form a chain. you do know that you need to keep a look out
for the real 4 to get a complete message. when the real 4 arrives,
you will know whether the chain 5-6-7 is genuine.
if part 1 goes missing, nothing is certain, but the principle is the
same.
if part 1 is fake, we have a problem. my best suggestion is to look
at chain lengths.
> There must be some clever way to make this work. If there are
> lots of "fakes" posted, I don't think there is anyway to avoid
> having to download a lot of the fake articles, but once you have
> them all downloaded, you want the job of reconstructing this
> jig-saw puzzle to be resonable.
it's hard to avoid downloading fake data. I think X-Prev-Segment can
help there, actually. from the example above, if you look at that
header in both copies of 5, and see that one of them matches the fake
4, then you know which 5 is fake.
> One thing I was thinking about was trying to find a hash function
> that would allow you to calculate the file hash if you had hash
> values for each segment, without having to make a pass over all
> the raw data.
>
> [...]
> The problem with a simple sum of course is that it's completely
> trivial to generate fake data which produces the correct sum. So
> it offers no protection against forged data.
exactly.
> Is there some way to get the security of a strong hash but yet
> still have a way to calculate the file hash from the segment
> hashes so you can mix-and-match various segments quickly without
> having to recalculate an entire file hash over the file?
I suspect it is impossible to have a hash like that, and still make it
cryptographically secure.
> What if you did something like calculate a real hash of fixed
> sized blockes from the file (say 1024 bytes?), then define the
> file hash to be simply the sum, or XOR of all the block hash
> values?
>
> If all segments posted in this new system were required to be
> split on these 1K block boundries, then every article posted could
> have it's "hash" value included in the header (i.e. the sum of the
> hash of each of the blocks in that segment).
it could work for our purposes. I'd put that in a separate header,
and use the "real" hash in the msgid.
> Maybe something like this would give enough security from fake
> data but also make the job of sorting though real and fake
> articles fast enough to be practical? If so, all you could gain
> by posting fake articles is to make people waste time downloading
> them - they wouldn't prevent you from getting the real data.
I must ask, is terrorism such as this common? I have a feeling this
is all very theoretical.
--
Kjetil T. ==. ,,==. ,,==. ,,==. ,,==. ,,==
::://:::://:::://:::://:::://::::
=='' `=='' `=='' `=='' `=='' `== http://folding.stanford.edu
Technical Details
Message-ID:
<1r8z1e9pv2.fsf@vingodur.ifi.uio.no>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!129.240.148.23!uio.no!nntp.uio.no!ifi.uio.no!not-for-mailReferences:
<58068.n92202@archiver.winews.net> <20020924011222.716$tx@newsreader.com> <3147e.o92204@archiver.winews.net> <20020924234811.264$g2@newsreader.com> <15518.p9220c@archiver.winews.net> <20020926003453.621$EG@newsreader.com> <38427.r92204@archiver.winews.net> <1rofajcuom.fsf@vingodur.ifi.uio.no> <20020928124251.046$Da@newsreader.com> <39167.u92203@archiver.winews.net> <slrnapgpct.qiq.andrew+nonews@trinity.supernews.net> <3113g.u92200@archiver.winews.net> <slrnaph54l.qiq.andrew+nonews@trinity.supernews.net> <43236.1a2205@archiver.winews.net> <20021001093905.267$sh@newsreader.com> <30416.2a2200@archiver.winews.net> <20021002113832.345$xh@newsreader.com> <anf7os$me7$1@bob.news.rcn.net> <20021002223806.641$Bd@newsreader.com> <8Y9ochx3cDC@3247.org> <1rbs6behtt.fsf@atta.ifi.uio.no> <20021003220607.229$1n@newsreader.com>Show Full Headers
Complete Article Headers
Message-ID: <1r8z1e9pv2.fsf@vingodur.ifi.uio.no> Subject: Re: [FNTP] 'in-completeness' Date: Fri, 04 Oct 2002 15:37:53 +0000 From: Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> References: <58068.n92202@archiver.winews.net> <20020924011222.716$tx@newsreader.com> <3147e.o92204@archiver.winews.net> <20020924234811.264$g2@newsreader.com> <15518.p9220c@archiver.winews.net> <20020926003453.621$EG@newsreader.com> <38427.r92204@archiver.winews.net> <1rofajcuom.fsf@vingodur.ifi.uio.no> <20020928124251.046$Da@newsreader.com> <39167.u92203@archiver.winews.net> <slrnapgpct.qiq.andrew+nonews@trinity.supernews.net> <3113g.u92200@archiver.winews.net> <slrnaph54l.qiq.andrew+nonews@trinity.supernews.net> <43236.1a2205@archiver.winews.net> <20021001093905.267$sh@newsreader.com> <30416.2a2200@archiver.winews.net> <20021002113832.345$xh@newsreader.com> <anf7os$me7$1@bob.news.rcn.net> <20021002223806.641$Bd@newsreader.com> <8Y9ochx3cDC@3247.org> <1rbs6behtt.fsf@atta.ifi.uio.no> <20021003220607.229$1n@newsreader.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!129.240.148.23!uio.no!nntp.uio.no!ifi.uio.no!not-for-mail Newsgroups: news.software.nntp Organization: Dept. of Informatics, Univ. of Oslo, Norway Lines: 109 NNTP-Posting-Host: vingodur.ifi.uio.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: maud.ifi.uio.no 1033745873 12311 129.240.68.200 (4 Oct 2002 15:37:53 GMT) X-Complaints-To: abuse@ifi.uio.no NNTP-Posting-Date: 4 Oct 2002 15:37:53 GMT User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7