web-reverse-algorithm

A workflow for reconstructing calculations in web JavaScript from their final outputs, such as request parameters, cookies, headers, or WebSocket messages. It covers signatures, encryption, verification challenges, WebAssembly, and heavily obfuscated code.

In plain words
What is it for?
Tracing a value back through its writer, builder, and entry point. It helps analyze request signatures, encrypted values, cookies, challenge parameters, response decryption, and binary or WebSocket protocols.
Why use it?
It helps identify the code that produces an output without first trying to understand an entire large or confusing script. It also provides ways to align browser results with local code and diagnose missing inputs or runtime dependencies.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/guccig4366/xbsreverseskill/web-reverse-algorithm
Any agent
npx skills add guccig4366/xbsReverseSkill --skill web-reverse-algorithm
Clone the repo
git clone --depth 1 https://github.com/guccig4366/xbsReverseSkill

Made for: Claude Code, Codex.

Per session 226 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,238 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod 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 $0.00226 $0.02238
Opus 5 $0.00113 $0.01119
Sonnet 5 $0.00045 $0.00448
Haiku 4.5 $0.00023 $0.00224

Measured 2d ago against content hash 366e236853bc, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

web-reverse-algorithm 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 2d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/new_case_scaffold.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Origin

This is a copy

100% identical to web-reverse-algorithm — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

web-reverse-algorithm/SKILL.md · 218 lines

How it starts

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

Web 逆向纯算

这项技能不是“给一个固定公式”,而是把资料库里的方法层、题型层、训练层、工程化层压成一套总入口。

先把任务压缩成这条闭环,再决定读哪份 references、走哪条路径、写哪种落地代码:

最终请求 / 最终 cookie / 最终 verify / 最终 WS 帧
-> writer
-> builder
-> entry
-> source

核心原则

  1. 先找最终写出点,不先读混淆大文件。
  2. 先存中间值,不先猜算法名。
  3. 先缩小执行范围,再补环境。
  4. 先证明输入输出边界,再决定是否整体迁移。
  5. 先把结果整理成可复用结构,再继续做版本适配。

使用顺序

1. 先判题型

把目标先归到下面之一:

  • 标准签名 / 标准摘要题
  • 混合加密 / 密钥包装题
  • Cookie / Header / 多参数联动题
  • JSVMP / VMP / 强混淆纯算题
  • Wasm / Protobuf / WebSocket / 二进制协议题
  • 验证码 / 风控 / challenge 题

如果还没分清,先读 references/01-decision-tree.md

2. 再判当前阻塞点

优先判断你卡在下面哪一类:

  • 入口没找对
  • 原始串或原始 payload 没对齐
  • 中间数组 / 中间对象没采到
  • 运行时依赖没补齐
  • 图像线和参数线没拆开
  • 协议边界没证明

遇到这一步拿不准时,优先读 references/04-debug-env-playbook.md

3. 按题型选路线

标准签名 / 混合加密 / Cookie / Header / 国密

适用信号:

  • 输出长度规整
  • md5/sha1/hmac/aes/rsa/sm3/sm4
  • token&t&appKey&data
  • params + encSecKey
  • document.cookie 或 header 明显可追

优先读取 references/02-algorithm-families.md

JSVMP / VMP / 小红书 / a_bogus / 多参数复杂纯算

适用信号:

  • 大数组、解释器、for(;;)+switch
  • 位运算密集、状态数组、寄存器式写法
  • window._webmsxyw__TENCENT_CHAOS_VMbyted_acrawler 一类入口

优先读取 references/02-algorithm-families.mdreferences/04-debug-env-playbook.md

Wasm / Protobuf / WebSocket / challenge 协议

适用信号:

  • WebAssembly.instantiate
  • application/x-protobuf
  • 二进制响应、导出函数、首包/验证包分段

优先读取 references/02-algorithm-families.mdreferences/03-captcha-families.md

验证码 / 风控 / challenge / verify

永远先拆 5 条线:

  1. 初始化 / challenge 线
  2. 图像或题面识别线
  3. 参数 builder 线
  4. 环境 / 指纹 / collect 线
  5. 最终 verify 线

优先读取 references/03-captcha-families.md

统一工作流

1. 锁定最终写出点

优先从这些位置切:

  • fetch
  • XMLHttpRequest.send
  • setRequestHeader
  • document.cookie
  • JSON.stringify
  • verify 提交点
  • WebSocket 首包或验证包发送点

Read the full file on GitHub · 218 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. 2d ago First seen · 218 lines · 226 tokens per session scan A 366e236853bc

Subscribe to this mod's changes

web-reverse-algorithm is a skill published in the GitHub repository guccig4366/xbsReverseSkill (5 stars, last pushed 2d ago), licensed MIT. It adds 226 tokens to every session and 2,238 once invoked, about $0.0011 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to web-reverse-algorithm, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

geo-effect-kit-release

Use when preparing, versioning, tagging, publishing, or verifying npm releases for the cesiumDesign geo-effect-kit workspace, including @ztgkzhaohao/geo-effect-kit and @ztgkzhaohao/geo-effect-kit-mcp.

tzxzhaohao/cesiumDesign · 57 tokens

review-pending-pr-reviews

Review, grill, edit, and post pending PR review drafts saved by /review-pr (or its batch/cron runners). Lists drafts that have not yet been posted, walks the maintainer through each finding, then posts, closes, or discards. Use when the user says "post my pending reviews", "what reviews are waiting", "go through the…

nrwl/nx · 93 tokens

nx-generate

Generate code using nx generators. INVOKE IMMEDIATELY when user mentions scaffolding, setup, structure, creating apps/libs, or setting up project structure. Trigger words - scaffold, setup, create a new app, create a new lib, project structure, generate, add a new project. ALWAYS use this BEFORE calling nxdocs or…

nrwl/nx · 80 tokens

check-docs-style

Check modified Nx documentation pages against the astro-docs style guide. Auto-trigger after writing or editing docs content in the nx repo. Also trigger on "check style", "style guide", "docs review", "validate docs". Should run as a final step whenever docs files are modified. IMPORTANT: anytime astro-docs//.mdoc…

nrwl/nx · 0 tokens

docs-website-update

Sync docs commits from master out to the live docs branches in the nx repo: cherry-picks docs( / feat(nx-dev) commits onto website- AND the latest . .x release branch. Use when "update the docs branch", "update nx.dev", "push the latest docs changes out", "cherry-pick docs commits", "sync website-23", "ship docs to…

nrwl/nx · 0 tokens

nx-gradle-plugin-version-bump

Bump the dev.nx.gradle.project-graph plugin version. Use when updating the Gradle project graph plugin version across the codebase, creating the migration files, and updating migrations.json.

nrwl/nx · 46 tokens