GCP-Log-metric-filter-and-alert-disable-for-VPC-Network-Firewall-rule-changes
Severity: Low
Description: This control identifies the GCP accounts which do not have a log metric filter and alert for VPC Network Firewall rule changes. Monitoring for Create or Update firewall rule events gives insight network access changes and may reduce the time it takes to detect suspicious activity.
Remediation Steps:
Perform following to enable metric filter and alert for NF rule changes :
Sign in to GCP Console https://console.cloud.google.com.
Navigate to Logs-based metrics under section Operations-Logging.
Click on CREATE METRIC.
Provide Metric Type and Details. In Filter selection, add filter as
resource.type="gce_firewall_rule" AND jsonPayload.event_subtype="compute.firewalls.patch" OR jsonPayload.event_subtype="compute.firewalls.insert".
Click on CREATE METRIC.
Under User-defined metrics section, choose the metric you created in step 6 and click on kebab menu (Vertical 3 dots) on the right side of metrics.
Under kebab menu (Vertical 3 dots) option choose the click on Create alert from metric, it will navigate to section Monitoring.
For step 1, enter any name to the condition and select metric name that was created in step 6 under Find resource type and metric section, choose an appropriate value for other alert condition parameters as desired.
Click on ADD, Then Click on NEXT.
For step 2, Set the Notifications channel type, Then Click on NEXT.
For step 3, Name the alert policy.
Click on SAVE.
Important:
It is recommended to create a metric filter and alarm to detect VPC Network Firewall rule changes.
Reference:
Blue Hexagon Proprietary