Build Flask WAF log converter app
This commit is contained in:
35
app/constants.py
Normal file
35
app/constants.py
Normal file
@@ -0,0 +1,35 @@
|
||||
VENDOR_FIELDS = [
|
||||
"v015xxxxdate",
|
||||
"time",
|
||||
"policy",
|
||||
"http_method",
|
||||
"http_host",
|
||||
"http_url",
|
||||
"http_refer",
|
||||
"service",
|
||||
"backend_service",
|
||||
"msg",
|
||||
"signature_subclass",
|
||||
"signature_id",
|
||||
"owasp_top10",
|
||||
"match_location",
|
||||
"action",
|
||||
"severity_level",
|
||||
]
|
||||
|
||||
SEVERITY_RANKING = {
|
||||
"critical": 5,
|
||||
"high": 4,
|
||||
"medium": 3,
|
||||
"low": 2,
|
||||
"info": 1,
|
||||
"informational": 1,
|
||||
"unknown": 0,
|
||||
"none": 0,
|
||||
"n/a": 0,
|
||||
}
|
||||
|
||||
SORTABLE_FIELDS = {"datetime", "severity"}
|
||||
SORT_ORDERS = {"asc", "desc"}
|
||||
MODES = {"vendor", "full"}
|
||||
OUTPUT_FORMATS = {"text", "csv"}
|
||||
Reference in New Issue
Block a user