From 4d54a87f3cf2281e2bc6e6eb57ba0cc3fc0d9652 Mon Sep 17 00:00:00 2001 From: Ross Wolf <31489089+rw-access@users.noreply.github.com> Date: Fri, 25 Jun 2021 17:02:11 -0600 Subject: [PATCH] Extend metadata with `[metadata.extended]` section (#1306) * Extend metadata with `[metadata.extended]` section * Remove whitespace * Comment that it's a dict (cherry picked from commit f1476b16376e6e62cdd83f61d150098e642d464b) --- detection_rules/rule.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/detection_rules/rule.py b/detection_rules/rule.py index d01172769..9bdfc5ede 100644 --- a/detection_rules/rule.py +++ b/detection_rules/rule.py @@ -40,6 +40,9 @@ class RuleMeta(MarshmallowDataclassMixin): query_schema_validation: Optional[bool] related_endpoint_rules: Optional[List[str]] + # Extended information as an arbitrary dictionary + extended = Optional[dict] + @dataclass(frozen=True) class BaseThreatEntry: