Project

General

Profile

Actions

Bug #7414

closed

detect: decoder event rules fail to match on invalid packets

Added by Arialdo Pucino about 1 year ago. Updated about 1 year ago.

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

Description

An ipv4 packet that contains malformed security option with invalid length field (2 bytes) and invalid bytes length (12 bytes) with respect the length field is not detected.
My setup is AlmaLinux 8.10, Suricata 7.0.7 in IPS Layer 2 mode and has the following rule that is never triggered:

drop pkthdr any any -> any any (msg:"SURICATA IPv4 invalid option length"; decode-event:ipv4.opt_invalid_len; classtype:protocol-command-decode; sid:2200005; rev:2;)

In attach pcap file where the third packet contains the invalid ipv4 security option.


Files

ip_secopt.pcap (310 Bytes) ip_secopt.pcap Arialdo Pucino, 11/26/2024 10:32 AM

Subtasks 1 (0 open1 closed)

Bug #7432: detect: decoder event rules fail to match on invalid packets (7.0.x backport)ClosedVictor JulienActions

Related issues 1 (0 open1 closed)

Related to Suricata - Feature #7433: eve/alert: enrich decoder event rulesClosedVictor JulienActions
Actions #1

Updated by Victor Julien about 1 year ago

  • Status changed from New to Assigned
  • Assignee changed from OISF Dev to Victor Julien
  • Target version changed from TBD to 8.0.0-beta1
  • Label Needs backport to 7.0 added

Confirmed, it is a general failure of matching decoder event rules on invalid packets.

Actions #2

Updated by OISF Ticketbot about 1 year ago

  • Subtask #7432 added
Actions #3

Updated by OISF Ticketbot about 1 year ago

  • Label deleted (Needs backport to 7.0)
Actions #4

Updated by Victor Julien about 1 year ago

  • Related to Feature #7433: eve/alert: enrich decoder event rules added
Actions #5

Updated by Victor Julien about 1 year ago

  • Status changed from Assigned to In Review
Actions #6

Updated by Victor Julien about 1 year ago

  • Status changed from In Review to Resolved
Actions #7

Updated by Juliana Fajardini Reichow about 1 year ago

  • Subject changed from Malformed ipv4 security option is not detected to detect: decoder event rules fail to match on invalid packets
  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF