Thread View: news.software.nntp
12 messages
12 total messages
Started by Mark Hittinger
Sun, 03 Jan 1999 00:00
path header database/analysis ware
Author: Mark Hittinger
Date: Sun, 03 Jan 1999 00:00
Date: Sun, 03 Jan 1999 00:00
21 lines
1241 bytes
1241 bytes
Some time ago I saw a news related web site that inferred the peers that a particular site had by collecting and processing the Path: headers of news articles. Does anybody know if that software is available in the public domain? When attempting to analyze Path: headers for the spot where a forgery has occured, such a database might be of value in assigning a "confidence value" to each hop along the Path: header. It seems to me that we might be able to take that software and extend it to a tool that could be of use with the hc problem, i.e., selecting optimal pathhost values to passively UDP. Regards, Mark Hittinger ICGNetcom/DallasOps bugs@freebsd.netcom.com
Re: path header database/analysis ware
Author: Russ Allbery
Date: Sun, 03 Jan 1999 00:00
Date: Sun, 03 Jan 1999 00:00
29 lines
1843 bytes
1843 bytes
Mark Hittinger <bugs@freebsd.netcom.com> writes: > Some time ago I saw a news related web site that inferred the peers that > a particular site had by collecting and processing the Path: headers of > news articles. > Does anybody know if that software is available in the public domain? I have no idea, but a trivial implementation of that could be written in an afternoon by someone familiar with Perl. In fact, handling being stopped and restarted by the news server is the only hard part; if you bypass that whole mess by just adding a file feed of Path lines (using either the 1.7.2 patch for adding a Path flag to newsfeeds or using INN 2.x) and process that file with a script from time to time, it's downright simple. > It seems to me that we might be able to take that software and extend it > to a tool that could be of use with the hc problem, i.e., selecting > optimal pathhost values to passively UDP. I've thought about doing something similar to this, but using a feed of control.cancel, to decide which cancels to accept and which to refuse. It should work pretty well in theory; I haven't had a chance to try it in practice yet. -- Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Re: path header database/analysis ware
Author: Greg Andrews
Date: Mon, 04 Jan 1999 00:00
Date: Mon, 04 Jan 1999 00:00
31 lines
1929 bytes
1929 bytes
Russ Allbery <rra@stanford.edu> writes: >Brad Knowles <brad@shub-internet.org> writes: >> Russ Allbery <rra@stanford.edu> wrote: > >>> I've thought about doing something similar to this, but using a feed of >>> control.cancel, to decide which cancels to accept and which to refuse. >>> It should work pretty well in theory; I haven't had a chance to try it >>> in practice yet. > >> Problem is you need both a current feed (to see what effluent is being >> fed and through whom) and an archival database (so that you can see how >> things are supposed to be). Anyone can provide their own current feed, >> but that archival database is going to be rather more difficult to come >> by. > >You could build your own database just by letting it run for a week or so >and taking a look at the cancels it finds. A bit of cross-checking with >Andrew Gierth's list posted to news.admin.net-abuse.usenet, and it >shouldn't be hard to get pretty close to what you want. > How do you prevent an HC flood from putting bogus path relationships into your database? If you discard control and supersede messages, are there any gotchas? For example, control messages propagating differently than other traffic? -Greg
Re: path header database/analysis ware
Author: Russ Allbery
Date: Mon, 04 Jan 1999 00:00
Date: Mon, 04 Jan 1999 00:00
24 lines
1695 bytes
1695 bytes
Greg Andrews <gerg@shell1.ncal.verio.com> writes: > How do you prevent an HC flood from putting bogus path relationships > into your database? > If you discard control and supersede messages, are there any gotchas? > For example, control messages propagating differently than other > traffic? Well, for my purpose I'm specifically interested in distinguishing between valid spam cancels and other cancel messages, so I'd *only* be looking at cancel messages. And yes, their paths are often somewhat different than regular traffic. I'd start with cancels that I was very certain were authentic and figure out what paths they used, and leverage from there. It's generally not that hard to look at a cancel and tell whether or not it was forged. There are so few open servers these days that the stuff going through them has some bizarre paths. -- Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Re: path header database/analysis ware
Author: Brad Knowles
Date: Mon, 04 Jan 1999 00:00
Date: Mon, 04 Jan 1999 00:00
50 lines
3146 bytes
3146 bytes
In article <yllnjj6a4c.fsf@windlord.stanford.edu>, Russ Allbery
<rra@stanford.edu> wrote:
> Mark Hittinger <bugs@freebsd.netcom.com> writes:
>
> > Some time ago I saw a news related web site that inferred the peers that
> > a particular site had by collecting and processing the Path: headers of
> > news articles.
>
> > Does anybody know if that software is available in the public domain?
>
> I have no idea, but a trivial implementation of that could be written in
> an afternoon by someone familiar with Perl. In fact, handling being
> stopped and restarted by the news server is the only hard part; if you
> bypass that whole mess by just adding a file feed of Path lines (using
> either the 1.7.2 patch for adding a Path flag to newsfeeds or using INN
> 2.x) and process that file with a script from time to time, it's downright
> simple.
Actually, I wrote one about a month-and-a-half ago (among other
things, it was an exercise that I took on as the very first Perl program I
ever wrote from the ground-up -- previously I had modified Perl programs
written by others, but had never actually written one of my own).
If you'd like a copy, e-mail me privately. I would like to get some
outside commentary on the program before I publicly release it to the
'net.
> > It seems to me that we might be able to take that software and extend it
> > to a tool that could be of use with the hc problem, i.e., selecting
> > optimal pathhost values to passively UDP.
>
> I've thought about doing something similar to this, but using a feed of
> control.cancel, to decide which cancels to accept and which to refuse. It
> should work pretty well in theory; I haven't had a chance to try it in
> practice yet.
Problem is you need both a current feed (to see what effluent is being
fed and through whom) and an archival database (so that you can see how
things are supposed to be). Anyone can provide their own current feed,
but that archival database is going to be rather more difficult to come
by.
--
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
<http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0xE38CCEF1>
If you wouldn't take out a one-page ad in the Wall Street
Journal to say something, then don't say it by email.
Re: path header database/analysis ware
Author: Russ Allbery
Date: Mon, 04 Jan 1999 00:00
Date: Mon, 04 Jan 1999 00:00
23 lines
1674 bytes
1674 bytes
Brad Knowles <brad@shub-internet.org> writes: > Russ Allbery <rra@stanford.edu> wrote: >> I've thought about doing something similar to this, but using a feed of >> control.cancel, to decide which cancels to accept and which to refuse. >> It should work pretty well in theory; I haven't had a chance to try it >> in practice yet. > Problem is you need both a current feed (to see what effluent is being > fed and through whom) and an archival database (so that you can see how > things are supposed to be). Anyone can provide their own current feed, > but that archival database is going to be rather more difficult to come > by. You could build your own database just by letting it run for a week or so and taking a look at the cancels it finds. A bit of cross-checking with Andrew Gierth's list posted to news.admin.net-abuse.usenet, and it shouldn't be hard to get pretty close to what you want. -- Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Re: path header database/analysis ware
Author: Brad Knowles
Date: Tue, 05 Jan 1999 00:00
Date: Tue, 05 Jan 1999 00:00
65 lines
3823 bytes
3823 bytes
In article <ylempayfcd.fsf@windlord.stanford.edu>, Russ Allbery
<rra@stanford.edu> wrote:
> I'd start with cancels that I was very certain were authentic and figure
> out what paths they used, and leverage from there. It's generally not
> that hard to look at a cancel and tell whether or not it was forged.
> There are so few open servers these days that the stuff going through them
> has some bizarre paths.
Even PGP-certified NoCeM notices from a select few sites would be
subject to a simple replay attack from some other site.
The fundamental problem is that you're using purely in-band methods to
try to determine how the network should look, and pure in-band methods are
always subject to various types of spoofing.
You need to use some sort of out-of-band method to have any real
certainty as to what the paths really should be, and that just isn't
available.
Short of having the necessary out-of-band methods, the best you can do
is to have some sort of guess, and of course that guess will always be a
partial picture at best that is influenced by natural biases in traffic
flow and your place in the network.
For example, if I feed only a very small number of messages back to
some site, but by the time those messages get there they are so stale that
they never make it back out, you may never see that I have a feed to that
site.
Likewise, if I have a feed to two separate sites that are otherwise
relatively equivalent in terms of quality and freshness of their news, but
one of those two is a lot closer to you, it may be impossible for you to
detect that I have a feed to the other site.
Probably the best you could hope for would be for a relatively large
number of sites to simply send their unedited path info to a central site,
which then does a global map of which sites see which other sites and
through which routes.
This path information is probably already collected for summarization
and feeding to Freenix, but to do the job right, you'd need far more than
summary information. My guess is that there isn't a machine (or network
of machines) on the planet that could plow through this size and kind of
raw dataset.
Short of that, I guess you might be able to talk to the Freenix folks
and see if maybe they'd do some graphs based on the short statistics they
get sent, and at least for those sites which are reporting, you could have
a pretty good idea who connects to whom.
The further away a particular site is from another that reports
Freenix stats, the lower the probability that the connection map would be
accurate. But, it would be better than nothing.
--
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
<http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0xE38CCEF1>
If you wouldn't take out a one-page ad in the Wall Street
Journal to say something, then don't say it by email.
Re: path header database/analysis ware
Author: Russ Allbery
Date: Tue, 05 Jan 1999 00:00
Date: Tue, 05 Jan 1999 00:00
30 lines
2165 bytes
2165 bytes
Brad Knowles <brad@shub-internet.org> writes: > The fundamental problem is that you're using purely in-band methods to > try to determine how the network should look, and pure in-band methods > are always subject to various types of spoofing. Actually, I'm using knowledge gathered as a news.admin.net-abuse.usenet regular to determine how a proper cancel looks. I'm pretty sure I could figure it out and not get spoofed by something. But maybe that's not true of everyone. I'll point out that the real spam cancellers continue to post from the same place for months on end, whereas the rogue cancellers usually move a lot. That by itself can allow you to eliminate some of the uncertainty automatically. > This path information is probably already collected for summarization > and feeding to Freenix, but to do the job right, you'd need far more > than summary information. My guess is that there isn't a machine (or > network of machines) on the planet that could plow through this size and > kind of raw dataset. Oh, I wouldn't say that. It's less work that handling a full feed to propagate each site's data, and you wouldn't need *every* Path header from *every* site. A representative sample would be plenty. -- Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Re: path header database/analysis ware
Author: Brad Knowles
Date: Tue, 05 Jan 1999 00:00
Date: Tue, 05 Jan 1999 00:00
68 lines
4221 bytes
4221 bytes
In article <yl4sq6vwth.fsf@windlord.stanford.edu>, Russ Allbery
<rra@stanford.edu> wrote:
> Actually, I'm using knowledge gathered as a news.admin.net-abuse.usenet
> regular to determine how a proper cancel looks. I'm pretty sure I could
> figure it out and not get spoofed by something. But maybe that's not true
> of everyone.
Granted, it would be harder to trick you than most. However, I would
submit that it is rather hard to encode that kind of knowledge into a
program. ;-)
> I'll point out that the real spam cancellers continue to post from the
> same place for months on end, whereas the rogue cancellers usually move a
> lot. That by itself can allow you to eliminate some of the uncertainty
> automatically.
The thing is, simply capturing every single NoCeM (or whatever else it
is that you want to watch), and then modifying the "Path:" header somewhat
and then re-posting it, would be sufficient to throw off the map of the
interior news sites. In fact, you could munge everything up to (but not
including) the site where the "real" canceller lives, simply by stripping
everything up to that point and then tacking on whatever you want.
You could easily make it look like Annihilator is stuck behind some
Gawd-awful twenty bazillion hosts, and unless you had a known valid
canceller living at each of those intermediary sites, you would be
unlikely to be able to tell the difference (programmatically) between the
"real" posts and the "fake" ones.
Since the thing that's PGP signed is the message body itself and not
the "Path:" header (or any other headers, for that matter), you can't
trust the info in the path unless it's originating or terminating at a
known trusted site, or the best available information is being submitted
by a number of reasonably trusted sites and then processed centrally.
> Oh, I wouldn't say that. It's less work that handling a full feed to
> propagate each site's data, and you wouldn't need *every* Path header from
> *every* site. A representative sample would be plenty.
I would submit that it is equivalent to doing a channel feed for the
Path: header, and then doing a `sort | uniq -c` on all that data.
Or maybe you only do it on a pairwise basis (this site connects to
these other twelve sites, and here's how many total messages we saw that
went from this site through that other site).
That would seem to be an exceedingly large amount of data to have to
swim through.
Unless I'm missing something obvious, you're talking about at least
geometric explosion for the worst case (where each and every path is
considered unique) and at least n^2 explosion for the pairwise case.
Gimme a few thousand reporting hosts, and even that pairwise case
starts looking pretty daunting -- even if you have each reporting site do
some data reduction and report only the unique pairs it sees and the count
for each, perhaps cutting off at some low watermark.
--
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
<http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0xE38CCEF1>
If you wouldn't take out a one-page ad in the Wall Street
Journal to say something, then don't say it by email.
Re: path header database/analysis ware
Author: Russ Allbery
Date: Thu, 14 Jan 1999 00:00
Date: Thu, 14 Jan 1999 00:00
63 lines
3825 bytes
3825 bytes
Brad Knowles <brad@shub-internet.org> writes: > Russ Allbery <rra@stanford.edu> wrote: >> Actually, I'm using knowledge gathered as a news.admin.net-abuse.usenet >> regular to determine how a proper cancel looks. I'm pretty sure I >> could figure it out and not get spoofed by something. But maybe that's >> not true of everyone. > Granted, it would be harder to trick you than most. However, I would > submit that it is rather hard to encode that kind of knowledge into a > program. ;-) This is true. :) >> I'll point out that the real spam cancellers continue to post from the >> same place for months on end, whereas the rogue cancellers usually move >> a lot. That by itself can allow you to eliminate some of the >> uncertainty automatically. > The thing is, simply capturing every single NoCeM (or whatever else it > is that you want to watch), and then modifying the "Path:" header > somewhat and then re-posting it, would be sufficient to throw off the > map of the interior news sites. Sure. But now you're talking about deliberate attacks on a known method of determining the legitimacy of cancels, which although a possibility now that we're talking about this in public, doesn't seem to be what's going on right now. It's not a final solution; a final solution involves eliminating cancels. It's just more of a stop-gap until then, like lots of other tricks that one can pull. > Since the thing that's PGP signed is the message body itself and not the > "Path:" header (or any other headers, for that matter), you can't trust > the info in the path unless it's originating or terminating at a known > trusted site, or the best available information is being submitted by a > number of reasonably trusted sites and then processed centrally. Yup. >> Oh, I wouldn't say that. It's less work that handling a full feed to >> propagate each site's data, and you wouldn't need *every* Path header >> from *every* site. A representative sample would be plenty. > I would submit that it is equivalent to doing a channel feed for the > Path: header, and then doing a `sort | uniq -c` on all that data. I don't see how so. A "representative sample" means that you don't feed it every group. I bet I could get a representative sample of paths by feeding a path analysis script *b* as a newsgroups pattern. At my site, that's only 25% of the newsgroups. One can, of course, get fancier than that. > Gimme a few thousand reporting hosts, and even that pairwise case starts > looking pretty daunting -- even if you have each reporting site do some > data reduction and report only the unique pairs it sees and the count > for each, perhaps cutting off at some low watermark. I bet only reporting unique pairs would drive the volume *way* down. -- Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Re: path header database/analysis ware
Author: Brad Knowles
Date: Thu, 14 Jan 1999 00:00
Date: Thu, 14 Jan 1999 00:00
71 lines
4664 bytes
4664 bytes
In article <ylpv8ixosg.fsf@windlord.stanford.edu>, Russ Allbery
<rra@stanford.edu> wrote:
> Sure. But now you're talking about deliberate attacks on a known method
> of determining the legitimacy of cancels, which although a possibility now
> that we're talking about this in public, doesn't seem to be what's going
> on right now.
In my case, the purpose for capturing, re-writing the Path: header,
then re-posting, would not be an attack designed to fiddle with NoCeMs
themselves, but instead an attack on a system that was designed to try and
determine what the Usenet news infrastructure was by inspecting the
headers of articles as they pass by.
Now, if you were to attempt to build a system like that, and the idea
was to use it to attempt to ensure that even if a NoCeM comes from a known
'bot (e.g., Annihilator) and the PGP signature checks out, to refuse to
apply that NoCeM if it doesn't come through an "acceptable" path, then
there might be reason for someone to attempt to apply this sort of attack.
Until then, the attack is only theoretical, because it doesn't serve
any real purpose (except maybe to flood alt.nocem.misc).
> I don't see how so. A "representative sample" means that you don't feed
> it every group. I bet I could get a representative sample of paths by
> feeding a path analysis script *b* as a newsgroups pattern. At my site,
> that's only 25% of the newsgroups. One can, of course, get fancier than
> that.
How can you be sure that it's a truly representative sample? If our
news router feeds, say only five articles a day, to cerfacs.fr and yet one
of those articles was a NoCeM that we issued, and the fastest path out for
that article happened to be through cerfacs.fr, then how can you be sure
to capture that?
Or maybe I'm missing the point here.
Is the point to try to see *all* the legitimate possible paths in the
infrastructure (so that you can see what backup routes exist), or is the
purpose to only see what some of the primary paths are (which might change
at a moments notice, if there's a router flap somewhere)?
> I bet only reporting unique pairs would drive the volume *way* down.
You remember the pathinfo program I mentioned on here a while back? I
tried recording unique pairs in an earlier version of that program, and as
I recall, it sucked up all available memory in the machine, driving me
into desperate thrashing on paging and swap before it finally choked and
puked (I'm fortunate that it didn't panic the machine).
Granted, I was doing simple Perl hashes and hadn't done anything fancy
like tying a hash to a Berkeley db hash table, but it still took *forever*
to get to the point where it choked and puked, and it wasn't anywhere
*near* done when that finally happened. And this was on just a few days
worth of Path: information that I had recorded via a channel.
Maybe somebody who is a better Perl (or C) programmer than I am can do
something along these lines and manage to get a really good pairwise map
of which sites are directly connected to which other sites, article count,
etc.... However, I don't think I'm going to give that another try,
myself.
--
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
<http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0xE38CCEF1>
If you wouldn't take out a one-page ad in the Wall Street
Journal to say something, then don't say it by email.
Re: path header database/analysis ware
Author: Russ Allbery
Date: Sat, 16 Jan 1999 00:00
Date: Sat, 16 Jan 1999 00:00
38 lines
2885 bytes
2885 bytes
Brad Knowles <brad@shub-internet.org> writes: > Now, if you were to attempt to build a system like that, and the idea > was to use it to attempt to ensure that even if a NoCeM comes from a > known 'bot (e.g., Annihilator) and the PGP signature checks out, to > refuse to apply that NoCeM if it doesn't come through an "acceptable" > path, then there might be reason for someone to attempt to apply this > sort of attack. True. > Is the point to try to see *all* the legitimate possible paths in the > infrastructure (so that you can see what backup routes exist), or is the > purpose to only see what some of the primary paths are (which might > change at a moments notice, if there's a router flap somewhere)? Hm. That's a good question. I suppose that for a real mapping project, you'd want to see *all* the paths, but that would be almost impossible. I have at least a dozen feeds that you'd have a very difficult time finding with any Path analysis, because the number of groups that go across those feeds is vanishingly small and they're mostly "dead-ends." There are some paths that still exist but haven't been exercised in years. > You remember the pathinfo program I mentioned on here a while back? I > tried recording unique pairs in an earlier version of that program, and > as I recall, it sucked up all available memory in the machine, driving > me into desperate thrashing on paging and swap before it finally choked > and puked (I'm fortunate that it didn't panic the machine). Hm. Well, Perl does consume a disproportional amount of memory for whatever it's doing, usually, so there may be ways of optimizing that. I can easily see that the number of path pairs will be too high to keep in memory, but may be manageable as a disk database. -- Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads