Control: 2.11 Ensure log monitoring and alerts are set up for Cloud Firewall changes
Description
It is recommended that a metric filter and alarm be established for Cloud Firewall rule changes.
Remediation
Perform the following to ensure the log monitoring and alerts are set up Cloud Firewall Changes:
From Console
- Logon to SLS Console.
- Click
Log Service Audit Service
in the navigation pane. - Go to
Access to Cloud Products > Global Configuration
page.- Select a location of project for logs.
- Check the
Action Trail
and configure a proper days. - Click
Save
to save the changes.
- Go to
Access to Cloud Products > Global Configurations
clickCentral Project
. - Select
Log Management > Actiontrail Log
. - In the search/analytics console, input below query
"event.serviceName": "Cloudfw" and ("event.eventName": CreateVpcFirewallControlPolicy or "event.eventName": DeleteVpcFirewallControlPolicy or "event.eventName": ModifyVpcFirewallControlPolicy) | select count(1) as c
- Create a dashboard and set alert for the query result.
Usage
Run the control in your terminal:
powerpipe control run alicloud_compliance.control.cis_v100_2_11
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run alicloud_compliance.control.cis_v100_2_11 --share
SQL
This control uses a named query:
manual_control