Project

General

Profile

Actions

Bug #3616

closed

strip_whitespace causes FN

Added by Francis Trudeau over 4 years ago. Updated about 4 years ago.

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

Description

Tested in version 6.0.0-dev (ed8f48b05 2020-04-06), 5.0.2, 4.1.7.

The following sigs do NOT fire on the attached pcap:

alert http any any -> any any (msg:"strip_whitespace HTTP test"; flow:established; file_data; strip_whitespace; content:"bricks-and-clicks"; sid:3034444; rev:1;)
alert tcp any any -> any any (msg:"strip_whitespace TCP test"; file_data; strip_whitespace; content:"bricks-and-clicks"; sid:3032; rev:1;)

As opposed to the following sigs that DO fire on the attached pcap:

alert http any any -> any any (msg:"NO strip_whitespace HTTP test"; flow:established; file_data; content:"bricks-and-clicks"; sid:3033333; rev:1;)
alert tcp any any -> any any (msg:"NO strip_whitespace TCP test"; file_data; content:"bricks-and-clicks"; sid:3031; rev:1;)

This is also broken for SMTP. I can attach pcaps and sigs if needed.


Files

bodytexttest.txt-http-get.pcap (5.19 KB) bodytexttest.txt-http-get.pcap Francis Trudeau, 04/07/2020 12:18 AM

Related issues 1 (0 open1 closed)

Related to Suricata - Bug #3691: strip_whitespace doesn't strip_whitespaceClosedJeff LucovskyActions
Actions

Also available in: Atom PDF