Control: 2.2 Ensure the OSS used to store ActionTrail logs is not publicly accessible
Description
ActionTrail logs a record of every API call made in your Alibaba Cloud account. These logs file are stored in an OSS bucket. It is recommended that the access control list (ACL) of the OSS bucket, which ActionTrail logs to, shall prevent public access to the ActionTrail logs.
Remediation
Perform the following to remove any public access that has been granted to the bucket via an ACL:
From Console
- Logon to OSS Console.
- Right on the bucket and click
Basic Settings
. - In the
Access Control List
pane, click theConfigure
. - The
Bucket ACL
tab shows three kind of grants. LikePrivate
,Public Read
,Public Read/Write
. - Ensure
Private
be set to the bucket. - Click
Save
to save the ACL.
Usage
Run the control in your terminal:
powerpipe control run alicloud_compliance.control.cis_v100_2_2
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run alicloud_compliance.control.cis_v100_2_2 --share
SQL
This control uses a named query:
action_trail_oss_bucket_not_public