Skip to content

Commit 7d9d128

Browse files
authored
due to a parsing issue with events created
in the risk index, create the detection type as a list of 1 element, the type of the detection
1 parent dbd3ea9 commit 7d9d128

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

contentctl/objects/abstract_security_content_objects/detection_abstract.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ def annotations(self) -> dict[str, Union[List[str], int, str]]:
248248
annotations_dict["cve"] = self.tags.cve
249249
annotations_dict["impact"] = self.tags.impact
250250
annotations_dict["type"] = self.type
251+
annotations_dict["type_list"] = [self.type]
251252
# annotations_dict["version"] = self.version
252253

253254
annotations_dict["data_source"] = self.data_source

0 commit comments

Comments
 (0)