Control: 2.14 Ensure log monitoring and alerts are set up for OSS permission changes
Description
It is recommended that a metric filter and alarm be established for OSS Bucket RAM changes.
Remediation
Perform the following to ensure the log monitoring and alerts are set up for OSS permission changes:
From Console
- Logon to SLS Console.
- Click Log Service Audit Servicein the navigation pane.
- Go to Access to Cloud Products > Global Configurationpage.- Select a location of project for logs.
- Check the OSSand configure a proper days.
- Click Saveto save the changes.
 
- Go toAccess to Cloud Products > Global ConfigurationsclickCentral Project.
- Select Log Management > OSS Log.
- In the search/analytics console, input below query
(operation: PutBucket and request_uri: acl) or operation: PutObjectAcl| select bucket, count (1) as c group by bucket
- 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_14Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run alicloud_compliance.control.cis_v100_2_14 --shareSQL
This control uses a named query:
select  'arn:acs:::' || account_id as resource,  'info' as status,  'Manual verification required.' as reason  , account_id as account_idfrom  alicloud_account;