reverse-engineering-dotnet-malware-with-dnspy

Extract deobfuscated logic and hardcoded IOCs from .NET malware with dnSpy.

Updated Apr 23, 2026
One-click install
npx skills add https://github.com/YukiIto1999/ctf-sleuth --skill reverse-engineering-dotnet-malware-with-dnspy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: reverse-engineering-dotnet-malware-with-dnspy
Source: https://github.com/YukiIto1999/ctf-sleuth/tree/main/.claude/skills/reverse-engineering-dotnet-malware-with-dnspy
Command: npx skills add https://github.com/YukiIto1999/ctf-sleuth --skill reverse-engineering-dotnet-malware-with-dnspy

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill enables security researchers and defenders to systematically reverse-engineer .NET malware samples, understand their behavior, and extract actionable indicators for defense.

Core Features & Use Cases

  • Decompilation & Analysis: Use dnSpy to inspect C# / VB.NET sources, deobfuscate code, and trace execution paths.
  • Configuration Discovery: Identify hardcoded C2 endpoints, mutexes, and encryption keys to map the malware's operations.
  • Threat Research & Documentation: Produce structured reports and IOCs for incident response, red team, and OSINT research.

Quick Start

Load a .NET malware sample in dnSpy and begin step-by-step analysis to reveal deobfuscated logic and hardcoded IOCs.

Frequently Asked Questions about reverse-engineering-dotnet-malware-with-dnspy

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I decompile and analyze .NET malware using dnSpy?

To decompile .NET malware using dnSpy, load C# or VB.NET samples to inspect sources, trace execution paths, and extract hardcoded configuration data like C2 endpoints and mutexes. This workflow enables systematic threat research and IOC extraction in isolated environments.

What is the best way to deobfuscate .NET malware samples?

The best way to deobfuscate .NET malware is to pair dnSpy with de4dot. This combination strips obfuscation from C#/VB.NET threats, allowing you to reveal the deobfuscated logic and map the malware's operations effectively.

Can I extract C2 endpoints and mutexes from obfuscated .NET threats?

Yes, you can extract C2 endpoints, mutexes, and encryption keys from obfuscated .NET threats. By applying dnSpy-based reverse engineering and de4dot deobfuscation, you can identify hardcoded configuration data to map malicious operations.

How do I produce structured threat reports and IOCs for incident response?

Produce structured threat reports and IOCs for incident response by analyzing .NET malware metadata and extracting strings via dnSpy. This process yields structured documentation of deobfuscated logic and indicators for red team and OSINT research.

Do I need an isolated environment to reverse-engineer .NET malware?

Yes, you need an isolated environment to safely reverse-engineer .NET malware. The dnSpy analysis workflow specifies extracting deobfuscated logic and IOCs within isolated environments to prevent accidental execution of malicious C# or VB.NET code.