Check provider logo

Object Storage bucket is not publicly accessible

objectstorage_bucket_not_publicly_accessible

Severitycritical
by Prowler

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.

Run this check with Prowler CLI

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

CLI

oci os bucket update --namespace-name <namespace> --bucket-name <bucket-name> --public-access-type NoPublicAccess

Terraform
Other
  1. Sign in to the OCI Console
  2. Go to Object Storage > Buckets and open <bucket-name>
  3. Click Edit (Bucket details)
  4. Set Public access type to "No public access"
  5. Click Save

Source Code

Resource Type

Bucket

References