<div dir="ltr">Thanks, Jon.<div><br></div><div>Here&#39;s a PCAP with an example. I&#39;ve anonymized the IPs, so it can be shared publicly/used as a test if desired.</div><div><br></div><div>It does look like the first connection wasn&#39;t torn down in a completely normal way - if I run just that connection through Bro, conn_state is S3, and there are some missed bytes.</div>
<div><br></div><div>Unfortunately, this is a pretty common occurrence when we&#39;re being scanned - traffic spikes, causing Bro to miss more bytes, leading to more of these incorrect connections.</div><div><br></div><div>
The specific issue is that the jump in seq numbers between the first and second connection cause Bro to think that a lot of traffic was simply missed. This leads to false positives with the SSH heuristic, since now the byte total is over the threshold.</div>
<div><br></div><div>Digging into this, I realize it wasn&#39;t as closely related to this ticket as I thought, so let me know if I should file a new ticket for this.</div><div><br></div><div>  --Vlad</div><div><br></div></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Aug 25, 2014 at 5:04 PM, Siwek, Jon <span dir="ltr">&lt;<a href="mailto:jsiwek@illinois.edu" target="_blank">jsiwek@illinois.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class=""><br>
On Aug 25, 2014, at 4:40 PM, Vlad Grigorescu &lt;<a href="mailto:vlad@grigorescu.org">vlad@grigorescu.org</a>&gt; wrote:<br>
<br>
&gt; Does it makes sense that following a connection teardown, if a SYN-ACK is seen, a new connection begins, instead of using the existing connection? I can probably grab a PCAP if necessary.<br>
<br>
</div>Actually, I’m thinking it may already work like you expect in many “normal” situations.  One special case I can remember (there may be others) is that Bro may defer closing out a connection even if it sees the teardown control packets when it thinks it may be possible to fill in a content gap (i.e. it thinks there’s packets coming in out of order, but maybe in your case it’s just never seen at all).  If that doesn’t fit with what you saw and you’ve got a pcap you can send me, I can try to make sense of it.<br>

<span class="HOEnZb"><font color="#888888"><br>
- Jon</font></span></blockquote></div><br></div>