Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Reverse Eng Dotnet

ASecurity

Reverse a .NET / C# assembly — decompile, deobfuscate, debug, and IL-patch managed binaries. Load when the target is a managed PE (.exe/.dll with a CLR header), a Sharp* red-team tool (Rubeus, SharpHound, Seatbelt), a ConfuserEx/SmartAssembly/Babel/.NET-Reactor-obfuscated sample, or a .NET loader/stealer. Signals: "mscoree" / "_CorExeMain" / "mscorlib" strings, garbled Unicode class names in a decompiler, "deobfuscate this .NET", "patch/keygen a C# binary".

20 stars
0 votes
0 copies
0 views
Added 10/4/2026
ai-agentsgoc#reactdebugginggitdocumentation

Works with

cli

Security Analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned 10/4/2026

$npx -y skills add NoorQureshi/SploitAgent --skill reverse-eng-dotnet --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Reverse Eng Dotnet?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Reverse Eng Dotnet
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/noorqureshi-reverse-eng-dotnet/badge)](https://www.skillsdirectory.com/skills/noorqureshi-reverse-eng-dotnet)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
Files
SKILL.md
---
name: reverse-eng-dotnet
description: >
  Reverse a .NET / C# assembly — decompile, deobfuscate, debug, and IL-patch managed binaries.
  Load when the target is a managed PE (.exe/.dll with a CLR header), a Sharp* red-team tool
  (Rubeus, SharpHound, Seatbelt), a ConfuserEx/SmartAssembly/Babel/.NET-Reactor-obfuscated
  sample, or a .NET loader/stealer. Signals: "mscoree" / "_CorExeMain" / "mscorlib" strings,
  garbled Unicode class names in a decompiler, "deobfuscate this .NET", "patch/keygen a C# binary".
domain: reverse-engineering
type: technique
stability: learning
modes: [pentest, bugbounty]
severity: medium
mitre: [T1027]
tools: [dnspyex, de4dot, ilspycmd, die, dnlib]
schema_version: 1
---

# .NET / C# assembly reversing

## When it applies
The binary is a managed .NET assembly — a thick client, a Sharp* red-team tool, or a captured
loader/stealer — and it is in scope (`tradecraft-scope-roe`, `scope.txt`). Pure-native PEs, IL2CPP
Unity builds, and NativeAOT output carry no CLR metadata: those go to `reverse-eng-binary-triage`.
dnSpyEx (the only GUI with an IL editor and debugger) is Windows-only; on Linux/macOS use
`ilspycmd` + `dotnet de4dot.dll` and accept that interactive patching/debugging needs Windows.

## Why it works
Managed assemblies keep near-complete metadata — type, method, and field names survive
compilation, so decompilation recovers close-to-source C#. Obfuscators only scramble names,
strings, and control flow, and de4dot automates the unscrambling for the common families. The IL
instruction stream is the ground truth: the C# view loses or distorts compiler-generated code
(async state machines, closures, `yield`), so decisive reads and every patch happen at IL level.

## Method
> Obfuscator identification table, de4dot options, anti-tamper bypasses, and IL patch recipes:
> see [`cheatsheet.md`](cheatsheet.md) next to this file.

1. **Confirm managed, not native.** `strings target.exe | grep -iE "mscoree|_CorExeMain|mscorlib|System\."`
   and `diec target.exe` (Detect It Easy reports .NET plus the obfuscator). Hard proof: PE data
   directory 14 (CLR header) non-zero, `_CorExeMain` entry, `#~`/`#Strings` metadata streams.
2. **Detect and strip obfuscation.** `de4dot --detect target.exe` to identify the family, then
   `de4dot target.exe -o target-clean.exe`. Keep the original untouched — all further analysis
   runs on the clean copy.
3. **Static in dnSpyEx.** C# view for fast browsing and string search (`password`, `verify`,
   `encrypt`, `http`, `Config`), IL view for anything decisive. Read order: `<module>` `.cctor`
   (deobfuscator/anti-tamper init runs first) → `Main` → the method that uses your located string
   (find via cross-references).
4. **Dynamic with the dnSpyEx debugger** when strings or config decrypt only at runtime: break on
   the decryptor's return and read the plaintext from Locals/Watch. Set exception breakpoints —
   obfuscators hide real control flow in `try`/`catch` dispatch, and breaking the thrown exception
   type shows the actual path. .NET debugging exposes object values directly; prefer it over
   grinding static IL.
5. **Patch via Edit IL, never Edit Method (C#).** Flip `ldc.i4.0`→`ldc.i4.1`, replace a check with
   `ldc.i4.1; ret`, or `nop` out a validation block, then File → Save Module as a new file. C#
   recompile fails constantly on state machines and lambdas; IL edits are instruction-exact.

## Gotchas
- **IL2CPP / NativeAOT look like .NET but are native** — `System.Private.CoreLib` strings, no CLR
  header. Route to `reverse-eng-binary-triage`.
- **New ConfuserEx anti-tamper / .NET Reactor necrobit defeat de4dot** — patch the integrity check
  to `ret` first, or run the binary and dump the decrypted assembly from memory (MegaDumper /
  ExtremeDumper), then clean the dump with de4dot. Themida .NET is a native virtualizing wrapper —
  de4dot cannot touch it; dump and go native.
- **Exception-driven control flow** can't be `nop`'d — trace the `catch` dispatch to find the real logic.
- **Keep artifacts on disk**: original, `*-clean.exe`, patched copy, and the extracted
  config/C2/keys — the findings folder needs reproducible evidence.
- **Run unknown samples in an isolated VM** — executing a managed binary runs its `.cctor`.

## Verify success
You can name the obfuscator (or confirm none), show decrypted strings/config/C2 or a patched
binary whose behavior provably changed, and the original sample is preserved for the diff.

## References
dnSpyEx, de4dot, and dnlib documentation; Washi's "Misconceptions about .NET reversing" (IL over
C# decompiler output).

---
_Portions adapted from [reverse-skill](https://github.com/zhaoxuya520/reverse-skill) by zhaoxuya520, MIT License._

Attribution

NoorQureshiNoorQureshi
View sourceSee grades on GitHubMore from NoorQureshi →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Terse caveman voice: answer first, fluff gone, every technical fact kept. Use for /caveman, "caveman mode", "talk like caveman", "be brief", "less tokens". Stays on until "stop caveman" or "normal mode".

1100021 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

698431 votes

Writing Skills

Create and manage Claude Code skills in HASH repository following Anthropic best practices. Use when creating new skills, modifying skill-rules.json, understanding trigger patterns, working with hooks, debugging skill activation, or implementing progressive disclosure. Covers skill structure, YAML frontmatter, trigger types (keywords, intent patterns), UserPromptSubmit hook, and the 500-line rule. Includes validation and debugging with SKILL_DEBUG. Examples include rust-error-stack, cargo-dep...

3931 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3421 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Amp, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Grok Build, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

741 votes
View all in ai-agents →