OCI Object Storage buckets are assessed for public accessibility. Buckets configured as NoPublicAccess deny anonymous reads; any other public access setting indicates bucket contents may be reachable without authentication.
Risk
Public buckets enable unauthenticated downloads and content listing, compromising confidentiality and exposing metadata. Hotlinking can drive unexpected egress costs and degrade availability through bandwidth exhaustion and service abuse.
prowler oraclecloud --checks objectstorage_bucket_not_publicly_accessible
Recommendation
Keep buckets private (NoPublicAccess) under the least privilege principle. For external sharing, use pre-authenticated requests or signed URLs with scoped permissions and expiry. Restrict access via IAM policies, enforce guardrails (e.g., Security Zones), and regularly review bucket visibility.
Remediation
oci os bucket update --namespace-name <namespace> --bucket-name <bucket-name> --public-access-type NoPublicAccess
- Sign in to the OCI Console
- Go to Object Storage > Buckets and open <bucket-name>
- Click Edit (Bucket details)
- Set Public access type to "No public access"
- Click Save
Source Code
Resource Type
Bucket