🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #60926

Re: [FNTP] 'in-completeness'

#60926
From: Curt Welch
Date: Wed, 02 Oct 2002 15:38
119 lines
8059 bytes
archiver@i3w.com (Juergen Helbing) wrote:
> curt@kcwc.com (Curt Welch) wrote:

> I agree that it would be worse if messages are not propagated because
> someone is faking msg-ids rather than "just confusing" downloading
> tools.
> If our "dream" of a "better binary usenet" where files can be identified
> automatically would become true, then such "forgery" would have a
> very similar effect: The automated tools (serverside/readerside) would
> be confused - and manual intervention would become necessary.
> Done with automated tools this seems to be a real danger for
> our efforts.

Yeah, this is worth looking into.  Automated systems that fail completly
once a single fake message is added to the group wouldn't be very useful.
We probably need ways to make it resonable for the automated tools to
identify the fakes from the real parts.

> Unfortunately life could be far more difficult: No matter what kind of
> "binary identification" we are going to introduce: Some sickos
> might "intercept" them - and send out own binaries as a "backpack".

Well, to start with, the download tools can look at the size of the message
and know it's fake if it's not large enough to hold what it says it holds.
Or download the segment and throw it out as trash if the decoded data does
not fit what the segment information claimed was in the article (something
it would do anyhow).

And it could tend to use segments from the same source (From: line, maybe
even Path: tail) first if possible so that if all the orginal segments are
available from the same source, it's more likely they would be the valid
ones.  But we want to be able to use segments posted by other people, so we
can't just throw them out.

When you post offset/size segments, the other think you can do is overlap
the segements so the last 50 bytes of one segment is repeated as the first
50 bytes of the next segment.  When the segments overlapped, the download
tool should not just ignore the bytes from the second segment, but verify
that they are the same.  That would be another possible tool to spot fakes
- and another thing the tool generating the fakes would have to get right
in order to disrupt the download.  But, I guess the guy trying to fool the
download tool is already creating custom software to duplicate the hash
etc, so makeing it get the overlap bytes correct would not be hard either.

But past that, what the tool will be left with is a collection of segments
some of which are real, and some which are fakes thrown in to try and
confuse the tool. It would be forced to try a game of mix and match to find
which combinations of segments, when combined, produced a file with a valid
hash.  Using one of the cryptographic hashes makes it very very hard to
fake that.

But, if you have a 100 part post, with 10 fake parts added, and no way for
the tool to identify the fakes from the reals other than trying every
combination, that won't be very workable because the number of combinations
and the amount of time required to recalculate the hash would take way too
long.  The user could be brought in to examine the articles and make a
guess at what combinations to try I guess.  Looking at Dates: and Path:
headers and any other headers that were added might help a real person spot
the fakes from the reals and allow them to delete the fakes from the set
and let the tool then try to combine what was left.

So I guess the tool could just have an error message that says "too many
conflicing segments - please delete some from the set).

This would allow end-user download tools to deal with the problem, but it's
not going to help something like a news server which was trying to do all
the combining automatically.  I suspect the answer there becomes it can't.
All it can do is group all the messages together (with all the overlaps
from the fakes etc included), and let the end user figure out the answer.
But by "group together", I'm thinking in terms of a new binary XOVER
command which would list all the segements for the same file in one group,
with much less overhead than the current XOVER command has.

> Servers cannot decide which msgs really belong together - unless
> they are scanning the full content for plausibility. So they would
> treat all the original and faked messages as "one entity" and
> try their very best to propagate them.

Yeah, that's what I was just thinking. :)

> This applies to all kinds of "modified and extended msg-id"
> - because the part which 'identifies' the binary is always
> public - and could be always faked.

Right, it's impossible to prevent that I believe with a system like Usenet.

> Does anybody have an idea how we could label splitted
> binaries generally in a way that it could not be faked as
> soon as the first parts are propagated ?  It would not be
> necessary to do this in the msg-id.

I suspect there is more we could do with secure hashes to make the job of
sorting out the fakes from the real segments easier for the download tool.
For example, if the posting tool calculated an MD5 hash of each segement it
was going to post, and included all those hash values in every segment,
then you reduce the mix-and-max problem down from one of a 500MB problem to
a 500KB problem (assuming you have the MD5 for every 500KB segment).

Even if re-posts happend on different boundries, you could find all the
segments needed to reconstruct each 500KB section of the file, and play the
mix-and-max game only on those segments until you found the ones which
correclty reconstructed that part of the file.

So, you would need a way to list offset-size-hash values in the article -
like at the end of the normal data.  This is easy when yEnc is used because
yEnc has an end-of-data marker even when multipart files are used.  You
could just add the list of segment hash values at the end in some standard
format and the current yEnc decoding tools would ignore it. MIME of course
makes it simple as well.

BTW, dealing with the fake segments makes the idea of using a quick hash
(of only the first X bytes of the file) unworkable.  You would need to
calculate the hash on the entire file in order to prevent these forged
parts from breaking things.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Technical Details
Message-ID: <20021002113832.345$xh@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.uchicago.edu!yellow.newsread.com!netaxs.com!newsread.com!grr!feed1.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
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>

Show Full Headers
Complete Article Headers
Message-ID: <20021002113832.345$xh@newsreader.com>
Subject: Re: [FNTP] 'in-completeness'
Date: Wed, 02 Oct 2002 15:38:32 +0000
From: curt@kcwc.com (Curt Welch)
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>
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.uchicago.edu!yellow.newsread.com!netaxs.com!newsread.com!grr!feed1.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com vUB/0B6Swxrixij4Qmh9TAL-+rLS,rS@nI_VxSK-@1qKCb
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5
  %IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 118