Project

General

Profile

Actions

Bug #8458

open
JL

detect/variable: warn if rules try to use byte vars before they're extracted

Bug #8458: detect/variable: warn if rules try to use byte vars before they're extracted

Added by Jeff Lucovsky about 10 hours ago.

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

Description

When a rule contains buffers with progress values that would cause a byte variable to be used before it is produced, a warning (or error?) should be flagged:

Here's an example rule. http.uri has a lower progress val and would match first but val hasn't been produced yet. file.data has a higher progress value.

  alert http any any -> any any (
      file.data; content:"x"; byte_extract:1,0,val,relative;
      http.uri;  content:"y"; byte_test:1,=,val,0;
      sid:1;)


Related issues 1 (1 open0 closed)

Related to Suricata - Feature #7801: rules: support multi-buffer byte variablesIn ReviewJeff LucovskyActions

JL Updated by Jeff Lucovsky about 10 hours ago Actions #1

  • Related to Feature #7801: rules: support multi-buffer byte variables added
Actions

Also available in: PDF Atom