Project

General

Profile

Actions

Feature #5466

closed
VJ VJ

detect: allow alert-then-pass logic

Feature #5466: detect: allow alert-then-pass logic

Added by Victor Julien over 3 years ago. Updated almost 2 years ago.

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

Description

Currently pass acts as a noalert rule that stops further alerting.

Some usecases have been identified in which ppl want a "alert then pass" in a single rule. Currently they are forced to express this in 2 rules, an alert rule and a pass rule, where the action order and or priorities needs to be setup such that the alert rule is evaluated first.

We do support the following: alert .... (bypass; ...).

I think we could extend the config rule keyword for this.

E.g. something like:
alert ... (config:logging disable, type alert, scope flow;)

The behavior would still need to log the current alert, so it needs a bit of thought on how to express this.


Subtasks 1 (0 open1 closed)

Feature #6674: detect: allow alert-then-pass logic (7.0.x backport)ClosedVictor JulienActions

Related issues 1 (0 open1 closed)

Related to Suricata - Documentation #6685: userguide: explain noalert keywordClosedJeff LucovskyActions

JI Updated by Jason Ish over 3 years ago Actions #1

One thought, a companion keyword to noalert: alert.

pass ftp a b -> c d (msg:"LOG This as a reason why the flow passed"; alert; ...;)

SB Updated by Shivani Bhardwaj over 3 years ago Actions #2

I like Jason's idea. Other thoughts:

1. config:action pass, type alert, scope flow Not sure if adding more than logging subsystem to config would be too much pain though.
2. new keyword to define next action post match. action:pass which sets the rule's action to the defined action after executing the current defined action on the rule. (perhaps some other name to avoid confusion with the logs)

JF Updated by Juliana Fajardini Reichow almost 3 years ago Actions #3

As a first solution, think of achieving this as a configuration option to log `PASS` rules to the alert eve type.

JF Updated by Juliana Fajardini Reichow almost 3 years ago Actions #4

  • Target version changed from TBD to 7.0.0-rc2

JF Updated by Juliana Fajardini Reichow almost 3 years ago Actions #5

  • Target version changed from 7.0.0-rc2 to 8.0.0-beta1

VJ Updated by Victor Julien over 2 years ago Actions #6

  • Status changed from New to Assigned
  • Assignee changed from OISF Dev to Victor Julien
  • Label Needs backport to 7.0 added

OT Updated by OISF Ticketbot over 2 years ago Actions #7

  • Subtask #6674 added

OT Updated by OISF Ticketbot over 2 years ago Actions #8

  • Label deleted (Needs backport to 7.0)

VJ Updated by Victor Julien over 2 years ago Actions #9

  • Status changed from Assigned to In Review

JF Updated by Juliana Fajardini Reichow about 2 years ago Actions #10

VJ Updated by Victor Julien almost 2 years ago Actions #12

  • Status changed from In Review to Resolved

VJ Updated by Victor Julien almost 2 years ago Actions #13

  • Status changed from Resolved to Closed
Actions

Also available in: PDF Atom