[Bug] Set threshold.field to empty string instead of null (#87)

This commit is contained in:
Ross Wolf
2020-07-22 19:31:09 -04:00
committed by GitHub
parent 4b17cb37f0
commit 978a8d9df8
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -107,7 +107,7 @@ class SeverityMapping(jsl.Document):
class ThresholdMapping(jsl.Document):
"""Threshold mapping."""
field = jsl.StringField(required=False)
field = jsl.StringField(required=True, default="")
value = jsl.IntField(minimum=1, required=True)
@@ -48,4 +48,5 @@ name = "Credential Access"
reference = "https://attack.mitre.org/tactics/TA0006/"
[rule.threshold]
field = ""
value = 25