Project

General

Profile

Actions

Bug #4399

closed

use keyword ‘offset’ that cause more alert

Added by albert wang almost 4 years ago. Updated 6 months ago.

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

Description

The rules are as follows
alert tcp any any -> any [445,135,139] (msg:"test";flow:from_client,established;content:"|FF||53||4d||42||A0|";sid:10001;rev:1;)
that just Alerted 1 times,but change ruler to
alert tcp any any -> any [445,135,139] (msg:"test";flow:from_client,established;content:"|FF||53||4d||42||A0|";offset:4;depth:5;sid:10001;rev:1;)
that Alerted 7 times


Files

test.pcap (5.21 KB) test.pcap albert wang, 03/16/2021 07:14 AM
Actions #1

Updated by Jeff Lucovsky over 3 years ago

This is working as designed. If the depth option is used with TCP, we assume that the rule writer meant to inspect a record/pdu, and so we inspect individual packets but also the reassembled stream. If there is no depth we just inspect the stream

Actions #2

Updated by Philippe Antoine 6 months ago

  • Status changed from New to Rejected

Working as designed

Frames can also help here write better rules than raw TCP stream inspection

Actions

Also available in: Atom PDF