hunting-web-backdoors

hunting-web-backdoors is a skill for Claude Code from trilwu/secskills. It costs 117 tokens per session (3,069 once invoked), scanned A, original, MIT.

A guide for finding web backdoors, which are malicious pieces of code secretly planted in a website's files. It focuses mainly on PHP but also covers JavaServer Pages, ASP, and Node applications, including hidden or disguised code.

In plain words
What is it for?
Use it to inspect hacked WordPress, Magento, Joomla, or custom sites; check downloaded plugins and themes; and search large web directories for webshells, fake extensions, and appended malicious code.
Why use it?
It helps investigate a web server that may already have been compromised without running the suspected payload. It separates real planted malware from ordinary code that merely uses functions often seen in attacks.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the secskills-core plugin — 30 skills shipped together

Good fit Use it to inspect hacked WordPress, Magento, Joomla, or custom sites; check downloaded plugins and themes; and search large web directories for webshells, fake extensions, and appended malicious code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/trilwu/secskills/hunting-web-backdoors
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 trilwu/secskills --skill hunting-web-backdoors
Clone the repo
git clone --depth 1 https://github.com/trilwu/secskills

Made for: Claude Code.

Or install secskills-core, the plugin that ships this one along with the rest of its 30 skills.

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 hunting-web-backdoors

README.md
[![agentmods](https://agentmods.dev/badge/skills/trilwu/secskills/hunting-web-backdoors/github.svg)](https://agentmods.dev/skills/trilwu/secskills/hunting-web-backdoors)
Your own site
<a href="https://agentmods.dev/skills/trilwu/secskills/hunting-web-backdoors"><img src="https://agentmods.dev/badge/skills/trilwu/secskills/hunting-web-backdoors/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 hunting-web-backdoors

Your own site · 80×15
<a href="https://agentmods.dev/skills/trilwu/secskills/hunting-web-backdoors"><img src="https://agentmods.dev/badge/skills/trilwu/secskills/hunting-web-backdoors.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 117 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,069 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to critical

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • critical YARA Match · line 104
    YARA rule matched a known webshell pattern (PHP, Python, JSP, or ASPX webshell).
    Fix: Remove the webshell code immediately. Webshells provide unauthorized remote command execution. Audit the skill for additional backdoors or persistence mechanisms.
  • critical YARA Match · line 157
    YARA rule matched a known webshell pattern (PHP, Python, JSP, or ASPX webshell).
    Fix: Remove the webshell code immediately. Webshells provide unauthorized remote command execution. Audit the skill for additional backdoors or persistence mechanisms.
How audits are shown
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.00117 $0.03069
Opus 5.5 $0.00047 $0.01228
Sonnet 5.5 $0.00023 $0.00614
Haiku 4.5 $0.00012 $0.00307

Measured 3mo ago against content hash f586ab841eae, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

hunting-web-backdoors scanned grade A with 1 finding 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 3mo 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.

Makes network callslowCapability

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

curl -sL "https://defuddle.md/<url>" # scheme in the path is optional
secskills-core/skills/hunting-web-backdoors/SKILL.md · 238 lines

How it starts

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

Hunting Web Backdoors

This is not a vulnerability audit. You are looking for code an attacker already planted — a webshell, a one-line eval backdoor, a fake plugin, a malicious line appended to a legitimate file. The weakness that let them in is auditing-php-applications' job; this skill finds what they left behind.

Two things make it hard. The malicious code is deliberately hidden — obfuscated, split, or buried in a tree of thousands of legitimate files — so a naive grep misses it. And the tells (eval, base64_decode, dynamic calls) appear in plenty of benign code, so a naive grep also drowns you in false positives. The work is the discrimination.

When to Use

  • A web server is suspected or confirmed compromised and you need every shell
  • Cleaning a hacked WordPress, Magento, Joomla, or custom PHP site
  • Vetting a downloaded plugin, theme, or codebase before deploying it
  • A file contains eval, assert, or system on decoded or request-derived input
  • Triaging a web root full of unfamiliar PHP for planted malice

When NOT to Use

  • Finding the vulnerability that allowed the upload — use auditing-php-applications
  • Deep single-sample analysis (a specific shell you want to fully reverse, its C2, its capabilities) — use analyzing-malware
  • The broader incident (scoping, timeline, containment) — use responding-to-incidents; this skill is the source-tree sweep within it
  • Malicious dependencies / package install scripts — use auditing-supply-chain
  • Host-level persistence (cron, systemd, LD_PRELOAD) — use analyzing-linux-persistence

Never Execute to Deobfuscate

The single rule that must not bend: the obfuscated code is the payload. Do not run it, do not "just let PHP decode it," do not replace eval( with echo( and execute the file, do not paste it into an online sandbox that runs it. Deobfuscation is a static transformation:

  • Decode the layers by hand or with a decode-only tool (base64_decode, gzinflate, gzuncompress, str_rot13, hex/\xNN, strrev) applied as string operations, not as executed PHP.
  • If you must automate, use a de-obfuscator that decodes without executing (UnPHP's decoder, a Python reimplementation of the decode chain) — never the PHP interpreter on the sample.
  • Replacing the final eval( with file_put_contents('out.php', ...) and running it is executing the payload if any prior layer has side effects. Decode statically, then read.

Read the full file on GitHub · 238 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. 3mo ago First seen · 238 lines · 117 tokens per session scan A f586ab841eae

Subscribe to this mod's changes

hunting-web-backdoors is a skill published in the GitHub repository trilwu/secskills (217 stars, last pushed 3mo ago), licensed MIT. It adds 117 tokens to every session and 3,069 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

hunting-web-backdoors compared with skills from other repositories

hunting-web-backdoors next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
hunting-web-backdoorstrilwu/secskillsSkill2173mo agoMITA117Claude Code
cardputer-buddyanthropics/claude-plugins-officialSkill49ktodayApache-2.0A109Claude Code
migrate-to-rustgoogle/skillsSkill26ktodayApache-2.0A166Claude Code, Codex
wear-compose-m3android/skillsSkill11k10d agoApache-2.0A108Claude Code
ink-custom-brush-builderandroid/skillsSkill11k10d agoApache-2.0A159Claude Code
kotlin-tooling-gradle-to-kotlin-toolchain-projectKotlin/kotlin-agent-skillsSkill1.2ktodayApache-2.0A83Claude Code, Codex
newclacky-ai/openclackySkill1.2ktodayMITA10Claude Code