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 $0.00059 $0.01535
Sonnet 5 $0.00023 $0.00614
Haiku 4.5 $0.00012 $0.00307

Measured 12d ago against content hash f586ab841eae, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, 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 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.

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. 12d 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 (138 stars, last pushed 7d ago), licensed MIT. It adds 117 tokens to every session and 3,069 once invoked, about $0.0006 per session on Opus 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

Other skills, from other repositories

cardputer-buddy

Iterate on the Cardputer-Adv MicroPython app bundle (Claude Buddy, Snake, Hello) after the device is already provisioned via m5-onboard. Use when the user wants to add a new app, push a single changed .py without re-flashing, watch device serial logs, or run a one-shot REPL command. Trigger on "add an app", "push to…

anthropics/claude-plugins-official · 109 tokens

wear-compose-m3

Expert guidance for working with Wear OS Compose Material3. Use this skill when creating, updating, or migrating Wear OS projects. This includes the androidx.wear.compose.material3, androidx.wear.compose.foundation, and androidx.wear.compose.navigation3 libraries. Also working with core components such as AppScaffold…

android/skills · 101 tokens

new

Create a new project to start development quickly.

clacky-ai/openclacky · 10 tokens

kotlin-tooling-native-build-performance

Diagnoses and fixes slow Kotlin/Native compilation and linking in Kotlin Multiplatform projects that target iOS. Use when the user reports slow iOS or shared-framework builds, long linkDebug/linkRelease or XCFramework tasks, cold CI builds that re-download the Kotlin/Native toolchain, KSP or other generated code on…

Kotlin/kotlin-agent-skills · 96 tokens

kotlin-tooling-java-to-kotlin

Use when converting Java source files to idiomatic Kotlin, when user mentions "java to kotlin", "j2k", "convert java", "migrate java to kotlin", or when working with .java files that need to become .kt files. Handles framework-aware conversion for Spring, Lombok, Hibernate, Jackson, Micronaut, Quarkus, Dagger/Hilt…

Kotlin/kotlin-agent-skills · 100 tokens

mcp

Build or consume Model Context Protocol (MCP) servers and clients in .NET using the official MCP C# SDK, including stdio, Streamable HTTP, tools, prompts, resources, and capability negotiation. USE FOR: .NET MCP servers or clients; stdio versus HTTP transport choices; tools, resources, prompts, completions, and…

managedcode/dotnet-skills · 123 tokens