Learn

Practical guides on protecting .NET assemblies — how obfuscation works, what it genuinely defends against, and how to fit it into a real build pipeline.

Looking for a quick answer? See the FAQ → Glossary of terms → Subscribe (Atom feed)

Guides

Guide How to obfuscate a .NET DLL or EXE A step-by-step walkthrough of obfuscating a compiled .NET assembly, what changes in the output, and how to verify the result still runs. 6 min read Guide New Is ConfuserEx still maintained? The original ConfuserEx is effectively dead, but the name lives on in community forks — some targeting modern .NET. An honest 2026 status check: what happened, whether it still protects .NET 8, and what adopting a fork actually commits you to. 7 min read Guide New Discontinued .NET obfuscators (and what to use instead) Old forum threads still recommend obfuscators that are abandoned, offline or alive only as forks. The status of ConfuserEx, .NETGuard, ILProtector and DeepSea as of November 2026, why an unmaintained obfuscator is a real risk, how to tell whether a tool is alive, and how to move off one. 6 min read Guide Obfuscating .NET builds in CI/CD Wire the obfuscation API into GitHub Actions, Azure Pipelines or a local build script so every release artifact is protected automatically. 8 min read Guide New Obfuscate on every Release build with an MSBuild target A dozen lines in your .csproj that protect every Release build — on a developer machine, in dotnet publish and dotnet pack — by calling the API right after the compiler. No package to install. Why it hooks CoreCompile rather than Build, how it stays incremental, and when a pipeline step is the better choice. 7 min read Guide New How to obfuscate a NuGet package A .nupkg is a zip file one double-click from a decompiler — and the easiest artifact to break, because other code compiles against it. Where obfuscation fits between build and pack, why the public API stays intact, multi-targeting, and the symbol-package and friend-assembly mistakes that undo the protection. 7 min read Guide Obfuscation and reflection: what breaks and why Renaming is safe until something looks up a member by name. Serialization, DI containers and XAML are the usual suspects — here is how to avoid each trap. 8 min read Guide How to exclude a class or member from obfuscation When a plugin host, config file or serializer finds your code by name, mark it with the standard [Obfuscation(Exclude = true)] attribute and the name is kept. What is already skipped automatically, how to exclude one member or a whole class, and why to exclude as little as you can. 6 min read Guide How to verify .NET obfuscation actually worked Inspect a real before-and-after DLL with ILSpy, compare renamed symbols and string literals, and test that the protected build still behaves correctly. 7 min read Guide How to check that your obfuscation actually worked A file that downloads successfully tells you nothing about whether it is protected. Open it in ILSpy and look: what renaming, string encryption, control-flow, reference proxying and virtualization should each look like in a decompiler, plus a two-minute check to run on every release. 6 min read Guide How to test your obfuscated build before you ship Obfuscation breaks apps in one narrow, predictable way — name-based lookups like serialization, DI and XAML binding. Here is a workflow that tests the obfuscated artifact itself and catches a break before your users do. 6 min read Guide Protecting a .NET desktop application (WPF and WinForms) A desktop app is the clearest case for obfuscation: you ship the assembly to a PC anyone can decompile. The desktop-specific workflow — which file to protect, what breaks in WPF and WinForms binding, how to layer it, and signing and testing. 7 min read Guide Protecting a Blazor WebAssembly app A Blazor WASM app downloads your compiled .NET assemblies straight into the browser, where anyone can save and decompile them. 7 min read Guide Obfuscating Unity game assemblies Unity ships your C# as Assembly-CSharp.dll. Whether obfuscation helps depends entirely on which scripting backend you build with. 7 min read Guide Reading an obfuscated crash: decoding a stack trace An obfuscated assembly produces crash reports full of renamed symbols. The rename map turns them back into your original names — here is the workflow. 6 min read Guide Obfuscation and code signing: do them in the right order Obfuscation rewrites your assembly, which invalidates any signature already on it. So the order is fixed: build, obfuscate, then sign — last. Here is why, for both Authenticode and strong naming, and how to wire it into a build. 6 min read Guide Why obfuscated assemblies trip antivirus — and how to avoid it Packing and anti-tamper are the usual cause of antivirus false positives on protected .NET binaries. This explains the mechanism and how to stay clean. 7 min read Guide Which protection layers do you actually need? Renaming, string encryption, control-flow, virtualization — a decision guide that matches each layer to the threat it answers, so you turn on what your project needs and nothing it doesn't. 8 min read

How it works

Concept What .NET obfuscation actually protects against Obfuscation raises the cost of reverse engineering — it is not encryption. Here is an honest breakdown of the threats it addresses and the ones it does not. 7 min read Concept New Obfuscation vs encryption: what's the difference? No, obfuscation is not encryption — and expecting either to do the other's job is the common mistake. Encryption withholds a key; obfuscation ships code that still has to run. Here is where each one fits, why shipped code can't simply be encrypted, and why they are complementary rather than alternatives. 6 min read Concept Do you need to obfuscate server-side code? Obfuscation only protects a binary once it leaves your hands. Code that runs only on your own servers is already behind a stronger boundary; code you ship is where it earns its place. Here is how to decide per artifact. 6 min read Concept Can obfuscated .NET code be reverse-engineered? Yes — given enough skill and time, any obfuscated assembly can be. The useful question is how much it costs. Here is what deobfuscators like de4dot actually do, what no tool can give back, and why layering is what moves the number. 7 min read Concept How .NET decompilers read your code ILSpy, dnSpy and dotPeek can reconstruct near-original C# from a shipped assembly. Understanding why explains exactly what obfuscation changes. 6 min read Concept New ILSpy vs dnSpy vs dotPeek: .NET decompilers compared These are the tools someone opens your shipped assembly with. They all reconstruct readable C# from your metadata and IL, but differ in maintenance, editing power and what they mean for your threat model. An honest 2026 rundown of ILSpy, dnSpyEx, dotPeek and ILDASM — and what each implies for protecting your code. 6 min read Concept How symbol renaming works — and what it can't touch Renaming is the floor every other layer builds on: it replaces your meaningful type, method and field names with meaningless ones. Here is exactly what gets renamed, what deliberately does not, and the honest limit of names-only protection. 6 min read Concept Why public names are only renamed in applications A library's public surface is its contract with callers. This explains the rule, when to enable public renaming, and which file to upload for a modern .NET app. 6 min read Concept How string encryption works (and what it can't hide) String encryption keeps literals — URLs, keys, messages — out of a static decompile. Here is what it actually does, and the runtime limit that matters. 6 min read Concept Obfuscation with single-file, trimming, ReadyToRun and NativeAOT Modern .NET publish options package your code differently, but only one removes the IL a decompiler reads. Here is what single-file, trimming, ReadyToRun and NativeAOT each do to your code — and where obfuscation still fits. 7 min read Concept How control-flow obfuscation works Renaming hides what methods are called; control-flow obfuscation hides what they do. Here is how it reshapes a method body and why decompilers struggle with the result. 7 min read Concept How reference proxying hides your API calls Renaming never touches framework names, so a decompile still shows every call to HttpClient, the registry or your crypto. Reference proxying routes those calls through generated stubs so the target no longer appears at the call site. 6 min read Concept What method virtualization is, and when it is worth it Virtualization turns a method into bytecode for a private interpreter embedded in your assembly — the strongest layer we offer. Here is how it works and its real trade-offs. 8 min read Concept What the integrity check does (and what it doesn't) The integrity check couples your virtualized methods with a self-check, so patching the compiled output breaks them instead of running altered logic. It is a focused tamper check on those methods — not whole-assembly anti-tamper. Here is the honest scope. 5 min read Concept What anti-debugging is (and why we don't do it) Several protectors headline anti-debugging; we don't offer it, on purpose. Here is what it actually does, where it helps, its real costs — false positives, antivirus heuristics, a cat-and-mouse an attacker usually wins — and what we spend the effort on instead. 6 min read Concept What whole-assembly anti-tamper is (and what we do instead) Commercial protectors headline whole-assembly anti-tamper; we offer a narrower integrity check on purpose. Here is how a self-checksum works, its real limits — patchable checks, signing collisions, antivirus heat — and why we aim tamper detection at the virtualized methods that matter. 6 min read Concept .NET obfuscation glossary The vocabulary of .NET code protection in plain English: IL, metadata, decompilers and deobfuscators, renaming, string encryption, control flow, virtualization, anti-tamper, packing, rename maps and more — each in a sentence or two, with a link where there is more to say. 7 min read Concept Does obfuscation slow your app down? A practical look at the runtime and size cost of each layer — from renaming (none) to virtualization (real) — and how to apply the heavy ones only where they pay off. 6 min read