Source code for zlogging.enum.Signatures
# -*- coding: utf-8 -*-
"""Namespace: ``Signatures``."""
from zlogging._compat import enum
[docs]@enum.unique
class Action(enum.IntFlag):
"""These are the default actions you can apply to signature matches.
All of them write the signature record to the logging stream unless
declared otherwise.
c.f. `base/frameworks/signatures/main.zeek <https://docs.zeek.org/en/stable/scripts/base/frameworks/signatures/main.zeek.html#type-Signatures::Action>`__
"""
_ignore_ = 'Action _'
Action = vars()
#: Ignore this signature completely (even for scan detection).
#: Don’t write to the signatures logging stream.
Action['SIG_IGNORE'] = enum.auto()
#: Process through the various aggregate techniques, but don’t
#: report individually and don’t write to the signatures logging
#: stream.
Action['SIG_QUIET'] = enum.auto()
#: Generate a notice.
Action['SIG_LOG'] = enum.auto()
#: The same as Signatures::SIG\_LOG, but ignore for
#: aggregate/scan processing.
Action['SIG_FILE_BUT_NO_SCAN'] = enum.auto()
#: Generate a notice and set it to be alarmed upon.
Action['SIG_ALARM'] = enum.auto()
#: Alarm once per originator.
Action['SIG_ALARM_PER_ORIG'] = enum.auto()
#: Alarm once and then never again.
Action['SIG_ALARM_ONCE'] = enum.auto()
#: Count signatures per responder host and alarm with the
#: Signatures::Count\_Signature notice if a threshold
#: defined by Signatures::count\_thresholds is reached.
Action['SIG_COUNT_PER_RESP'] = enum.auto()
#: Don’t alarm, but generate per-orig summary.
Action['SIG_SUMMARY'] = enum.auto()