MediumScript packFreeMicrosoft MVP

Security Assessment for Cloudflare

Read-only security checks for Cloudflare account settings, zones, R2, and WAF.

By SamErde · Version 0.1.0 · Published 1 Dec 2026

← All tests

MP.SE.CF.1010 R2 buckets should have intentional custom-domain exposure

Severity: MediumSE.CF.Api

R2 buckets should have intentional custom-domain exposure

This check reads each bucket's custom domains. No enabled domain passes. An enabled domain is Investigate by default, or Fail when SeCf.R2MustBePrivate is true.

In an unfiltered run, if Cloudflare denies the first bucket-list request for a FedRAMP jurisdiction with HTTP 403 and code 10003, or returns HTTP 400 without an API code for FedRAMP High, the check reports a Skipped row for that jurisdiction. The skip reason states that bucket coverage is incomplete; it does not assert that the jurisdiction has no buckets. A bucket-name filter omits jurisdiction markers and errors if the named bucket was not found. Other inventory failures remain errors.

Review every enabled domain and disable unneeded public access in the R2 bucket settings. A domain row without a boolean enabled value is an error, because its exposure cannot be classified. This check does not inspect Worker routes or prove that bucket objects are sensitive. An enabled custom domain may still require authentication through a separate access policy. Public bucket controls

%TestResult%

Install
Install-MtPack SamErde/maester-pack-for-cloudflare

Assumes Maester is installed. New to Maester? Get started.

Next: connect and run
Connect
$env:MAESTER_SE_CF_API_APITOKEN = Read-Host 'Cloudflare API token' -MaskInputConnect-Maester -Service SE.CF.Api -ServiceSetting @{ AccountId = (Read-Host 'Cloudflare account ID').Trim() }
Run
Invoke-Maester -Path . -Pack SE.CF -SkipBuiltIn -NonInteractiveRemove-Item Env:MAESTER_SE_CF_API_APITOKEN -ErrorAction SilentlyContinueDisconnect-Maester