Alibaba Cloud SLS should have an alarm configured for Cloud Firewall rule changes. By directing ActionTrail logs to SLS with alert rules, real-time monitoring of firewall modifications is achieved. This ensures creation, update, or deletion of Cloud Firewall control policies is promptly detected and reviewed.
Risk
Without monitoring for Cloud Firewall changes, unauthorized modifications to firewall rules may go undetected, leading to network exposure or blocked legitimate traffic. Failure to detect changes timely increases risk of data breaches, lateral movement, and service disruption.
prowler alibabacloud --checks sls_cloud_firewall_changes_alert_enabled
Recommendation
- Log on to the SLS Console
- Ensure ActionTrail is enabled
- Select Alerts
- Ensure alert rule has been enabled for Cloud Firewall changes
Remediation
aliyun sls create-alert --project <project-name> --alert-name cloud-firewall-changes --alert-displayname 'Cloud Firewall Changes Alert' --condition 'event.serviceName: CloudFirewall and (event.eventName: CreateControlPolicy or event.eventName: ModifyControlPolicy or event.eventName: DeleteControlPolicy)' --dashboard <dashboard-name> --schedule '{"type":"FixedRate","interval":"1m"}'
- Log on to the SLS Console.
- Ensure ActionTrail is enabled and delivering logs to a Log Service project.
- Navigate to the project receiving ActionTrail logs.
- Select Alerts and click Create Alert Rule.
- Configure the query to filter for Cloud Firewall changes:
event.serviceName: CloudFirewall and (event.eventName: CreateControlPolicy or event.eventName: ModifyControlPolicy or event.eventName: DeleteControlPolicy). - Set the alert schedule, notification method, and severity.
- Save and enable the alert rule.
Source Code
Resource Type
ALIYUN::SLS::Alert