Project

General

Profile

Bug #2501

Suricata stops inspecting TCP stream if a TCP RST was met

Added by ajaxtpm ajaxtpm about 1 year ago. Updated 11 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

Windows clients are able to process TCP data even if they arrived shortly after TCP RST packet so the current behaviour is logical but open door for IDS bypasses
PoC pcap attached.
The following signatures should alert on HTTP request and answer:

alert tcp any any -> any any (msg: "TCP BEEN NO_STREAM RULE"; flow: no_stream; content: "been"; sid: 1; )
alert tcp any any -> any any (msg: "TCP BEEN ONLY_STREAM RULE"; flow: only_stream; content: "been"; sid: 2; )
alert http any any -> any any (msg: "HTTP BEEN RULE"; content: "been"; sid: 3; )
alert tcp any any -> any any (msg: "TCP GET NO_STREAM RULE"; flow: no_stream; content: "GET"; sid: 4; )
alert tcp any any -> any any (msg: "TCP GET ONLY_STREAM RULE"; flow: only_stream; content: "GET"; sid: 5; )
alert http any any -> any any (msg: "HTTP GET RULE"; content: "GET"; sid: 6; )

but only sid 1 and 4 alerts.


Files

rst_server.pcap (1.32 KB) rst_server.pcap PoC pcap ajaxtpm ajaxtpm, 05/03/2018 02:20 PM

History

#1

Updated by Andreas Herz about 1 year ago

  • Assignee set to OISF Dev
  • Private changed from No to Yes

Setting it to private due to bypass issue unless Victor thinks it's not that bad :)

Thanks for reporting with a .pcap attached

#2

Updated by ajaxtpm ajaxtpm about 1 year ago

Hi Andreas,

Any news on that?

#3

Updated by Victor Julien about 1 year ago

  • Status changed from New to Assigned
  • Assignee changed from OISF Dev to Victor Julien
#4

Updated by Peter Manev about 1 year ago

Out of curiosity - from your tests/observations - is that with any windows client OS or specific to a windows OS version?

#5

Updated by ajaxtpm ajaxtpm about 1 year ago

Peter Manev wrote:

Out of curiosity - from your tests/observations - is that with any windows client OS or specific to a windows OS version?

Hi Peter,

Windows 7/8/10 behave the same. I think it works with any windows OS

#6

Updated by ajaxtpm ajaxtpm about 1 year ago

Hi guys, do you have any updates on it ?

#7

Updated by Andreas Herz about 1 year ago

We're still working on that, sorry :/

#8

Updated by Victor Julien 12 months ago

  • Target version changed from 4.1beta1 to 4.1rc1
#9

Updated by Victor Julien 11 months ago

  • Status changed from Assigned to Closed
  • Private changed from Yes to No

Also available in: Atom PDF