re-script-deob

re-script-deob is a skill for Claude Code from dslsdzc/rev-skills. It costs 52 tokens per session (3,758 once invoked), scanned A, original, Apache-2.0.

A guide to removing obfuscation from PowerShell, VBA macros, and JavaScript. Obfuscation deliberately makes code hard to read by encoding strings, joining fragments, or hiding the execution chain.

In plain words
What is it for?
Use it to inspect PowerShell files, Word and Excel macro documents, JavaScript variants, phishing attachments, and script-based downloaders.
Why use it?
Malicious scripts and document macros often conceal their real actions behind several layers of transformed text. This guide helps restore readable logic and trace how one payload leads to the next.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to inspect PowerShell files, Word and Excel macro documents, JavaScript variants, phishing attachments, and script-based downloaders.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dslsdzc/rev-skills/re-script-deob
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 dslsdzc/rev-skills --skill re-script-deob
Clone the repo
git clone --depth 1 https://github.com/dslsdzc/rev-skills

Made for: Claude Code.

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 re-script-deob

README.md
[![agentmods](https://agentmods.dev/badge/skills/dslsdzc/rev-skills/re-script-deob/github.svg)](https://agentmods.dev/skills/dslsdzc/rev-skills/re-script-deob)
Your own site
<a href="https://agentmods.dev/skills/dslsdzc/rev-skills/re-script-deob"><img src="https://agentmods.dev/badge/skills/dslsdzc/rev-skills/re-script-deob/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 re-script-deob

Your own site · 80×15
<a href="https://agentmods.dev/skills/dslsdzc/rev-skills/re-script-deob"><img src="https://agentmods.dev/badge/skills/dslsdzc/rev-skills/re-script-deob.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,758 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
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.00052 $0.03758
Opus 5 $0.00026 $0.01879
Sonnet 5 $0.00010 $0.00752
Haiku 4.5 $0.00005 $0.00376

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

Security

Grade A, and why

re-script-deob 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 9d 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.

.claude/skills/re-script-deob/SKILL.md · 154 lines

How it starts

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

脚本/宏去混淆(PowerShell / VBA / JavaScript)

何时使用 / 何时不用

  • 用:.ps1 / .docm / .xlsm / .js / .jse / .hta 等脚本与宏的混淆还原(编码、字符串拼接、执行链)
  • 用:钓鱼附件宏、恶意下载器脚本([[re-malware]] → [[re-managed]] 路径)
  • 不用:编译产物(native 走 [[re-binary-core]]、.NET 走 [[re-dotnet]]、Java 走 [[re-java]])
  • 不用:脚本完全可读(直接读逻辑,无需本技能)
  • 注意:动态执行默认沙箱([[platform-tips]] 最高原则)——静态解码不执行可免沙箱,任何"运行脚本取下一层"的步骤必须进 [[re-sandbox]]

工具准备

参考 [[platform-tips]]——本技能静态解码为主,免沙箱;执行链跟踪中需要运行时(跑脚本/开宏)的步骤按最高原则进沙箱。

python3(解码主力)

  • Linux: apt install python3 / dnf install python3 / pacman -S python
  • macOS: 自带;Windows: 官方安装器或 choco install python
  • 验证: python3 --version

oletools(VBA 宏提取/解码,可选但强烈建议)

  • pip install oletools(依赖 pyparsing 自动装上)
  • 验证: olevba --help

xxd / sed(十六进制与文本处理)

  • Debian/Ubuntu: apt install xxd(新版本独立包,旧版本在 vim-common);Fedora: dnf install vim-common(xxd 传统由 vim-common 提供,F38+ 也有独立 xxd 子包);Arch: pacman -S xxd
  • macOS: 自带(vim 附送)
  • Windows: 无自带 xxd——用 WSL 或 PowerShell Format-Hex
  • sed 全平台自带;验证: xxd -v && sed --version

PowerShell(Windows 内置)/ pwsh(Linux/macOS)

  • Windows: 内置 powershell.exe(或 PowerShell 7 pwsh
  • Linux: apt install powershell(Microsoft 源)或 snap install powershell;macOS: brew install --cask powershell
  • 验证: pwsh --version

js-beautify(JS 美化,可选)

  • pip install jsbeautifier;验证: js-beautify --version

操作步骤

按顺序执行;每层还原结果存档编号(layer_01.ps1layer_02.ps1 …),执行链跟踪中"运行脚本拿下一层"的步骤一律在沙箱内。

  1. 识别脚本类型与混淆风格
    file sample.ps1 && head -c 512 sample.ps1
    grep -oiE 'IEX|Invoke-Expression|-EncodedCommand|FromBase64String|eval\(|unescape|fromCharCode|Chr\(|StrReverse|Document_Open|AutoOpen' sample.ps1
    
    • PowerShell 特征: -EncodedCommand / IEX / FromBase64String / [Convert]::
    • VBA 特征: Sub AutoOpen / Document_Open / Chr( / StrReverse / Evaluate / Shell
    • JS 特征: eval( / unescape / fromCharCode / \xHH 十六进制 / document.write
    • 混淆风格分类:纯编码(base64/hex/char-code)、字符串拼接('co'+'mmand')、执行链(外层 IEX/eval 嵌套内层载荷)、字符反转/替换

Read the full file on GitHub · 154 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. 9d ago First seen · 154 lines · 52 tokens per session scan A 6813c49ece41

Subscribe to this mod's changes

re-script-deob is a skill published in the GitHub repository dslsdzc/rev-skills (54 stars, last pushed 14d ago), licensed Apache-2.0. It adds 52 tokens to every session and 3,758 once invoked, about $0.0003 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-09-03.

Related

Other skills, from other repositories

analyzing-golang-malware-with-ghidra

Reverse engineer Go-compiled malware in Ghidra by parsing Go buildinfo and pclntab structures, recovering stripped/obfuscated function names (e.g. via GoResolver), and extracting embedded module/dependency strings and types from Go binaries. Use when analyzing a Go-language malware sample, deobfuscating a…

Youngmaidainon/Agent-Level-Up · 95 tokens

analyzing-golang-malware-with-ghidra

Reverse engineer Go-compiled malware in Ghidra by parsing Go buildinfo and pclntab structures, recovering stripped/obfuscated function names (e.g. via GoResolver), and extracting embedded module/dependency strings and types from Go binaries. Use when analyzing a Go-language malware sample, deobfuscating a…

mukul975/Anthropic-Cybersecurity-Skills · 95 tokens

Reverse Engineering & Binary Analysis

Binary analysis, assembly interpretation, disassembly, decompilation, firmware RE, and protocol reverse engineering.

Masriyan/Claude-Code-CyberSecurity-Skill · 26 tokens

analyzing-golang-malware-with-ghidra

Reverse engineer Go-compiled malware using Ghidra with specialized scripts for function recovery, string extraction, and type reconstruction in stripped Go binaries.

plurigrid/asi · 40 tokens

reverse-engineering-arm-binaries

Reverse engineers ARM/AArch64 malware by identifying the architecture and instruction set state (ARM/Thumb), parsing ELF/Mach-O ARM headers, and orienting analysis around the ARM calling convention. Activates for requests to reverse ARM binaries, analyze AArch64 malware, or handle ARM/Thumb instruction-set decoding.

meltedinhex/analyst-ai-pack · 69 tokens

reverse-engineering-binaries-with-ghidra

Uses Ghidra to disassemble and decompile a binary, navigate to key routines via imports and strings, annotate decompiled code, and run headless scripts to automate extraction of C2, crypto, and config. Activates for requests to reverse engineer with Ghidra, decompile a binary, or script Ghidra headless analysis.

meltedinhex/analyst-ai-pack · 80 tokens