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.1009 R2 buckets should have intentional r2.dev exposure

Severity: MediumSE.CF.Api

R2 buckets should have intentional r2.dev exposure

This check reads the R2 managed domain for every discovered bucket. A Boolean enabled value of false passes. True is Investigate by default because a public bucket can be intentional. Setting SeCf.R2MustBePrivate to true makes it Fail. A missing or non-Boolean value produces an Error under either policy.

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.

Cloudflare's r2.dev endpoint is publicly accessible when enabled. Disable it in the bucket's Public Development URL settings if it is not needed. A disabled endpoint does not prove that no other public route, such as a custom domain or Worker, exposes the bucket. 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