Project

General

Profile

Actions

Bug #7523

open

rules/prefilter: prefilter keyword ignored when in content rule

Added by Victor Julien 11 days ago. Updated 5 days ago.

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

Description

In a rule with a prefilter on a non-content keyword where there is also a content keyword, the prefilter is ignored.

alert tcp any any -> any any (flow:established,to_server; stream_size:server,<,1111; prefilter; content: "EICAR"; sid:20;)
{
  "raw": "alert tcp any any -> any any (flow:established,to_server; stream_size:server,<,1111; prefilter; content: \"EICAR\"; sid:20;)",
  "id": 20,
  "gid": 1,
  "rev": 0,
  "app_proto": "unknown",
  "requirements": [
    "payload",
    "flow" 
  ],
  "type": "pkt_stream",
  "flags": [
    "src_any",
    "dst_any",
    "sp_any",
    "dp_any",
    "need_packet",
    "need_stream",
    "toserver",
    "prefilter" 
  ],
  "pkt_engines": [
    {
      "name": "payload",
      "is_mpm": true
    },
    {
      "name": "packet",
      "is_mpm": false
    }
  ],
  "frame_engines": [],
  "lists": {
    "packet": {
      "matches": [
        {
          "name": "flow" 
        },
        {
          "name": "stream_size" 
        }
      ]
    },
    "payload": {
      "matches": [
        {
          "name": "content",
          "content": {
            "pattern": "EICAR",
            "length": 5,
            "nocase": false,
            "negated": false,
            "starts_with": false,
            "ends_with": false,
            "is_mpm": true,
            "no_double_inspect": true,
            "fast_pattern": false,
            "relative_next": false
          }
        }
      ]
    }
  },
  "mpm": {
    "buffer": "payload",
    "pattern": "EICAR",
    "length": 5,
    "nocase": false,
    "negated": false,
    "starts_with": false,
    "ends_with": false,
    "is_mpm": true,
    "no_double_inspect": true,
    "fast_pattern": false,
    "relative_next": false
  }
}

Subtasks 1 (1 open0 closed)

Bug #7524: rules/prefilter: prefilter keyword ignored when in content rule (7.0.x backport)AssignedVictor JulienActions
Actions #1

Updated by OISF Ticketbot 11 days ago

  • Subtask #7524 added
Actions #2

Updated by OISF Ticketbot 11 days ago

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

Updated by Philippe Antoine 7 days ago

  • Status changed from In Progress to In Review
Actions #4

Updated by Victor Julien 5 days ago

  • Status changed from In Review to Resolved
Actions

Also available in: Atom PDF