wordpress-hardening

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

A defensive-security guide for finding and containing hacked WordPress sites, then reducing the chance of another break-in. WordPress is a system for building websites, and shared hosting means several sites may use one hosting account.

In plain words
What is it for?
Use it to look for webshells and backdoors, suspicious PHP files in uploads, malicious administrator accounts, altered configuration, hidden code in posts or settings, cloaked pages, and possible movement between sites on shared hosting.
Why use it?
A compromise can hide in uploaded files, plugins, database content, or unknown administrator accounts, and may spread to other sites on the same account. The guide lists concrete signs to check and treats neighboring sites as potentially affected.

Skill for Claude CodeCodex

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

Good fit Use it to look for webshells and backdoors, suspicious PHP files in uploads, malicious administrator accounts, altered configuration, hidden code in posts or settings, cloaked pages, and possible movement between sites on shared hosting.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/goldenwing-360/claude-security-skills/wordpress-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 wordpress-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 wordpress-hardening

README.md
[![agentmods](https://agentmods.dev/badge/skills/goldenwing-360/claude-security-skills/wordpress-hardening/github.svg)](https://agentmods.dev/skills/goldenwing-360/claude-security-skills/wordpress-hardening)
Your own site
<a href="https://agentmods.dev/skills/goldenwing-360/claude-security-skills/wordpress-hardening"><img src="https://agentmods.dev/badge/skills/goldenwing-360/claude-security-skills/wordpress-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 wordpress-hardening

Your own site · 80×15
<a href="https://agentmods.dev/skills/goldenwing-360/claude-security-skills/wordpress-hardening"><img src="https://agentmods.dev/badge/skills/goldenwing-360/claude-security-skills/wordpress-hardening.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 93 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,013 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00093 $0.02013
Opus 5 $0.00046 $0.01007
Sonnet 5 $0.00019 $0.00403
Haiku 4.5 $0.00009 $0.00201

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

Security

Grade A, and why

wordpress-hardening scanned grade A with 0 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 11d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

wordpress-hardening/SKILL.md · 182 lines

How it starts

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

WordPress Hardening

A defensive-security skill for diagnosing and hardening WordPress installations, with a focus on shared-hosting environments where one compromised sub can pivot across the whole account.

When to invoke

Trigger this skill when any of these signals appear:

  • wp-content/uploads/**/*.php exists (uploads should never contain PHP)
  • Admin users you do not recognize, or wp_users entries with creation dates that don't match the site history
  • wp-config.php modified recently with no deploy
  • mu-plugins/ contains files you did not place there
  • Posts/options contain base64-encoded blobs, eval(, gzinflate(, str_rot13(, or hex-escape strings
  • The site serves a different language/title to bots than to humans (cloaking)
  • A shared-hosting account contains 1 dirty sub and N other subs — assume lateral movement until proven otherwise

Detection — file-system indicators

Run these from the doc-root. Adjust paths for the hosting layout.

# 1. Any PHP in uploads is suspicious — production WP never writes PHP there
find wp-content/uploads -name '*.php' -o -name '*.phtml' -o -name '*.phar' 2>/dev/null

# 2. Recent PHP changes outside core/plugins/themes you control
find . -name '*.php' -mtime -30 -not -path './wp-content/cache/*' 2>/dev/null

# 3. Common webshell signatures (Sid Gifari, WSO, FilesMan, b374k, c99)
grep -rEl 'Sid[ _]Gifari|WSO [0-9]|FilesMan|c99shell|b374k|eval\(base64_decode|eval\(gzinflate|@eval\(\$_(POST|GET|REQUEST|COOKIE)' \
  --include='*.php' --include='*.phtml' . 2>/dev/null

# 4. Suspicious file names dropped by mass-compromise tools
find . \( -name 'wp-conflg.php' -o -name 'wp-info.php' -o -name 'radio.php' \
      -o -name 'about.php' -o -name 'license.php' -o -name 'lock360.php' \) 2>/dev/null

# 5. Files with execute-but-no-owner mismatch (often dropped by web user via writable dir)
find . -name '*.php' -user www-data 2>/dev/null  # adjust user for the host

The single highest-value query is (1): a PHP file in uploads/ is a near-certain indicator. Investigate every hit.

Read the full file on GitHub · 182 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. 11d ago First seen · 182 lines · 93 tokens per session scan A 881d740727b6

Subscribe to this mod's changes

wordpress-hardening is a skill published in the GitHub repository GoldenWing-360/claude-security-skills (17 stars, last pushed 1mo ago), licensed MIT. It adds 93 tokens to every session and 2,013 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. 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

ux-audit

Walk through a live web app AS a real user to find usability + behavioural bugs that static reviews miss. REQUIRES proof of interaction (typing, clicking, sending, observing) before any verdict — a sweep that didn't interact terminates with verdict 'Incomplete'. Walks threads, exercises every element, runs the…

jezweb/claude-skills · 217 tokens

tanstack-start

Build a full-stack TanStack Start app on Cloudflare Workers from scratch — SSR, file-based routing, server functions, D1+Drizzle, better-auth, Tailwind v4+shadcn/ui. Use whenever the user mentions TanStack Start, asks to scaffold a full-stack Cloudflare app with SSR, wants an SSR dashboard, or asks for a React 19 +…

jezweb/claude-skills · 115 tokens

design-loop

Autonomous multi-page site builder using a baton-passing loop. Each iteration reads a task from .design/next-prompt.md, generates a page in HTML/Tailwind, integrates it into the site, verifies visually, then writes the next task to keep the loop alive. Use whenever the user asks to build an entire site autonomously…

jezweb/claude-skills · 130 tokens

product-showcase

Generate a comprehensive marketing website for a web app — multi-page with real screenshots, animated GIF walkthroughs, feature deep-dives, and workflow demonstrations. Browses the running app, captures screens and sequences, and produces a deployable site that actually teaches people what the product does. Especially…

jezweb/claude-skills · 117 tokens

google-apps-script

Build Google Apps Script automation for Sheets and Workspace. Custom menus, triggers (onEdit / time-driven / form submit), dialogs, sidebars, email batches, PDF export, external API. Use whenever the user wants to automate a Google Sheet, build a Sheets menu / sidebar / dialog, hit a Sheets row from email or a…

jezweb/claude-skills · 89 tokens

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