Source code for zlogging.enum.HTTP

# -*- coding: utf-8 -*-
"""Namespace: ``HTTP``."""

from zlogging._compat import enum


[docs]@enum.unique class Tags(enum.IntFlag): """Indicate a type of attack or compromise in the record to be logged. c.f. `base/protocols/http/main.zeek <https://docs.zeek.org/en/stable/scripts/base/protocols/http/main.zeek.html#type-HTTP::Tags>`__ """ _ignore_ = 'Tags _' Tags = vars() #: Placeholder. Tags['EMPTY'] = enum.auto() #: (present if policy/protocols/http/detect-sqli.zeek is loaded) #: Indicator of a URI based SQL injection attack. Tags['URI_SQLI'] = enum.auto() #: (present if policy/protocols/http/detect-sqli.zeek is loaded) #: Indicator of client body based SQL injection attack. This is #: typically the body content of a POST request. Not implemented #: yet. Tags['POST_SQLI'] = enum.auto() #: (present if policy/protocols/http/detect-sqli.zeek is loaded) #: Indicator of a cookie based SQL injection attack. Not #: implemented yet. Tags['COOKIE_SQLI'] = enum.auto()