This is a discussion on [Snort-users] Session mixup by stream4 within the Snort forums, part of the System Security and Security Related category; --=_MAILER_ATTACH_BOUNDARY1_2005271175444608413784 Content-Type: text/plain; charset=us-ascii Hi I came across this post in the neohapsis archives, which discusses ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
--=_MAILER_ATTACH_BOUNDARY1_2005271175444608413784
Content-Type: text/plain; charset=us-ascii Hi I came across this post in the neohapsis archives, which discusses an issue similar to what I seem to be facing. It is at: http://archives.neohapsis.com/archiv...3-01/0858.html http://archives.neohapsis.com/archiv...3-01/0872.html The discussion talks about a session payload mixup in data captured by snort. I am also facing this issue in some sessions that I get from snort. I am using snort 2.0 and snort 2.3 ORC2, and found the issue in both versions. Chris mentioned in the post that the issue has been fixed in HEAD CVS. The discussion was about version 1.9.0. Since I am using a newer version of snort, could you please tell me if the same fix has been applied to the newer versions, or is there some update I need to get to fix it. In order to figure out the session mix up issue, I did the following a) Ran two snorts simultaneously Snort-A and Snort-B. The Snort-A captures the traffic and dumps it in a tcpdump format, using the b option and Snort-B creates the sessions real time. b) Then I ran Snort-C (same executable as of Snort-B), which created session from the tcpdump produced by Snort-A. I found that the sessions created by Snort-C for the problematic ones were not identical to the sessions created by Snort-B and I also noticed that the sessions created by Snort-C has lesser number of session mixups. I also noted that some sessions created by Snort-B, which appeared incomplete (data from last one or two packets were missing) were fully formed when created by Snort-C. Is there any difference between the session reassemble real time and session reassemble using r option. During the test, we had tweaked Snort-B a bit so that it dumps all the sessions that are reassembled. We did this by hard coding gotevent = 1 and commenting the call to the preprocessor function in FlushStream function of ssp_stream4.c. // gotevent = Preprocess(stream_pkt); //Commented gotevent = 1; Regards Sonali Gupta --=_MAILER_ATTACH_BOUNDARY1_2005271175444608413784 Content-Type: text/html; charset=us-ascii <DIV class=Section1> <P><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hi </SPAN></FONT></P> <P><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I came across this post in the neohapsis archives, which discusses an issue similar to what I seem to be facing. </SPAN></FONT></P> <P><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">It is at: </SPAN></FONT></P> <P><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"><A title=http://archives.neohapsis.com/archives/snort/2003-01/0858.html href="http://archives.neohapsis.com/archives/snort/2003-01/0858.html">http://archives.neohapsis.com/archives/snort/2003-01/0858.html</A> </SPAN></FONT></P> <P><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"><A title=http://archives.neohapsis.com/archives/snort/2003-01/0872.html href="http://archives.neohapsis.com/archives/snort/2003-01/0872.html">http://archives.neohapsis.com/archives/snort/2003-01/0872.html</A> </SPAN></FONT></P> <P><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">The discussion talks about a session payload mixup in data captured by snort. I am also facing this issue in some sessions that I get from snort. I am using snort 2.0 and snort 2.3 ORC2, and found the issue in both versions. Chris mentioned in the post that the issue has been fixed in HEAD CVS. The discussion was about version 1.9.0. Since I am using a newer version of snort, could you please tell me if the same fix has been applied to the newer versions, or is there some update I need to get to fix it. </SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">In order to figure out the session mix up issue, I did the following</SPAN></FONT></P> <P class=MsoNormal style="MARGIN-LEFT: 0.5in; TEXT-INDENT: -0.25in"><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">a)<FONT face="Times New Roman" size=1><SPAN style="FONT: 7pt 'Times New Roman'"> </SPAN></FONT></SPAN></FONT><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Ran two snorts simultaneously Snort-A and Snort-B. The Snort-A captures the traffic and dumps it in a tcpdump format, using the b option and Snort-B creates the sessions real time.</SPAN></FONT></P> <P class=MsoNormal style="MARGIN-LEFT: 0.5in; TEXT-INDENT: -0.25in"><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">b)<FONT face="Times New Roman" size=1><SPAN style="FONT: 7pt 'Times New Roman'"> </SPAN></FONT></SPAN></FONT><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Then I ran Snort-C (same executable as of Snort-B), which created session from the tcpdump produced by Snort-A. I found that the sessions created by Snort-C for the problematic ones were not identical to the sessions created by Snort-B and I also noticed that the sessions created by Snort-C has lesser number of session mixups. </SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I also noted that some sessions created by Snort-B, which appeared incomplete (data from last one or two packets were missing) were fully formed when created by Snort-C. </SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Is there any difference between the session reassemble real time and session reassemble using r option. </SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">During the test, we had tweaked Snort-B a bit so that it dumps all the sessions that are reassembled. We did this by hard coding gotevent = 1 and commenting the call to the preprocessor function in FlushStream function of ssp_stream4.c.</SPAN></FONT></P></DIV> <P class=MsoNormal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">// gotevent = Preprocess(stream_pkt); //Commented</SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> & nbsp; gotevent = 1; </SPAN></FONT></P> <DIV class=Section1> <P><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT> </P> <P><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Regards </SPAN></FONT></P> <P class=MsoPlainText><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Sonali Gupta</SPAN></FONT></P></DIV><BR><BR><hr><br><DIV align=left><a target="_blank" href="http://www.samsungindia.com/shabd" ><IMG alt="Advertisement" border=0 src="http://203.199.93.12/image/samsung.gif"></a></DIV> --=_MAILER_ATTACH_BOUNDARY1_2005271175444608413784-- ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Snort-users mailing list Snort-users@lists.sourceforge.net Go to this URL to change user options or unsubscribe: https://lists.sourceforge.net/lists/...fo/snort-users Snort-users list archive: http://www.geocrawler.com/redir-sf.p...st=snort-users |