From 422d3fbd3e97a18c8a91282f5617b44ad2676c67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20Gon=C3=A7alves?= Date: Fri, 6 Dec 2024 11:08:27 +0100 Subject: [PATCH] chore: updates default SecurityHub filter (#26) * chore: updates default SecurityHub filter * chore: updates default query to use EQUALS instead --- awsfindingsmanagerlib/configuration.py | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/awsfindingsmanagerlib/configuration.py b/awsfindingsmanagerlib/configuration.py index 0d7e5db..ac88321 100644 --- a/awsfindingsmanagerlib/configuration.py +++ b/awsfindingsmanagerlib/configuration.py @@ -46,16 +46,18 @@ LOGGER = logging.getLogger(LOGGER_BASENAME) LOGGER.addHandler(logging.NullHandler()) -DEFAULT_SECURITY_HUB_FILTER = {'ComplianceStatus': [ - { - 'Value': 'FAILED', - 'Comparison': 'EQUALS' - }, - { - 'Value': 'WARNING', - 'Comparison': 'EQUALS' - } -]} +DEFAULT_SECURITY_HUB_FILTER = { + 'WorkflowStatus': [ + { + 'Value': 'NEW', + 'Comparison': 'EQUALS' + }, + { + 'Value': 'NOTIFIED', + 'Comparison': 'EQUALS' + } + ] +} def get_available_security_hub_regions():