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.1006 Account membership should require two-factor authentication

Severity: HighSE.CF.Api

Cloudflare account membership should require two-factor authentication for dashboard users. This check reads settings.enforce_twofactor from the account details API. For an applicable account, Boolean true passes and false fails. A missing or non-Boolean field produces an Error.

Set SeCf.DashboardSsoEnforced to true only when dashboard SSO is enforced for the assessed members. Cloudflare SSO users cannot configure Cloudflare 2FA, so this check then reports Not Applicable; assess MFA at the identity provider separately. The setting is an operator assertion, not independently verified by this pack.

Remediation

Have a Super Administrator enable account-wide 2FA enforcement for native dashboard sign-ins. For an SSO-enforced population, verify MFA at the identity provider before setting the SSO flag. Cloudflare 2FA · Dashboard SSO

%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