-
Notifications
You must be signed in to change notification settings - Fork 130
Description
Describe the bug
After enabling AFSBP_EC2.6_AutoTrigger within EventBridge. No remediation of the finding is performed.
To Reproduce
Deploy the solution.
Enable AFSBP_EC2.6_AutoTrigger within EventBridge
Create a VPC without VPC Flow Logs enabled.
A Security Hub finding will be generated but will not be remediated.
Expected behavior
Once a new finding is generated by Security Hub. It is automatically remediated within the target environment.
Please complete the following information about the solution:
- Version: v1.3.0
- Region: us-west-2
- Was the solution modified from the version published on this repository? No
- Have you checked your service quotas for the sevices this solution uses? No
- Were there any errors in the CloudWatch Logs? No
Screenshots
AFSBP_EC2.6_AutoTrigger EventBridge Rule:

Additional context
I think the reason is within the Findings event for Security Hub. The generator ID field does not include /rule/ for AFSBP whereas PCI and CIS Findings do.
Whenever you manually activate the Security Hub Custom Action "Remediate with SHARR" it works fine.

