cloudflare-hardening

cloudflare-hardening is a skill for Claude Code, Codex from GoldenWing-360/claude-security-skills. It costs 92 tokens per session (2,274 once invoked), scanned A, original, MIT.

A step-by-step security guide for sites using Cloudflare, a service that manages domain traffic and provides features such as DNS, traffic filtering, and web application protection.

In plain words
What is it for?
Securing Cloudflare accounts, domains, origin servers, WAF rules, rate limits, admin paths, and Cloudflare Pages or R2 deployments.
Why use it?
It helps reduce risks such as exposed origin servers, automated attacks, brute-force attempts, and weak administrative access settings.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Securing Cloudflare accounts, domains, origin servers, WAF rules, rate limits, admin paths, and Cloudflare Pages or R2 deployments.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/goldenwing-360/claude-security-skills/cloudflare-hardening
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add GoldenWing-360/claude-security-skills --skill cloudflare-hardening
Clone the repo
git clone --depth 1 https://github.com/GoldenWing-360/claude-security-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cloudflare-hardening

README.md
[![agentmods](https://agentmods.dev/badge/skills/goldenwing-360/claude-security-skills/cloudflare-hardening/github.svg)](https://agentmods.dev/skills/goldenwing-360/claude-security-skills/cloudflare-hardening)
Your own site
<a href="https://agentmods.dev/skills/goldenwing-360/claude-security-skills/cloudflare-hardening"><img src="https://agentmods.dev/badge/skills/goldenwing-360/claude-security-skills/cloudflare-hardening/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cloudflare-hardening

Your own site · 80×15
<a href="https://agentmods.dev/skills/goldenwing-360/claude-security-skills/cloudflare-hardening"><img src="https://agentmods.dev/badge/skills/goldenwing-360/claude-security-skills/cloudflare-hardening.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 92 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,274 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00092 $0.02274
Opus 5 $0.00046 $0.01137
Sonnet 5 $0.00018 $0.00455
Haiku 4.5 $0.00009 $0.00227

Measured 12d ago against content hash 600a624fef54, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

cloudflare-hardening scanned grade A with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootlowPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

sudo ufw delete allow 80/tcp

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

for ip in $(curl -s https://www.cloudflare.com/ips-v4); do
cloudflare-hardening/SKILL.md · 212 lines

How it starts

The opening of the file, as written. The whole thing — 212 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Cloudflare Hardening

Cloudflare gives you a powerful edge layer for free, but its defaults are conservative — most of the protection is opt-in. This skill walks the security-relevant settings and the ones that catch people out.

Applies to Cloudflare's main product (DNS + Proxy + WAF + Workers/Pages/R2). Not Magic Transit / Spectrum specifics.

When to invoke

  • Domain just onboarded to Cloudflare
  • Site behind CF was scraped, brute-forced, or DDoSed
  • Origin IP may be exposed (showed up in dnshistory, accidentally A-recorded)
  • Periodic review of an existing public site
  • Setting up Cloudflare Pages or R2 with a custom domain

Step 1 — Lock the account itself

Before site settings, harden the account.

  • 2FA on the account with WebAuthn / hardware key, not SMS
  • API tokens, not Global API Key — Global API Key has account-wide power and cannot be scoped
  • Audit LogsAccount → Audit Log shows who did what; review monthly
  • Members — separate humans from automation; each automation gets its own scoped token

API tokens: scope to specific zones + specific permissions. A common mistake is creating a "DNS edit" token at account level when only one zone needs it.

Step 2 — DNS and proxy posture

Zone → DNS → Records
  • All public hostnames proxied (orange cloud) unless you have a specific reason for grey-cloud (e.g. mail records — MX must be grey)
  • Origin IP must not be in any public DNS record — common leaks:
    • Direct A record for direct.example.com or origin.example.com left over
    • MX pointing to a host on the same IP as the web origin (move mail to a separate IP/host)
    • SPF/TXT records containing IP literals that match the origin
  • DNSSEC — enable in DNS → Settings. Requires DS record at the registrar.
  • CAA records — restrict who can issue certs for your domain. Cloudflare adds these automatically if you turn it on.

If your origin IP is known-leaked, rotate it — provider panel usually lets you re-assign. Pair with origin allowlist (next step).

Read the full file on GitHub · 212 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 212 lines · 92 tokens per session scan A 600a624fef54

Subscribe to this mod's changes

cloudflare-hardening is a skill published in the GitHub repository GoldenWing-360/claude-security-skills (17 stars, last pushed 1mo ago), licensed MIT. It adds 92 tokens to every session and 2,274 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 2 findings (asks for root, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

cloudflare-api

Hit the Cloudflare REST API directly for operations that wrangler and MCP can't handle well. Bulk DNS, custom hostnames, email routing, cache purge, WAF rules, redirect rules, zone settings, Worker routes, D1 cross-database queries, R2 bulk operations, KV bulk read/write, Vectorize queries, Queues, and fleet-wide…

jezweb/claude-skills · 141 tokens

hono-api-scaffolder

Scaffold Hono API routes for Cloudflare Workers. Produces route files, middleware, typed bindings, Zod validation, error handling, and APIENDPOINTS.md documentation. Use after a project is set up with cloudflare-worker-builder or vite-flare-starter, when you need to add API routes, create endpoints, or generate API…

jezweb/claude-skills · 77 tokens

cloudflare-worker-builder

Scaffold and deploy Cloudflare Workers with Hono routing, Vite plugin, and Static Assets. Describe project, scaffold structure, configure bindings, deploy. Use whenever the user wants to create a Worker project, set up Hono on Cloudflare, configure D1 / R2 / KV / Queues bindings, or troubleshoot Worker export syntax…

jezweb/claude-skills · 86 tokens

cloud-browser-automation

Use cloud browser services (Browserbase) for Cloudflare bypass, JavaScript rendering, and stealth scraping when local tools fail.

kevinnft/ai-agent-skills · 29 tokens

nemoclaw-setup

Install and configure NVIDIA NemoClaw (sandboxed OpenClaw agent platform) on Linux. Handles cloudflared tunnels, Docker cgroup fixes, OpenShell, sandbox creation, remote access via Cloudflare Tunnel, and known bug workarounds. Use whenever the user mentions installing NemoClaw, setting up OpenClaw, configuring an…

jezweb/claude-skills · 91 tokens

latchbio-integration

Build, register, debug, and operate bioinformatics workflows on Latch using the Python SDK, CLI, Latch Data and Registry, Nextflow, Snakemake, programmatic execution, and Latch MCP. Use when authoring or deploying Latch workflows, configuring resources or interfaces, moving data, integrating Registry, or launching and…

K-Dense-AI/scientific-agent-skills · 76 tokens