Peter Van Epp | 2 Oct 21:55
Picon
Picon
Favicon
Gravatar

2.0.6 against 3.0 scan data

	I think I finally have something that works on 2.0.6 and 3.0 looking
at the same data. It isn't easy, as 3.0 is getting things much righter that
2.0.6 did. In the end there are two rules:

1) If the src port is <1024 and the dst port is >1023 assume its backwards 
   and invert source and destination (as noted this still occurs on 3.0). 

2) if neither port is < 1024 then increment a counter for "src_ip src_port"
   and "dst_ip dst_port" in two associative arrays and save the data in a 
   third array til we have seen the entire hours data.
	Then if the "src_ip src_port" count is > than "dst_ip dst_port" assume
   its backwards and invert it. That seems to bring the 2.0.6 data mostly in
   to line with the 2.0.6 data (and in any case is more correct for scan 
   detection as the common target port is dst as it should be). There are 
   still minor differences but some of that is traffic in one stream that isn't
   in the other (probably to do with cron switchs on two different machines 
   not being in sync) but a lot better than the initial one. 

	I'm about to make the change in our production 2.0.6 setup and let it
run for a few days to see how the two match over time and then I should be 
finally ready to update the traffic scripts one last time for 3.0. I don't 
think this is going to make any large difference either way since the old code
manages to agree pretty much completely with DSCC about what hosts are scanning
and should be whacked, so the old method was getting scanning right enough for
government work, just not right enough when being compared with a 3.0 ra 
looking at the same data. 

Peter Van Epp / Operations and Technical Support 
Simon Fraser University, Burnaby, B.C. Canada

(Continue reading)

CS Lee | 26 Oct 02:34
Picon

ICMP Flow

hi carter,

Is that possible to print icmp type and code in particular, for example if can do -s icmptype icmpcode, i found it maybe useful for many situation and i know it's in the dsr already.

Another thing is it seems the primitive filter for icmp - echo, it returns the record with URP as well, in the man page there's unreach primitive filter but it doesn't seem to work.


Thanks.

--
Best Regards,

CS Lee<geek00L[at]gmail.com>

http://geek00l.blogspot.com

Carter Bullard | 27 Oct 15:59

Re: ICMP Flow

Hey CS Lee,
Sorry for the delayed response.  Yes, I can add these.  The status
field for ICMP flows has the type and code fields combined, into
a weird composite indicator, so we already have abbreviation
strings for all the types, and some of the codes.  These are documented
in the ra.1 manpage.

Should I print out these abbreviations, or do you have another list
of names to print?

Hope all is most excellent,

Carter

On Oct 25, 2008, at 8:34 PM, CS Lee wrote:

hi carter,

Is that possible to print icmp type and code in particular, for example if can do -s icmptype icmpcode, i found it maybe useful for many situation and i know it's in the dsr already.

Another thing is it seems the primitive filter for icmp - echo, it returns the record with URP as well, in the man page there's unreach primitive filter but it doesn't seem to work.


Thanks.

--
Best Regards,

CS Lee<geek00L[at]gmail.com>

http://geek00l.blogspot.com


Gmane