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

Cloudflare

Service SE.CF.Api. Its tests are skipped while it is not connected.

PowerShell
Connect-Maester -Service SE.CF.Api
SettingEnvironment variableNotes
AccountIdMAESTER_SE_CF_API_ACCOUNTIDOr Connections.SE.CF.Api.AccountId in maester-config.json.
ZoneIdMAESTER_SE_CF_API_ZONEIDOr Connections.SE.CF.Api.ZoneId in maester-config.json.
BucketNameMAESTER_SE_CF_API_BUCKETNAMEOr Connections.SE.CF.Api.BucketName in maester-config.json.
ApiTokenMAESTER_SE_CF_API_APITOKENSecret: pass with -ServiceSetting or the environment variable, never the config.
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