re-dotnet

re-dotnet is a skill for Claude Code from dslsdzc/rev-skills. It costs 56 tokens per session (3,495 once invoked), scanned B, original, Apache-2.0.

A guide to examining .NET programs by converting their intermediate code into readable C#-like code. It also covers common .NET obfuscation tools and locating registration, network, or decryption logic.

In plain words
What is it for?
Use it with ILSpy or dnSpy to decompile .NET assemblies, investigate obfuscation such as ConfuserEx, and analyze suspicious .NET samples.
Why use it?
It helps developers inspect managed Windows or cross-platform programs when the original source code is unavailable or hard to read.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it with ILSpy or dnSpy to decompile .NET assemblies, investigate obfuscation such as ConfuserEx, and analyze suspicious .NET samples.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dslsdzc/rev-skills/re-dotnet
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-dotnet
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-dotnet

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/dslsdzc/rev-skills/re-dotnet"><img src="https://agentmods.dev/badge/skills/dslsdzc/rev-skills/re-dotnet.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,495 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00056 $0.03495
Opus 5.5 $0.00022 $0.01398
Sonnet 5.5 $0.00011 $0.00699
Haiku 4.5 $0.00006 $0.00349

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

Security

Grade B, and why

re-dotnet scanned grade B 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 1mo 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- `apt install mono-devel` / `dnf install mono-devel`;Arch: `sudo pacman -S mono`;macOS `brew install mono`
.claude/skills/re-dotnet/SKILL.md · 132 lines

How it starts

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

.NET CIL 逆向(dnSpy / ILSpy / de4dot)

何时使用 / 何时不用

  • 用:确认是 .NET 程序集(PE CLI header / file 输出 "Mono/.Net assembly")后,还原 CIL 为可读 C#;处理 ConfuserEx/SmartAssembly 等 .NET 混淆;定位注册码/网络/解密逻辑
  • 用:恶意 .NET 样本([[re-malware]] → [[re-managed]] 路径)的静态还原
  • 不用:非托管 PE(native 程序直接 [[re-binary-core]];混合模式程序 native 部分同样转出)
  • 不用:Java([[re-java]])、脚本([[re-script-deob]])
  • 注意:动态步骤默认沙箱([[re-analyze/platform-tips]] 最高原则);先 file/初勘确认再动手

工具准备

参考 [[re-analyze/platform-tips]]——反编译/去混淆为静态步骤,免沙箱;动态验证按最高原则进沙箱。

dotnet SDK(跑 .NET 工具的前提)

  • Debian/Ubuntu: apt install dotnet-sdk-8.0(官方 Microsoft 源)
  • Fedora: dnf install dotnet-sdk-8.0;Arch: pacman -S dotnet-sdk
  • macOS: brew install --cask dotnet-sdk
  • Windows: choco install dotnet-sdk 或官方安装器
  • 验证: dotnet --version

ILSpy(跨平台,GUI + CLI)

  • CLI(dotnet tool): dotnet tool install -g ilspycmd
  • GUI: GitHub icsharpcode/ILSpy release zip(linux-x64 / win-x64 / osx-x64 均有)
  • 验证: ilspycmd --help;GUI 能打开程序集

dnSpy(Windows 专用,GitHub release)

  • GitHub dnSpyEx/dnSpy release zip → 解压运行 dnSpy.exe
  • 仅 Windows(WinForms + .NET Framework);Linux/WSL 用 ILSpy(或 Wine 跑 dnSpy)
  • 验证: GUI 启动并能 File > Open 程序集
  • 优势: 反编译 + 编辑 + 调试一体

de4dot(GitHub release,去混淆)

  • GitHub de4dot/de4dot release de4dot.exe;Linux/macOS 需 mono:
    • apt install mono-devel / dnf install mono-devel;Arch: sudo pacman -S mono;macOS brew install mono
    • 仅在明确需要 upstream Git snapshot 时改用 AUR 的 mono-git(属 AUR,非官方仓库)
    • 运行: mono de4dot.exe --help;Windows 直接 de4dot.exe --help
  • 验证: --help 正常输出

单文件 bundle 解包(sfextract / ILSpy 内置,可选但常用)

  • 零额外工具: ILSpy 7.1+ GUI 直接 File > Open 单文件 bundle,7.2+ 右键 Extract package entry 导出内嵌程序集
  • CLI: dotnet tool install -g sfextract(Droppers/SingleFileExtractor,MIT;注意 dotnet-bundle-extractor/dotnet-bundle-extract 这两个包名在 NuGet 并不存在)
  • 用法: sfextract sample.exe -o extracted/(不带 -o 只列出 bundle 内文件)
  • 验证: sfextract --help

操作步骤

按顺序执行,每步记录证据(路径 + sha256,见 [[re-triage]])。

  1. 识别 .NET 程序集:
    file sample.exe            # 含 "Mono/.Net assembly" 即 .NET
    strings sample.exe | grep -i mscoree   # mscoree.dll 导入是经典标识
    
    CLI header 确认(PE 数据目录第 15 项 = COM Descriptor):
    import pefile
    pe = pefile.PE('sample.exe')
    dd = pe.OPTIONAL_HEADER.DATA_DIRECTORY[14]  # COM Descriptor (CLI header)
    print(hex(dd.VirtualAddress), hex(dd.Size))  # 非 0 → 托管程序集
    
    注意混合模式程序集(native + 托管都看得到)与自包含单文件(见坑 4)。 CLI header 结构速查(实测 .NET 10 产物):cb=0x48(72)、MajorRuntimeVersion=2、MinorRuntimeVersion=5、MetaData RVA、EntryPointToken(4 字节 union,ECMA-335 II.25.3.3:未置 COMIMAGE_FLAGS_NATIVE_ENTRYPOINT 时为 metadata token(MethodDef/File),置位时才是 native code RVA;0=无入口,即 DLL)、CorFlags(1=ILONLY、2=32BITREQUIRED、0x8=强名签名(COMIMAGE_FLAGS_STRONGNAMESIGNED)、0x20000=32BITPREFERRED)。 元数据根(MetaData RVA 处):签名 BSJB(0x424A5342) + 版本 1.1 + 保留 + 版本串长 + 版本串("v4.0.30319" 是 Roslyn/MetadataRootBuilder 的典型默认值,不是格式不变量——ECMA-335 允许 vendor 自定义串,以实际字节为准)+ flags(2) + 流数(2) + 流头(offset + size + 名字,4 字节对齐)。 流名即内容形态:#~(压缩表,Roslyn 默认)/#-(未压缩表)、#Strings(元数据字符串池)、#US(用户字符串:代码里的 C# 字面量)、#GUID、#Blob(签名/常量 blob)——字符串加密样本的明文不在 #US 就是运行时拼的;#~ 的表内容即 dnSpy/ILSpy 的类型/方法树。

Read the full file on GitHub · 132 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. 1mo ago Changed · +1 lines scan A → B 600af6edfc79
  2. 2mo ago Changed · +1 lines 30fca2e2f7e7
  3. 3mo ago First seen · 130 lines · 56 tokens per session scan A 8e1368dee35b

Subscribe to this mod's changes

re-dotnet is a skill published in the GitHub repository dslsdzc/rev-skills (275 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 56 tokens to every session and 3,495 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

re-dotnet compared with skills from other repositories

re-dotnet next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
re-dotnetdslsdzc/rev-skillsSkill2751mo agoApache-2.0B56Claude Code
analyzing-golang-malware-with-ghidraYoungmaidainon/Agent-Level-UpSkill43mo agoMITA95Claude Code, Codex
analyzing-golang-malware-with-ghidra26zl/cybersec-toolkitSkill114todayMITA95Claude Code
analyzing-golang-malware-with-ghidraoyi77/1ai-skillsSkill19todayMITA60Claude Code
analyzing-golang-malware-with-ghidraplurigrid/asiSkill721mo agoMITA40Claude Code
analyzing-golang-malware-with-ghidramarysatasselshaped667/skills-collection-1Skill11mo agoMITA40Claude Code, Codex
analyzing-golang-malware-with-ghidraautohandai/community-skillsSkill144mo agoApache-2.0A40Claude Code, Codex