<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Skater</title>
    <description>The latest articles on DEV Community by Skater (@rustemsoft).</description>
    <link>https://dev.to/rustemsoft</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F830209%2Fbf269d5a-47d2-4a8c-a003-ff97d1d4b02e.jpeg</url>
      <title>DEV Community: Skater</title>
      <link>https://dev.to/rustemsoft</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rustemsoft"/>
    <language>en</language>
    <item>
      <title>The Obfuscation Passed. The WPF Screen Didn’t.</title>
      <dc:creator>Skater</dc:creator>
      <pubDate>Sun, 29 Nov 2026 19:26:43 +0000</pubDate>
      <link>https://dev.to/rustemsoft/the-obfuscation-passed-the-wpf-screen-didnt-1jip</link>
      <guid>https://dev.to/rustemsoft/the-obfuscation-passed-the-wpf-screen-didnt-1jip</guid>
      <description>&lt;p&gt;The protected executable launched. The main window appeared. Nothing crashed.&lt;/p&gt;

&lt;p&gt;Then I typed into a text box-and the view model never received the value.&lt;/p&gt;

&lt;p&gt;That kind of failure is easy to miss if “the app starts” is your only post-obfuscation test. WPF bindings connect markup to code at runtime, so a build can look healthy while parts of the UI have quietly lost their connection.&lt;/p&gt;

&lt;h2&gt;
  
  
  A binding depends on names
&lt;/h2&gt;

&lt;p&gt;Consider this XAML:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight xml"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;TextBox&lt;/span&gt; &lt;span class="na"&gt;Text&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"{Binding CustomerName,
                UpdateSourceTrigger=PropertyChanged}"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;WPF looks for a property named &lt;code&gt;CustomerName&lt;/code&gt; on the binding source, usually the object assigned to the view’s &lt;code&gt;DataContext&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The XAML compiler converts markup into BAML-compiled WPF markup stored in the assembly’s resources. The binding path still needs to correspond to a property that exists when the application runs.&lt;/p&gt;

&lt;p&gt;Now suppose an obfuscator changes the property name:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Before&lt;/span&gt;
&lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="nc"&gt;CustomerName&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;get&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;set&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="c1"&gt;// After renaming&lt;/span&gt;
&lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="n"&gt;a1b2c3&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;get&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;set&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If the compiled markup still asks for &lt;code&gt;CustomerName&lt;/code&gt;, WPF can’t find it. The application may continue running, but the binding is broken. You may see a &lt;code&gt;BindingExpression&lt;/code&gt; path error in Visual Studio’s Output window.&lt;/p&gt;

&lt;p&gt;The important point: &lt;strong&gt;renaming code and protecting markup are related, but they are not the same operation.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Two goals, two checks
&lt;/h2&gt;

&lt;p&gt;When obfuscating a WPF application, consider these separately:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Protect the compiled markup.&lt;/strong&gt; BAML can expose useful details about the UI and its binding paths when inspected with decompilation tools. Opaquer provides BAML resource encryption for this purpose.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep runtime references valid.&lt;/strong&gt; If a property, command, type, or resource is renamed, WPF must still be able to resolve the corresponding reference.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Enabling BAML encryption does not, by itself, prove that every renamed binding will work. Check how your obfuscation configuration handles XAML references. If a member can’t safely be renamed-or its use is difficult to verify-exclude it from renaming.&lt;/p&gt;

&lt;h2&gt;
  
  
  Don’t stop at the first successful window
&lt;/h2&gt;

&lt;p&gt;A window appearing on screen only confirms that some of the application loaded. It doesn’t confirm that bindings update, commands execute, or notifications reach the UI.&lt;/p&gt;

&lt;p&gt;For example, a view model may use &lt;code&gt;INotifyPropertyChanged&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="nc"&gt;CustomerName&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;get&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;_customerName&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="n"&gt;set&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="n"&gt;_customerName&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="nc"&gt;OnPropertyChanged&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;nameof&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;CustomerName&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Test that setting the property updates the UI, and that editing the UI updates the property when the binding is two-way. Also test commands and views that use data templates, reflection, dynamic objects, or framework conventions. These can rely on names that aren’t obvious from a single XAML file.&lt;/p&gt;

&lt;h2&gt;
  
  
  A practical test loop
&lt;/h2&gt;

&lt;p&gt;Run these checks against the &lt;strong&gt;obfuscated output&lt;/strong&gt;, not just your normal development build:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Verify the original application first.&lt;/strong&gt; Make sure the relevant screens and bindings work before obfuscation.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Enable WPF resource protection.&lt;/strong&gt; In Opaquer’s WPF settings, enable BAML encryption.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Review what will be renamed.&lt;/strong&gt; Pay particular attention to properties and commands referenced from XAML, along with members accessed through reflection or external APIs.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Obfuscate, then launch the protected application.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Exercise the UI.&lt;/strong&gt; Change bound values, trigger commands, and test property updates made by both the user and the application.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check diagnostics.&lt;/strong&gt; Look for binding path errors and XAML loading exceptions in the Visual Studio Output window or application logs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Use the renaming map to investigate mismatches.&lt;/strong&gt; Compare the original member name with its obfuscated name, then adjust the configuration and run the test again.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A binding path error usually points to a member that WPF couldn’t find. A &lt;code&gt;XamlParseException&lt;/code&gt; may instead indicate a problem resolving a type, resource, or other markup reference. Treat them as separate clues rather than applying the same fix to both.&lt;/p&gt;

&lt;h2&gt;
  
  
  Configuration choices that deserve extra attention
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Reflection and dynamic access
&lt;/h3&gt;

&lt;p&gt;If code looks up a member by name, the obfuscator may not know that the name must remain available. Exclude reflection-dependent members, or verify that your configuration handles those references.&lt;/p&gt;

&lt;h3&gt;
  
  
  Public contracts
&lt;/h3&gt;

&lt;p&gt;A property or method used by another assembly may need to keep its public name. Exclude members that are part of an API contract when changing them would affect callers.&lt;/p&gt;

&lt;h3&gt;
  
  
  String encryption
&lt;/h3&gt;

&lt;p&gt;Be cautious with strings used for dynamic lookup or other runtime behavior. If a protected string is needed before it can be decrypted, that code path may fail. Test these scenarios and exclude affected strings or use the applicable Opaquer configuration.&lt;/p&gt;

&lt;h3&gt;
  
  
  Control-flow protection
&lt;/h3&gt;

&lt;p&gt;More intensive control-flow transformations can add protection, but UI startup and binding behavior still need to be tested after enabling them. Apply transformations incrementally so a failure is easier to trace.&lt;/p&gt;

&lt;h2&gt;
  
  
  The useful rule of thumb
&lt;/h2&gt;

&lt;p&gt;Treat every WPF binding as a runtime dependency on a name. Protecting BAML can make compiled markup harder to inspect; safe renaming must also preserve the connections between that markup and your code.&lt;/p&gt;

&lt;p&gt;So don’t make “the executable launches” your release criterion. Make “the protected build still behaves correctly across the bindings and views we use” the criterion-and verify it every time your obfuscation settings change.&lt;/p&gt;

</description>
      <category>csharp</category>
      <category>debugging</category>
      <category>dotnet</category>
      <category>softwaredevelopment</category>
    </item>
    <item>
      <title>A Unified Theory of Multi-Assembly .NET Obfuscation: It's a Rename Refactoring, and the Compiler Already Went Home published</title>
      <dc:creator>Skater</dc:creator>
      <pubDate>Sun, 22 Nov 2026 18:42:01 +0000</pubDate>
      <link>https://dev.to/rustemsoft/a-unified-theory-of-multi-assembly-net-obfuscation-its-a-rename-refactoring-and-the-compiler-1l0l</link>
      <guid>https://dev.to/rustemsoft/a-unified-theory-of-multi-assembly-net-obfuscation-its-a-rename-refactoring-and-the-compiler-1l0l</guid>
      <description>&lt;p&gt;Your build is green. Your tests pass. You ship. A customer opens the app and gets &lt;code&gt;System.MissingMethodException&lt;/code&gt; - pointing at a method that has existed, untouched, since 2019.&lt;/p&gt;

&lt;p&gt;If that sentence gave you flashbacks, this post is for you. And if you're about to obfuscate a multi-project .NET solution for the first time, read this first, because that exception is already circling.&lt;/p&gt;

&lt;p&gt;Here's my claim: multi-assembly obfuscation is not five separate problems (public APIs, DTOs, reflection, build order, packaging). It's &lt;strong&gt;one problem wearing five costumes&lt;/strong&gt;. Once you see the mechanism underneath, all the usual folklore - "obfuscate in dependency order," "freeze your contracts," "exclude serialized DTOs" - stops being rules you memorize and becomes stuff you could have derived yourself.&lt;/p&gt;

&lt;p&gt;So let's derive it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The toy solution
&lt;/h2&gt;

&lt;p&gt;Everything below uses this layout, which is roughly the shape of every commercial .NET desktop app I've ever seen:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;MyApp.sln
├── MyApp.Data        → queries, persistence
├── MyApp.Core        → domain logic, shared helpers, DTOs
├── MyApp.Licensing   → activation and key checks (the crown jewels)
├── MyApp.UI          → WPF views + resource dictionaries
└── MyApp             → the exe, composition root
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h2&gt;
  
  
  The mental model
&lt;/h2&gt;

&lt;p&gt;When you rename a method in your IDE, thousands of references update and the compiler verifies that nothing was missed. That verification is the safety net that makes rename refactoring boring.&lt;/p&gt;

&lt;p&gt;An obfuscator does the same kind of renaming - but it runs on the &lt;strong&gt;compiled output&lt;/strong&gt;, after the compiler has clocked out. Nobody re-checks the references. You've inherited the compiler's job.&lt;/p&gt;

&lt;p&gt;To do that job, you need to know where names actually live in a .NET solution. There are exactly three places:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Assembly metadata.&lt;/strong&gt; The reference tables the compiler emits - &lt;code&gt;MyApp.UI&lt;/code&gt;'s IL literally contains "call &lt;code&gt;MyApp.Core.LicenseService::ValidateKey&lt;/code&gt;," resolved by name when the assemblies load. These are &lt;em&gt;recorded&lt;/em&gt; references, and a good obfuscator can rewrite both ends consistently.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. String literals in your code.&lt;/strong&gt; &lt;code&gt;GetMethod("ValidateKey")&lt;/code&gt;, serializers that map properties by name, DI registrations, XAML bindings. To the compiler these are just data. It never checks them against real names - which is why your IDE also never flags them during a normal rename.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Names consumed outside your solution.&lt;/strong&gt; Plugins, external tools, other processes. Boundaries you don't compile.&lt;/p&gt;

&lt;p&gt;And the unified theory in one sentence:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;An obfuscator can repair category 1 &lt;strong&gt;if every assembly on both ends participates&lt;/strong&gt;, it cannot see category 2 &lt;strong&gt;unless you tell it&lt;/strong&gt;, and it must never touch category 3.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Every multi-assembly failure you'll ever debug is a name that was sitting in the wrong category. Your "internal" public method that a plugin also calls? Category 3 masquerading as category 1. The DTO that was in-memory-only until someone serialized it last sprint? Category 2 wearing a category 1 costume.&lt;/p&gt;
&lt;h2&gt;
  
  
  Proof by experiment
&lt;/h2&gt;

&lt;p&gt;Don't take my word for it. Take this pair of calls:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="c1"&gt;// MyApp.Core/LicenseService.cs&lt;/span&gt;
&lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;LicenseService&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="kt"&gt;bool&lt;/span&gt; &lt;span class="nc"&gt;ValidateKey&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Length&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;29&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// sure, why not&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="c1"&gt;// MyApp.UI - two ways to reach the same method&lt;/span&gt;
&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;viaMetadata&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;license&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;ValidateKey&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;                 &lt;span class="c1"&gt;// category 1&lt;/span&gt;

&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="n"&gt;viaString&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;bool&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="k"&gt;typeof&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;LicenseService&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;GetMethod&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"ValidateKey"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;
    &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Invoke&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;license&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="k"&gt;object&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;key&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;                 &lt;span class="c1"&gt;// category 2&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Now obfuscate different combinations of assemblies and watch what survives:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Assemblies obfuscated&lt;/th&gt;
&lt;th&gt;
&lt;code&gt;ValidateKey&lt;/code&gt; renamed?&lt;/th&gt;
&lt;th&gt;&lt;code&gt;viaMetadata&lt;/code&gt;&lt;/th&gt;
&lt;th&gt;&lt;code&gt;viaString&lt;/code&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;none&lt;/td&gt;
&lt;td&gt;-&lt;/td&gt;
&lt;td&gt;✅ works (but decompiles clean)&lt;/td&gt;
&lt;td&gt;✅ works&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Core only&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;td&gt;❌ &lt;code&gt;MissingMethodException&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;❌ &lt;code&gt;GetMethod&lt;/code&gt; returns null&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Core + UI together&lt;/td&gt;
&lt;td&gt;yes&lt;/td&gt;
&lt;td&gt;✅ (references repaired)&lt;/td&gt;
&lt;td&gt;❌ still null&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Core + UI together&lt;/td&gt;
&lt;td&gt;excluded&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;td&gt;✅&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;That table is the entire topic. The rest of this post is footnotes.&lt;/p&gt;
&lt;h2&gt;
  
  
  The five rules the model hands you
&lt;/h2&gt;
&lt;h3&gt;
  
  
  Rule 1 - Everyone's in the set, or consciously out
&lt;/h3&gt;

&lt;p&gt;Category-1 references only survive if both ends participate. That means every first-party assembly you ship goes through the tool - the exe alone protects nothing, because the crown jewels live in &lt;code&gt;Licensing.dll&lt;/code&gt;, not &lt;code&gt;Program.cs&lt;/code&gt;. Two deliberate exceptions: third-party NuGet packages and framework DLLs stay out (you don't own them), and pure contract assemblies join &lt;em&gt;selectively&lt;/em&gt; - public surface frozen, private implementation still protected.&lt;/p&gt;
&lt;h3&gt;
  
  
  Rule 2 - A name is a contract the moment it leaves the set
&lt;/h3&gt;

&lt;p&gt;C# forces you to mark members &lt;code&gt;public&lt;/code&gt; merely so another assembly can see them. That's not an API - that's plumbing with a wider doorway. If the only consumers are your own obfuscated assemblies, rename freely. The moment a name crosses to a plugin, another process, or an external tool, freeze it.&lt;/p&gt;

&lt;p&gt;One sneaky variant: &lt;code&gt;InternalsVisibleTo&lt;/code&gt; means your &lt;code&gt;internal&lt;/code&gt; members are a contract too. Friend assemblies count as "outside" for the purposes of renaming internals.&lt;/p&gt;
&lt;h3&gt;
  
  
  Rule 3 - Treat string references as public API
&lt;/h3&gt;

&lt;p&gt;Before enabling renaming, audit the strings that are really names:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;GetMethod   GetProperty   GetField   GetType   CreateInstance
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Same for serialized DTOs. The moment &lt;code&gt;LicenseRequest&lt;/code&gt; travels through JSON, XML, or MessagePack, its property names &lt;em&gt;are&lt;/em&gt; the wire format, and renaming them corrupts the payload silently. For each hit you have two options: &lt;strong&gt;exclude&lt;/strong&gt; it, or &lt;strong&gt;eliminate&lt;/strong&gt; it - replacing string-based lookups with strongly typed delegates or source generators. The second option is strictly better, because it lets the rest of the assembly stay protected.&lt;/p&gt;
&lt;h3&gt;
  
  
  Rule 4 - The build machine is part of the graph
&lt;/h3&gt;

&lt;p&gt;If your obfuscator rewrites DLLs in place while Visual Studio builds projects in parallel, you'll meet "file in use" errors eventually - one project loading a DLL mid-rewrite. Set &lt;strong&gt;maximum parallel project builds to 1&lt;/strong&gt; (Tools → Options → Projects and Solutions → Build and Run) for any solution that obfuscates post-build, and process assemblies in dependency order: leaves first, the exe last. The order is the contract.&lt;/p&gt;

&lt;p&gt;Two more build-graph residents: if you strong-name your assemblies, every rewritten one must be re-signed; and on WPF, any assembly carrying BAML - resource dictionaries count! - has to go through the tool too, or you'll get XAML parse errors from renamed references. (Opaquer repairs cross-assembly BAML references, but only for assemblies it actually processes.)&lt;/p&gt;
&lt;h3&gt;
  
  
  Rule 5 - The release is the unit of protection
&lt;/h3&gt;

&lt;p&gt;Never test, and never ship, a mix of protected and unprotected first-party DLLs. Run your whole test suite against the complete protected set. Install the actual package on a clean machine. Open your own app in ILSpy before shipping - verify your work the way an attacker will.&lt;/p&gt;

&lt;p&gt;And watch the classic installer trap: a setup project that captured "Primary Output" &lt;em&gt;before&lt;/em&gt; obfuscation will faithfully package the unprotected versions of everything. Obfuscate first, then point the setup at the protected files. Archive the rename maps and logs with the release; the first scrambled stack trace from a customer is a support ticket, and the map is the translation.&lt;/p&gt;
&lt;h2&gt;
  
  
  Making it real: Opaquer, one settings file per project
&lt;/h2&gt;

&lt;p&gt;The nice thing about this model is that it tells you what your tooling must look like. Different assemblies need different aggression - &lt;code&gt;Licensing&lt;/code&gt; gets everything, contracts get surgical exclusions - so a single global config can't work. You want &lt;strong&gt;one settings file per project, in source control, reviewable in PRs&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;In Opaquer's GUI, open each assembly, configure renaming / string encryption / control flow / exclusions, and save the settings as &lt;code&gt;OpaquerSettings.xml&lt;/code&gt; next to that project (or as a named profile, F4). Then a script walks them in order:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="c1"&gt;# protect.ps1 - run after a Release build (adjust $out for your TFM)&lt;/span&gt;
&lt;span class="nv"&gt;$opaquer&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"C:\Program Files (x86)\Rustemsoft\Opaquer\Opaquer.exe"&lt;/span&gt;
&lt;span class="nv"&gt;$out&lt;/span&gt;     &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"bin\Release\net8.0"&lt;/span&gt;

&lt;span class="c1"&gt;# leaf projects first, entry point last - the order is the contract&lt;/span&gt;
&lt;span class="nv"&gt;$assemblyOrder&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; @&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="s1"&gt;'MyApp.Data.dll'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="s1"&gt;'MyApp.Core.dll'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="s1"&gt;'MyApp.Licensing.dll'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="s1"&gt;'MyApp.UI.dll'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="s1"&gt;'MyApp.exe'&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;foreach&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$asm&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="nv"&gt;$assemblyOrder&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nv"&gt;$project&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="no"&gt;IO&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Path&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nc"&gt;GetFileNameWithoutExtension&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$asm&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="o"&gt;&amp;amp;&lt;/span&gt; &lt;span class="nv"&gt;$opaquer&lt;/span&gt; &lt;span class="sb"&gt;`
    -x="$project\OpaquerSettings.xml" `&lt;/span&gt;
    &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="no"&gt;SOURCE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"$out\$asm"&lt;/span&gt; &lt;span class="sb"&gt;`
    -OUTPUT="$out\$asm" `&lt;/span&gt;
    &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="no"&gt;KEY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"KeyFile.snk"&lt;/span&gt; &lt;span class="sb"&gt;`
    -WRITELOG="$out\Opaquer.$project.log"

  if ($LASTEXITCODE -ne 0) {
    throw "Obfuscation failed for $project - check $out\Opaquer.$project.log"
  }
}
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;If you saved named profiles instead of XML files, the loop body collapses to &lt;code&gt;&amp;amp; $opaquer $project&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;That &lt;code&gt;$LASTEXITCODE&lt;/code&gt; check matters more than it looks: in CI, the &lt;code&gt;throw&lt;/code&gt; is the difference between a red build and a silently unprotected release.&lt;/p&gt;
&lt;h2&gt;
  
  
  TL;DR - the whole post in seven lines
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Obfuscation is a rename refactoring with no compiler watching.&lt;/li&gt;
&lt;li&gt;Names live in three places: metadata (repairable), strings (invisible), external consumers (untouchable).&lt;/li&gt;
&lt;li&gt;Every shipped first-party assembly participates; third-party stays out.&lt;/li&gt;
&lt;li&gt;A name crossing your boundary - plugin, serializer, reflection, friend assembly - is a contract: freeze it.&lt;/li&gt;
&lt;li&gt;Grep for &lt;code&gt;GetMethod&lt;/code&gt;/&lt;code&gt;GetType&lt;/code&gt;/&lt;code&gt;CreateInstance&lt;/code&gt;, then exclude or eliminate.&lt;/li&gt;
&lt;li&gt;Parallel builds = 1; leaves first, exe last; re-sign everything.&lt;/li&gt;
&lt;li&gt;Test the full protected set on a clean machine, and keep the logs.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you want to poke at the tool from the examples, the repo's here:&lt;/p&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/Rustemsoft" rel="noopener noreferrer"&gt;
        Rustemsoft
      &lt;/a&gt; / &lt;a href="https://github.com/Rustemsoft/Opaquer" rel="noopener noreferrer"&gt;
        Opaquer
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      A Robust and Professionally Engineered .NET Obfuscator
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;&lt;p&gt;Opaquer is an advanced .NET code protection and obfuscation system designed to safeguard commercial applications from reverse engineering, tampering, and intellectual property theft.&lt;/p&gt;
&lt;p&gt;Opaquer offers three price models: a free &lt;strong&gt;Basic&lt;/strong&gt; version with core obfuscation features, a &lt;strong&gt;Pro&lt;/strong&gt; version adding CLI automation, and an &lt;strong&gt;Enterprise&lt;/strong&gt; edition with team licensing, offline build support, and high-intensity control flow obfuscation.&lt;/p&gt;
&lt;a rel="noopener noreferrer" href="https://private-user-images.githubusercontent.com/12400697/610595421-c79dc57d-7aec-4eb8-a019-c6677761afc3.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTUzNzMyMjEsIm5iZiI6MTc5NTM3MjkyMSwicGF0aCI6Ii8xMjQwMDY5Ny82MTA1OTU0MjEtYzc5ZGM1N2QtN2FlYy00ZWI4LWEwMTktYzY2Nzc3NjFhZmMzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjExMjIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYxMTIyVDE4NDIwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTdjYjMyMjdlYmI4NGI5NTUyMWYwOTYyYmU5MzQ4Y2UzNmVhZjBhYjVjMzU4Y2E3ZWY1ZDY1MWEwNThkN2VjY2QmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.21edAYat5QIoCMiusPdYXrNz0P7Q1gUC2h-w3AcqcPY"&gt;&lt;img width="292" height="292" alt="image" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fprivate-user-images.githubusercontent.com%2F12400697%2F610595421-c79dc57d-7aec-4eb8-a019-c6677761afc3.png%3Fjwt%3DeyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTUzNzMyMjEsIm5iZiI6MTc5NTM3MjkyMSwicGF0aCI6Ii8xMjQwMDY5Ny82MTA1OTU0MjEtYzc5ZGM1N2QtN2FlYy00ZWI4LWEwMTktYzY2Nzc3NjFhZmMzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjExMjIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYxMTIyVDE4NDIwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTdjYjMyMjdlYmI4NGI5NTUyMWYwOTYyYmU5MzQ4Y2UzNmVhZjBhYjVjMzU4Y2E3ZWY1ZDY1MWEwNThkN2VjY2QmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.21edAYat5QIoCMiusPdYXrNz0P7Q1gUC2h-w3AcqcPY" class="js-gh-image-fallback"&gt;&lt;/a&gt;
&lt;p&gt;Opaquer .NET Obfuscator offers a comprehensive professional solution for protecting .NET applications, supporting both .NET Core and .NET Framework. By leveraging Opaquer, developers can effectively shield their Microsoft .NET applications from reverse engineering, unauthorized code modifications, and intellectual property theft. The obfuscation process significantly enhances application security by rendering the code unreadable and complex, as the program logic becomes highly confusing after obfuscation. The tool supports a wide range of obfuscation methods, including DLL obfuscation, executable obfuscation, advanced Control Flow obfuscation, String Encryption, Reference obfuscation, and Metadata obfuscation. It ensures that all namespaces…&lt;/p&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/Rustemsoft/Opaquer" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;



&lt;p&gt;Documentation, including the exclusion and CLI details: &lt;a href="https://opaquer.net/opaquerdoc.html" rel="noopener noreferrer"&gt;opaquer.net/opaquerdoc.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;One question I'm genuinely curious about: where do &lt;em&gt;you&lt;/em&gt; draw the plumbing-vs-contract line? My current heuristic is "would code I don't compile ever hold this name?" - but I suspect some of you have a sharper test. Comments are open.&lt;/p&gt;




</description>
      <category>dotnet</category>
      <category>csharp</category>
      <category>security</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Your .NET License Check Is One `return false` Away From Being Free</title>
      <dc:creator>Skater</dc:creator>
      <pubDate>Mon, 16 Nov 2026 00:25:47 +0000</pubDate>
      <link>https://dev.to/rustemsoft/the-build-passed-the-json-didnt-testing-net-serialization-after-obfuscation-19j0</link>
      <guid>https://dev.to/rustemsoft/the-build-passed-the-json-didnt-testing-net-serialization-after-obfuscation-19j0</guid>
      <description>&lt;p&gt;&lt;em&gt;A hands-on audit you can run against your own binary in 15 minutes - plus the fixes that actually move the needle.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;You know that scene in every heist movie where the safe has a gorgeous steel door... mounted in a drywall partition? That's most .NET license validation. Strong-looking logic, carefully written guard clauses - sitting in a self-describing binary that hands the attacker a map, a flashlight, and your initials on the keypad.&lt;/p&gt;

&lt;p&gt;Let's fix that. This post is a &lt;strong&gt;practical audit&lt;/strong&gt;: run it against your own shipped assembly before someone else does. No theory-of-obfuscation lecture - just the checks, the failure modes, and the fixes. I'm using &lt;a href="https://www.nuget.org/packages/Opaquer" rel="noopener noreferrer"&gt;Opaquer&lt;/a&gt; (Rustemsoft's free-tier-friendly obfuscator) for the fix side, but the audit part works on any .NET app, protected or not.&lt;/p&gt;

&lt;h2&gt;
  
  
  🕵️ The audit: four checks, one decompiler
&lt;/h2&gt;

&lt;p&gt;Install &lt;a href="https://github.com/icsharpcode/ILSpy" rel="noopener noreferrer"&gt;ILSpy&lt;/a&gt; (free) - or &lt;code&gt;dotnet tool install ilspycmd&lt;/code&gt; if you want to script it - and open your &lt;strong&gt;release&lt;/strong&gt; binary. Now try to crack yourself:&lt;/p&gt;

&lt;h3&gt;
  
  
  Check 1 - The string search
&lt;/h3&gt;

&lt;p&gt;Hit &lt;code&gt;Ctrl+Shift+F&lt;/code&gt; (search across the whole assembly) and search for:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;license
serial
activation
expired
trial
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Plus any literal fragment of your license format, your API domain, or your product ID.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fail&lt;/strong&gt; = any hit points at or near your validation code. Strings like &lt;code&gt;"Invalid license key"&lt;/code&gt;, &lt;code&gt;"https://api.yourco.com/verify"&lt;/code&gt;, or &lt;code&gt;"ACME-PRO-"&lt;/code&gt; are the #1 landmark crackers use. They don't reverse your app; they &lt;em&gt;search&lt;/em&gt; it.&lt;/p&gt;

&lt;h3&gt;
  
  
  Check 2 - The name map
&lt;/h3&gt;

&lt;p&gt;Scroll the type list. Answer honestly: could a stranger find your validator without reading a single line of code? Names like &lt;code&gt;LicenseValidator.IsValid&lt;/code&gt;, &lt;code&gt;CheckSerial&lt;/code&gt;, &lt;code&gt;VerifyOnline&lt;/code&gt; are a table of contents for the attack. An attacker needs to understand 0% of your app - just locate one &lt;code&gt;bool&lt;/code&gt;-returning method and make it lie.&lt;/p&gt;

&lt;h3&gt;
  
  
  Check 3 - The branch
&lt;/h3&gt;

&lt;p&gt;Open your validation method. Count the &lt;code&gt;return false&lt;/code&gt; statements reachable before anything user-facing happens. Each one is a candidate for a two-instruction patch: flip the branch (or delete the check), re-save the decompiled project, recompile, done. If your method reads like pseudocode - length check, prefix check, then call server - it will not survive an evening.&lt;/p&gt;

&lt;h3&gt;
  
  
  Check 4 - The server call reality check
&lt;/h3&gt;

&lt;p&gt;This is the uncomfortable one. You have online verification, right? Ask yourself: &lt;strong&gt;is the code path that &lt;em&gt;reaches&lt;/em&gt; the server located on the attacker's machine?&lt;/strong&gt; Then it's optional. A patched client simply never makes the call. Server-side validation is only a defense when something the user values stays on the server.&lt;/p&gt;

&lt;p&gt;Score yourself: 4/4 fails is completely normal for an unprotected build. That's the baseline - now the fixes, in the exact order an attacker meets them.&lt;/p&gt;

&lt;h2&gt;
  
  
  🔧 The fixes, in attack order
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Kill the name map - identifier renaming
&lt;/h3&gt;

&lt;p&gt;In Opaquer, enable renaming and target the licensing namespace: the class, the public validation method, private helpers, and - people forget this - the &lt;strong&gt;constants&lt;/strong&gt; (&lt;code&gt;SecretPrefix&lt;/code&gt;, &lt;code&gt;VerifyUrl&lt;/code&gt; keep pointing at the logic even when they're encrypted, so rename them too).&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;⚠️ The classic foot-gun: anything your app reaches via &lt;code&gt;typeof(...)&lt;/code&gt;, &lt;code&gt;GetType().Name&lt;/code&gt;, or JSON/XML serialization breaks when renamed. Use Opaquer's exclusion list for those types. Renaming preserves behavior; &lt;em&gt;name-dependent&lt;/em&gt; reflection is the exception.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  2. Kill the search hits - string encryption, native DLL flavor
&lt;/h3&gt;

&lt;p&gt;This is the single highest-leverage change. In-assembly string encryption raises the bar; Opaquer's &lt;strong&gt;native DLL storage&lt;/strong&gt; removes the strings from the managed assembly entirely - they're moved into a machine-code DLL your app calls via P/Invoke. Re-run Check 1 after this and you should get &lt;em&gt;zero&lt;/em&gt; results.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;📦 Packaging note: the native DLL (&lt;code&gt;appExtension.dll&lt;/code&gt;) must ship next to your managed assembly. Forgetting this is the most common "it crashes at startup" report - update your installer and smoke-test the deployed layout, not just the build output.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  3. Kill the branch - control flow obfuscation
&lt;/h3&gt;

&lt;p&gt;Opaquer has two intensities: &lt;strong&gt;Lightweight&lt;/strong&gt; (free) for general code, and &lt;strong&gt;High-Intensity&lt;/strong&gt; for the sensitive stuff. Apply the aggressive one &lt;em&gt;only&lt;/em&gt; to your validation methods. It flattens your readable if/else chain into a state machine with opaque predicates - there's no single &lt;code&gt;return false&lt;/code&gt; left to flip, and decompilers produce something you'd need to actually study, not skim.&lt;/p&gt;

&lt;p&gt;Keep it selective: obfuscating your entire app with maximum settings costs performance and gives you unreadable production stack traces for code nobody attacks anyway. Protect the choke point, not the wallpaper.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Make the code &lt;em&gt;not exist&lt;/em&gt; - virtualization (Enterprise)
&lt;/h3&gt;

&lt;p&gt;The nuclear option: Opaquer can extract the validation logic out of the assembly, store it encrypted in the Skater Cloud Vault, and run it in a built-in VM interpreter at runtime. ILSpy shows a stub, because there's nothing else there. Trade-offs are real - internet connectivity at runtime, a &lt;code&gt;Skater.Cloud.Vault&lt;/code&gt; NuGet reference, Enterprise tier - but for licensing code that phones home anyway, it fits naturally.&lt;/p&gt;

&lt;h2&gt;
  
  
  ✅ Re-run the audit (and keep re-running it)
&lt;/h2&gt;

&lt;p&gt;The audit isn't a one-time thing; make it a release gate. The whole thing scripts nicely with &lt;code&gt;ilspycmd&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# after obfuscation, this should print nothing relevant&lt;/span&gt;
ilspycmd -l YourApp.dll &lt;span class="o"&gt;|&lt;/span&gt; grep -iE &lt;span class="s2"&gt;"license|valid|serial|activ"&lt;/span&gt;

&lt;span class="c"&gt;# decompile and grep for your landmarks&lt;/span&gt;
ilspycmd YourApp.dll &lt;span class="o"&gt;|&lt;/span&gt; grep -iE &lt;span class="s2"&gt;"api\.yourco|ACME-PRO|expired"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Add a functional pass too - obfuscation must never change behavior:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;[ ] Valid license still activates (obfuscated binary)&lt;/li&gt;
&lt;li&gt;[ ] Expired / malformed / tampered keys still rejected&lt;/li&gt;
&lt;li&gt;[ ] Fresh install on a clean machine - native string DLL present&lt;/li&gt;
&lt;li&gt;[ ] String search in ILSpy: zero landmarks&lt;/li&gt;
&lt;li&gt;[ ] No license-recognizable names in the type list&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  🧱 The honest fine print
&lt;/h2&gt;

&lt;p&gt;All of the above protects the &lt;em&gt;client's opinion&lt;/em&gt;, and a cracked client still runs. So:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Keep real value behind the server.&lt;/strong&gt; If the app works fully offline after a bypass, obfuscation is guarding the honor system. Gate entitlement checks (not just activation) server-side.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Obfuscation ≠ unbreakable.&lt;/strong&gt; It changes the economics: from a 30-minute search-and-patch to a multi-day native-analysis project with a fragile, per-build result. For the opportunists who actually crack small commercial software, that's the entire threat model.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Version your obfuscator profile&lt;/strong&gt; alongside source, and keep the tool current - deobfuscators evolve, and older protection patterns are the ones they target.&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;Your license check is the smallest, most valuable, most attacked method in your binary. It deserves better than being the easiest thing to find in it.&lt;/p&gt;

&lt;p&gt;Run the audit tonight. If Check 1 gives you a hit, you already know what a cracker would find in the morning.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Opaquer is built by Rustemsoft LLC - &lt;a href="https://opaquer.net" rel="noopener noreferrer"&gt;product site&lt;/a&gt; · &lt;a href="https://opaquer.net/opaquerdoc.html" rel="noopener noreferrer"&gt;docs&lt;/a&gt; · &lt;a href="https://github.com/Rustemsoft/Opaquer" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt; · &lt;a href="https://www.nuget.org/packages/Opaquer" rel="noopener noreferrer"&gt;NuGet&lt;/a&gt;. If you run the audit, tell me your score in the comments - anonymously if you must 😄&lt;/em&gt;&lt;/p&gt;

</description>
      <category>dotnet</category>
      <category>obfuscate</category>
      <category>csharp</category>
      <category>code</category>
    </item>
    <item>
      <title>The Build Passed. The JSON Didn’t: Testing .NET Serialization After Obfuscation</title>
      <dc:creator>Skater</dc:creator>
      <pubDate>Mon, 09 Nov 2026 01:41:09 +0000</pubDate>
      <link>https://dev.to/rustemsoft/the-build-passed-the-json-didnt-testing-net-serialization-after-obfuscation-1oek</link>
      <guid>https://dev.to/rustemsoft/the-build-passed-the-json-didnt-testing-net-serialization-after-obfuscation-1oek</guid>
      <description>&lt;p&gt;Your unit tests are green. The release build completes. The protected application launches.&lt;br&gt;
Then an integration sends a perfectly valid payload, and a property comes back empty.&lt;br&gt;
This is a frustrating class of bug because the source code can look completely correct. The failure appears only after the assembly has passed through the protection step.&lt;br&gt;
Let’s approach it as a debugging exercise: reproduce the mismatch, separate wire names from CLR names, and add a test that checks the artifact you actually ship.&lt;br&gt;
The same approach applies to JSON and XML models protected with Opaquer .NET Obfuscator. Its serialization guide identifies member renaming, contract metadata, and polymorphic type resolution as compatibility concerns.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Start with a tiny reproduction
Suppose your application accepts this payload:
{
"CustomerName": "Acme Corp",
"CustomerId": 42
}
Your DTO looks straightforward:
public sealed class CustomerDto
{
public string CustomerName { get; set; } = "";
public int CustomerId { get; set; }
}
And your deserialization code is equally ordinary:
using System.Text.Json;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;var customer = JsonSerializer.Deserialize(payload);&lt;br&gt;
The problem appears when the serializer’s naming contract depends on property names that the obfuscator changes.&lt;br&gt;
Conceptually, the protected model might now resemble:&lt;br&gt;
public sealed class a&lt;br&gt;
{&lt;br&gt;
    public string b { get; set; } = "";&lt;br&gt;
    public int c { get; set; }&lt;br&gt;
}&lt;br&gt;
This is an illustration, not a prediction of Opaquer’s exact output.&lt;br&gt;
The sender still transmits CustomerName. A name-based contract built from the renamed metadata may expect something else. Depending on serializer configuration, the unmatched value can leave the property at its default rather than produce an obvious exception.&lt;br&gt;
That explains why “the request did not throw” is a weak success criterion.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Write the failing assertion before changing settings
The first useful test should use a fixed external payload and inspect the resulting values.
For example, with xUnit:
using System.Text.Json;
using Xunit;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;public sealed class CustomerContractTests&lt;br&gt;
{&lt;br&gt;
    [Fact]&lt;br&gt;
    public void Reads_the_existing_customer_payload()&lt;br&gt;
    {&lt;br&gt;
        const string payload =&lt;br&gt;
            "{\"CustomerName\":\"Acme Corp\",\"CustomerId\":42}";&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    var customer =
        JsonSerializer.Deserialize&amp;lt;CustomerDto&amp;gt;(payload);

    Assert.NotNull(customer);
    Assert.Equal("Acme Corp", customer!.CustomerName);
    Assert.Equal(42, customer.CustomerId);
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;}&lt;br&gt;
Run the equivalent verification against the protected release output, not just the development assembly.&lt;br&gt;
The source guide specifically recommends exercising protected artifacts with external payload fixtures, round trips, and polymorphic cases.&lt;br&gt;
The implementation of that test stage depends on your build layout. A small integration harness can invoke the protected application through its normal input/output boundary. If the test harness references DTO members directly, those references also need to remain compatible with the protected assembly.&lt;br&gt;
The important requirement is that the code under test is the code you distribute.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Make the wire names explicit
Now remove the implicit dependency between the JSON field and the CLR property name:
using System.Text.Json.Serialization;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;public sealed class CustomerDto&lt;br&gt;
{&lt;br&gt;
    [JsonPropertyName("CustomerName")]&lt;br&gt;
    public string CustomerName { get; set; } = "";&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[JsonPropertyName("CustomerId")]
public int CustomerId { get; set; }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;}&lt;br&gt;
Notice that the attribute values preserve the existing payload names.&lt;br&gt;
This is not the moment to switch CustomerName to customer_name unless you intend to change the external contract.&lt;br&gt;
For Newtonsoft.Json, the equivalent declaration uses JsonProperty:&lt;br&gt;
using Newtonsoft.Json;&lt;/p&gt;

&lt;p&gt;public sealed class CustomerDto&lt;br&gt;
{&lt;br&gt;
    [JsonProperty("CustomerName")]&lt;br&gt;
    public string CustomerName { get; set; } = "";&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[JsonProperty("CustomerId")]
public int CustomerId { get; set; }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;}&lt;br&gt;
These attributes provide explicit serialized names. The Opaquer guide presents them as a way to permit property-symbol renaming while retaining the metadata the serializer needs. That relies on the relevant attributes and their values surviving protection correctly.&lt;br&gt;
The principle is decoupling: the name used by your implementation does not have to determine the name used by the payload.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Handle XML as a separate contract
Do not assume that fixing JSON automatically fixes XML.
An XML model can make its external names explicit too:
using System.Xml.Serialization;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;[XmlRoot("Customer")]&lt;br&gt;
public sealed class CustomerXmlDto&lt;br&gt;
{&lt;br&gt;
    [XmlElement("CustomerName")]&lt;br&gt;
    public string CustomerName { get; set; } = "";&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[XmlAttribute("CustomerId")]
public int CustomerId { get; set; }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;}&lt;br&gt;
Its expected shape is:&lt;br&gt;
&lt;br&gt;
  Acme Corp&lt;br&gt;
&lt;br&gt;
The attached guide includes XML contract attributes alongside JSON attributes in its selective-protection strategy.&lt;br&gt;
Keep an XML fixture in the test suite and verify the names that matter: root elements, child elements, attributes, and any type information used by your model. A successful JSON test provides no evidence that these XML details remain intact.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Don’t let a round trip give you false confidence
Consider this test:
Object → protected serializer → payload
   → protected deserializer → object
It checks whether the application can read what it writes.
But imagine both operations now agree on renamed fields. The round trip can succeed even though an external client still sends the original field names.
Use two additional checks:
• Input compatibility: deserialize a fixed payload supplied independently of the protected serializer.
• Output compatibility: inspect the generated payload and verify its agreed field names and values.
For JSON, an output assertion could look like this:
var json = JsonSerializer.Serialize(new CustomerDto
{
CustomerName = "Acme Corp",
CustomerId = 42
});&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;using var document = JsonDocument.Parse(json);&lt;br&gt;
var root = document.RootElement;&lt;/p&gt;

&lt;p&gt;Assert.Equal(&lt;br&gt;
    "Acme Corp",&lt;br&gt;
    root.GetProperty("CustomerName").GetString());&lt;/p&gt;

&lt;p&gt;Assert.Equal(&lt;br&gt;
    42,&lt;br&gt;
    root.GetProperty("CustomerId").GetInt32());&lt;br&gt;
Checking the parsed structure avoids making the test depend unnecessarily on whitespace or property ordering.&lt;br&gt;
This expands the source guide’s combination of round-trip tests and external-payload tests into a two-way compatibility check.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Give polymorphic payloads their own test cases
If a base model can deserialize into several concrete types, property names are only part of the contract.
You must also verify how the payload selects the concrete type.
The Opaquer guide discusses explicit System.Text.Json discriminators and Newtonsoft.Json type metadata as relevant cases. Whether renaming causes a failure depends on the actual mapping: a stable discriminator is different from a serialized CLR type name.
For every supported subtype, test:&lt;/li&gt;
&lt;li&gt; A fixture containing the expected discriminator or type metadata.&lt;/li&gt;
&lt;li&gt; The concrete type created during deserialization.&lt;/li&gt;
&lt;li&gt; The values specific to that subtype.&lt;/li&gt;
&lt;li&gt; The corresponding outbound representation.
If your configuration depends on CLR names, either preserve the necessary names or introduce an explicit mapping appropriate to that serializer. Do not assume that adding property attributes also solves type resolution.&lt;/li&gt;
&lt;li&gt;Apply the smallest protection exception that works
Some projects cannot annotate every model immediately. Legacy DTOs, generated code, and shared libraries may require renaming exclusions instead.
Opaquer’s guide describes selective exemptions for contract types and properties, while retaining protection for internal processing code. It also recommends storing protection rules in a repeatable project configuration.
A practical migration strategy is:
Model category  Starting policy
DTOs with implicit serialized names Preserve the names required by the contract
DTOs with explicit serialized names Allow renaming only after protected-artifact tests pass
Models using polymorphic type metadata  Review and test type resolution separately
Internal implementation code    Apply protection, subject to its own runtime dependencies
Avoid disabling renaming across the entire application merely because one DTO fails. Narrow the exception, document why it exists, and keep a regression test beside it.
Turn the bug into a release gate
The finished workflow should look like this:
Compile
↓
Protect with Opaquer
↓
Exercise the protected artifact
↓
Verify inbound and outbound JSON/XML contracts
↓
Publish
The source guide recommends testing the obfuscated application and integrating saved protection rules into CI/CD.
That changes the acceptance criterion from “the protected executable runs” to “the protected executable still speaks the correct protocol.”
For serialization-heavy applications, that is the difference between a successful build and a shippable release.&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>dotnet</category>
      <category>programming</category>
      <category>csharp</category>
      <category>obfuscator</category>
    </item>
    <item>
      <title>Your .NET Secrets Are In Your Strings (Here’s How to Stop Them)</title>
      <dc:creator>Skater</dc:creator>
      <pubDate>Mon, 02 Nov 2026 02:55:54 +0000</pubDate>
      <link>https://dev.to/rustemsoft/your-net-secrets-are-in-your-strings-heres-how-to-stop-them-3027</link>
      <guid>https://dev.to/rustemsoft/your-net-secrets-are-in-your-strings-heres-how-to-stop-them-3027</guid>
      <description>&lt;p&gt;If you’ve ever shipped a .NET .dll or .exe and worried about API keys, connection strings, or license endpoints being discoverable-good instinct. But here’s the part many teams miss:&lt;br&gt;
In .NET, string literals are trivially searchable.&lt;br&gt;
Open the assembly in ILSpy/dnSpy/dotPeek, hit search, and you can instantly surface things like:&lt;br&gt;
• &lt;a href="https://api.yourcompany.com/" rel="noopener noreferrer"&gt;https://api.yourcompany.com/&lt;/a&gt;...&lt;br&gt;
• Server=prod-sql01;User Id=...;Password=...&lt;br&gt;
• license validation URLs&lt;br&gt;
• error messages that reveal internal logic&lt;br&gt;
Even worse: once an attacker finds one valuable string, it becomes a breadcrumb for finding the surrounding code.&lt;br&gt;
So what do you do? You remove the “easy first foothold” by making sensitive strings not appear as plaintext in the managed assembly.&lt;br&gt;
The two-tier protection model: encrypt in managed code or move secrets native&lt;br&gt;
To hide sensitive string literals in a .NET assembly, you generally have two escalating approaches:&lt;br&gt;
1) In-assembly encryption (easy deployment, good general protection)&lt;br&gt;
Your strings remain inside the managed binary-but are replaced with encrypted ciphertext. At runtime, the app decrypts them when needed.&lt;br&gt;
What you gain&lt;br&gt;
• Strings stop being readable in decompilers.&lt;br&gt;
• You don’t introduce extra binaries.&lt;br&gt;
What you don’t fully get&lt;br&gt;
• The decryption routine still exists in managed IL.&lt;br&gt;
• The secrets will still appear in memory during runtime.&lt;br&gt;
Use this when the risk is “people poking at strings,” and you want strong mitigation with minimal operational friction.&lt;br&gt;
2) Native DLL storage (strongest against static decompilation)&lt;br&gt;
Instead of keeping secrets in the managed assembly at all, you extract selected strings from the .NET binary and place them into a compiled native (C++) DLL.&lt;br&gt;
Then the .NET app retrieves the values at runtime through P/Invoke.&lt;br&gt;
What you gain&lt;br&gt;
• The sensitive strings are completely absent from the managed assembly.&lt;br&gt;
• Standard .NET decompilers won’t show them because they’re not in IL.&lt;br&gt;
Trade-off&lt;br&gt;
• You must ship the native DLL alongside your app.&lt;br&gt;
• If the native DLL is missing, the app should fail fast (e.g., DllNotFoundException)-there’s no “fallback” because the secrets aren’t in the managed assembly anymore.&lt;br&gt;
Practical selection: which strings deserve which protection?&lt;br&gt;
Not all strings carry the same impact. A sensible approach is:&lt;br&gt;
• Native DLL storage for:&lt;br&gt;
o   API keys and tokens&lt;br&gt;
o   database connection strings (credentials included)&lt;br&gt;
o   license server endpoints&lt;br&gt;
o   cryptographic salts / high-value secrets&lt;br&gt;
• In-assembly encryption for:&lt;br&gt;
o   error messages&lt;br&gt;
o   UI text&lt;br&gt;
o   lower-sensitivity strings&lt;br&gt;
o   anything that would reveal structure but not directly compromise credentials&lt;br&gt;
How to validate you got it right&lt;br&gt;
After obfuscation:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Confirm the strings aren’t recoverable via decompiler search
o   With in-assembly encryption: you should see unreadable encoded/ciphertext representations.
o   With native DLL storage: the exact plaintext should show zero results in the managed assembly.&lt;/li&gt;
&lt;li&gt; Run functional tests
o   Exercise code paths that depend on those secrets.
o   Verify API calls, DB connections, and license flows still work normally.&lt;/li&gt;
&lt;li&gt; If you used native DLL storage, verify deployment
o   Ensure the native DLL is present next to the executable.
o   Confirm your installer/build pipeline includes it.
Common pitfalls (and why they happen)
• App fails with DllNotFoundException 
o   The native DLL wasn’t shipped correctly.
• Strings are still visible 
o   You didn’t select them for protection, or a “minimum length” threshold excluded them.
• Slowdowns 
o   Encrypting too many strings, especially those in performance-hot paths.
o   Encrypt selectively-protect secrets, not everything.
Bottom line
If your goal is to prevent “open ILSpy and search” from exposing your secrets, string encryption is the baseline, and native DLL storage is the strongest option.
If the string would cause serious harm when leaked, treat it like a secret-not like harmless text.
________________________________________&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>dotnet</category>
      <category>programming</category>
      <category>csharp</category>
      <category>obfuscator</category>
    </item>
    <item>
      <title>Three Release Contracts for Obfuscated .NET Assemblies</title>
      <dc:creator>Skater</dc:creator>
      <pubDate>Sun, 25 Oct 2026 20:12:39 +0000</pubDate>
      <link>https://dev.to/rustemsoft/three-release-contracts-for-obfuscated-net-assemblies-282p</link>
      <guid>https://dev.to/rustemsoft/three-release-contracts-for-obfuscated-net-assemblies-282p</guid>
      <description>&lt;p&gt;Obfuscation becomes a release-engineering problem the moment you need to rebuild, verify, or debug what you shipped. This Dev.to article approaches repeatable Opaquer releases through three practical contracts: identity, integrity, and diagnostics.&lt;br&gt;
The goal is not merely to run an obfuscator consistently. It is to ensure that every protected assembly can be traced to known inputs, loaded successfully after transformation, and explained when a production stack trace arrives.&lt;/p&gt;




&lt;p&gt;The trap: “The build passed”&lt;br&gt;
A CI job can be green while the release is still operationally weak.&lt;br&gt;
Consider a common sequence:&lt;br&gt;
Build succeeds&lt;br&gt;
→ Opaquer runs&lt;br&gt;
→ ZIP package is published&lt;br&gt;
→ Customer reports a crash two months later&lt;br&gt;
→ Stack trace contains renamed methods&lt;br&gt;
→ Nobody can find the matching map file&lt;br&gt;
At that point, rebuilding may not help. Even when the source is unchanged, differences in the SDK, restored dependencies, obfuscation settings, seed behavior, or signing process can create a different protected assembly. The new map file describes the new assembly—not necessarily the customer’s failing one.&lt;br&gt;
The solution is to make three promises about every protected release.&lt;/p&gt;




&lt;p&gt;Contract 1: Release identity&lt;br&gt;
Question: Can we prove exactly what created this protected DLL?&lt;br&gt;
A protected file is identifiable only when its inputs are controlled and recorded. That starts with deterministic compilation, but it extends to the full transformation chain.&lt;br&gt;
For a .NET project, enable deterministic compilation:&lt;br&gt;
&lt;br&gt;
  &lt;br&gt;
    net8.0&lt;br&gt;
    true&lt;br&gt;
    true&lt;br&gt;
  &lt;br&gt;
&lt;br&gt;
That makes the compiler less dependent on machine-specific build details. It does not, by itself, make protection deterministic.&lt;br&gt;
For the full release identity, keep these inputs explicit:&lt;br&gt;
Source commit or release tag&lt;br&gt;
.NET SDK version&lt;br&gt;
Locked dependency graph&lt;br&gt;
Build configuration&lt;br&gt;
Opaquer CLI version&lt;br&gt;
Opaquer .opq project file&lt;br&gt;
Protection seed, where applicable&lt;br&gt;
Signing process and key reference&lt;br&gt;
Put Opaquer settings in Git&lt;br&gt;
An Opaquer .opq file is part of the release definition. It can govern renaming rules, exclusions, string protection, control-flow settings, dependency resolution, and other choices that affect the final artifact.&lt;br&gt;
Do not let those choices exist only in a developer’s GUI session.&lt;br&gt;
A useful repository layout is:&lt;br&gt;
/&lt;br&gt;
├── src/&lt;br&gt;
├── build/&lt;br&gt;
│   ├── opaquer/&lt;br&gt;
│   │   └── production.opq&lt;br&gt;
│   └── scripts/&lt;br&gt;
│       └── protect-release.ps1&lt;br&gt;
├── tests/&lt;br&gt;
└── MyApp.sln&lt;br&gt;
The file name is not important. What matters is that it is version-controlled, reviewed, and attached to the release revision.&lt;br&gt;
If your configuration supports a fixed pseudo-random seed, use a defined seed for the production release path. Otherwise, renamed identifiers can change each time the same application is protected, making exact reproduction and map correlation more difficult.[ppl-ai-file-upload.s3.amazonaws]&lt;/p&gt;




&lt;p&gt;Contract 2: Release integrity&lt;br&gt;
Question: Will the protected file load, authenticate, and behave like the tested release artifact?&lt;br&gt;
Obfuscation changes assembly contents and metadata. Strong-name signing is therefore not a step that can safely be treated as “already done.”&lt;br&gt;
This sequence is wrong:&lt;br&gt;
Compile → Strong-name sign → Obfuscate → Ship&lt;br&gt;
After obfuscation, the earlier signature no longer validates the changed content.&lt;br&gt;
Use this sequence instead:&lt;br&gt;
Compile → Obfuscate → Re-sign → Verify → Test → Ship&lt;br&gt;
In an automated pipeline, provide the signing key as a secure build secret. Do not add .snk or .pfx files to the repository.&lt;br&gt;
Here is a compact Windows-based example:&lt;br&gt;
$inputAssembly = "bin\Release\net8.0\MyApp.dll"&lt;br&gt;
$outputFolder = "artifacts\protected"&lt;br&gt;
$outputAssembly = "$outputFolder\MyApp.dll"&lt;br&gt;
$mapFile = "$outputFolder\MyApp.map.xml"&lt;br&gt;
$logFile = "$outputFolder\opaquer.log"&lt;/p&gt;

&lt;p&gt;New-Item -ItemType Directory -Force -Path $outputFolder | Out-Null&lt;/p&gt;

&lt;p&gt;Opaquer.Console.exe &lt;code&gt;&lt;br&gt;
  /i:"$inputAssembly"&lt;/code&gt;&lt;br&gt;
  /o:"$outputAssembly" &lt;code&gt;&lt;br&gt;
  /config:"build\opaquer\production.opq"&lt;/code&gt;&lt;br&gt;
  /snk:"$env:SIGNING_KEY_PATH" &lt;code&gt;&lt;br&gt;
  /map:"$mapFile"&lt;/code&gt;&lt;br&gt;
  /log:"$logFile"&lt;/p&gt;

&lt;p&gt;sn -v $outputAssembly&lt;/p&gt;

&lt;p&gt;Get-FileHash -Path $outputAssembly -Algorithm SHA256&lt;br&gt;
The example deliberately produces a log, map, and checksum near the protected output. A robust pipeline should publish all of those items as artifacts, not only the DLL.&lt;br&gt;
Test the output customers receive&lt;br&gt;
A successful build of the original assembly does not prove that the protected assembly works.&lt;br&gt;
Protection can expose assumptions in code that depends on:&lt;br&gt;
• Reflection.&lt;br&gt;
• Serialization.&lt;br&gt;
• Dependency injection.&lt;br&gt;
• WPF binding.&lt;br&gt;
• Plugin discovery.&lt;br&gt;
• ORM metadata.&lt;br&gt;
• Attributes.&lt;br&gt;
• Native or COM interop.&lt;br&gt;
• Dynamically resolved type names.&lt;br&gt;
Run the relevant regression, integration, or smoke tests against the protected binaries. The final package, not the pre-protection build folder, is the product you need to validate.&lt;/p&gt;




&lt;p&gt;Contract 3: Release diagnostics&lt;br&gt;
Question: Can we interpret a production failure from this exact release?&lt;br&gt;
Obfuscation purposely transforms names. That is useful for protection, but it means production diagnostics need a reliable reverse reference.&lt;br&gt;
For Opaquer releases, this reference is the rename map:&lt;br&gt;
MyApp.map.xml&lt;br&gt;
A map file is not interchangeable across builds. It must match the exact protected output that generated the stack trace.&lt;br&gt;
Avoid this artifact workflow:&lt;br&gt;
shared-folder/&lt;br&gt;
  MyApp.map.xml&lt;br&gt;
That filename is easy to overwrite and offers no reliable association with a shipped release.&lt;br&gt;
Prefer a release-scoped structure:&lt;br&gt;
protected-releases/&lt;br&gt;
└── v4.7.2/&lt;br&gt;
    ├── MyApp.dll&lt;br&gt;
    ├── MyApp.map.xml&lt;br&gt;
    ├── opaquer.log&lt;br&gt;
    ├── checksums.sha256&lt;br&gt;
    └── release-manifest.json&lt;br&gt;
Or generate uniquely named artifacts:&lt;br&gt;
MyApp_v4.7.2_build-1842.dll&lt;br&gt;
MyApp_v4.7.2_build-1842.map.xml&lt;br&gt;
MyApp_v4.7.2_build-1842.log&lt;br&gt;
The map may reveal relationships between protected and original code symbols, so store it in restricted internal artifact storage. Keep it available for the supported lifetime of the product version, but do not distribute it with the public application package.&lt;/p&gt;




&lt;p&gt;A small CI pipeline pattern&lt;br&gt;
The CI platform does not matter as much as the artifact discipline. The pipeline should make each release input and output visible.&lt;br&gt;
steps:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;name: Build release assemblies&lt;br&gt;
run: dotnet build MyApp.sln -c Release -p:Deterministic=true&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;name: Protect and re-sign&lt;br&gt;
shell: pwsh&lt;br&gt;
run: |&lt;br&gt;
  Opaquer.Console.exe &lt;code&gt;&lt;br&gt;
    /i:"bin\Release\net8.0\MyApp.dll"&lt;/code&gt;&lt;br&gt;
    /o:"artifacts\protected\MyApp.dll" &lt;code&gt;&lt;br&gt;
    /config:"build\opaquer\production.opq"&lt;/code&gt;&lt;br&gt;
    /snk:"${{ secrets.SIGNING_KEY_PATH }}" &lt;code&gt;&lt;br&gt;
    /map:"artifacts\protected\MyApp.map.xml"&lt;/code&gt;&lt;br&gt;
    /log:"artifacts\protected\opaquer.log"&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;name: Verify strong name and record hash&lt;br&gt;
shell: pwsh&lt;br&gt;
run: |&lt;br&gt;
  sn -v artifacts\protected\MyApp.dll&lt;br&gt;
  Get-FileHash artifacts\protected\MyApp.dll -Algorithm SHA256 |&lt;br&gt;
    Out-File artifacts\protected\checksums.sha256&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;name: Test protected release&lt;br&gt;
run: dotnet test tests\ProtectedRelease.Tests\ProtectedRelease.Tests.csproj -c Release&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;name: Publish protected release packet&lt;br&gt;
uses: actions/upload-artifact@v4&lt;br&gt;
with:&lt;br&gt;
  name: protected-release-${{ github.sha }}&lt;br&gt;
  path: artifacts/protected/&lt;br&gt;
Treat the example as a pattern, not a copy-and-paste deployment recipe. Adjust paths, secret handling, test projects, and the exact Opaquer CLI arguments to fit the build environment.&lt;br&gt;
The non-negotiable outcome is that the CI system retains a package that connects the protected binary to its map, log, checksum, and release identity.&lt;/p&gt;



&lt;p&gt;A reproducibility check worth automating&lt;br&gt;
If identical inputs are intended to create identical protected results, test that expectation directly.&lt;br&gt;
Run two clean pipeline builds for the same source revision and compare the SHA-256 checksum of the protected file.&lt;br&gt;
$first = (Get-FileHash ".\run-a\MyApp.dll" -Algorithm SHA256).Hash&lt;br&gt;
$second = (Get-FileHash ".\run-b\MyApp.dll" -Algorithm SHA256).Hash&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;if ($first -ne $second) {&lt;br&gt;
    throw "Protected output differs between equivalent builds."&lt;br&gt;
}&lt;br&gt;
If the hashes differ, treat the result as a signal to investigate. Typical sources of variation include:&lt;br&gt;
• A different .NET SDK or CLI version.&lt;br&gt;
• A dependency resolving to a different version.&lt;br&gt;
• Generated files that include current dates or times.&lt;br&gt;
• An uncontrolled protection seed.&lt;br&gt;
• A modified .opq project file.&lt;br&gt;
• Different dependency search paths.&lt;br&gt;
• A packaging or signing step that inserts changing metadata.&lt;br&gt;
Do not solve this by simply saving the newest map over the prior one. The artifact history is what makes diagnosis possible.&lt;/p&gt;




&lt;p&gt;Failure guide&lt;br&gt;
Failure Likely explanation  Pipeline correction&lt;br&gt;
FileLoadException or signature validation error Obfuscation changed a file after it was signed  Re-sign the protected output and validate it before publishing&lt;br&gt;
A stack trace cannot be translated  The map is missing or belongs to a different build  Archive a unique .map.xml file with every release&lt;br&gt;
Two equivalent CI builds produce different hashes   One or more compiler, protection, dependency, or packaging inputs changed   Pin and record inputs; make deterministic options and seeds explicit&lt;br&gt;
The protection tool cannot find an assembly dependency  Dependency paths were available locally but not in CI   Provide explicit library paths and preserve dependency context&lt;br&gt;
The protected application fails tests   Protection affected reflection, serialization, or a framework contract  Add tested exclusions or configuration changes to the tracked .opq file&lt;/p&gt;




&lt;p&gt;The release gate checklist&lt;br&gt;
Before publishing a protected .NET release, verify that all of these statements are true:&lt;br&gt;
• The source revision is immutable and recorded.&lt;br&gt;
• The build runs in CI rather than on an unmanaged workstation.&lt;br&gt;
• Deterministic compilation is enabled where appropriate.&lt;br&gt;
• The Opaquer project configuration is version-controlled.&lt;br&gt;
• Protection settings, including any fixed seed, are explicit.&lt;br&gt;
• The protected assembly is signed after transformation.&lt;br&gt;
• The signing key comes from secure pipeline storage.&lt;br&gt;
• Strong-name verification passes on the protected assembly.&lt;br&gt;
• Automated tests execute against protected output.&lt;br&gt;
• The map file, protection log, and checksum are archived with the release.&lt;br&gt;
• The release artifacts are named or indexed by a stable release identifier.&lt;br&gt;
• The protected artifact has a recorded SHA-256 hash.&lt;/p&gt;




&lt;p&gt;Closing thought&lt;br&gt;
The strongest improvement is conceptual: stop treating obfuscation as a final click before publishing.&lt;br&gt;
Treat it as a controlled transformation in the delivery pipeline. Once the source, build, protection configuration, signing process, map, log, and checksum all travel together, an obfuscated release becomes something your team can reproduce and debug—not merely something it can ship.&lt;/p&gt;

</description>
      <category>debugging</category>
      <category>dotnet</category>
      <category>security</category>
      <category>softwareengineering</category>
    </item>
    <item>
      <title>How to Never Manually Obfuscate a .NET Assembly Again (Visual Studio CLI Guide)</title>
      <dc:creator>Skater</dc:creator>
      <pubDate>Mon, 19 Oct 2026 03:49:00 +0000</pubDate>
      <link>https://dev.to/rustemsoft/how-to-never-manually-obfuscate-a-net-assembly-again-visual-studio-cli-guide-4c9n</link>
      <guid>https://dev.to/rustemsoft/how-to-never-manually-obfuscate-a-net-assembly-again-visual-studio-cli-guide-4c9n</guid>
      <description>&lt;p&gt;If you are still opening a desktop GUI, hunting for your release DLL, and clicking an "Obfuscate" button every time you want to publish a C# or VB.NET application, you are leaving your CI/CD pipeline vulnerable to simple human error.&lt;/p&gt;

&lt;p&gt;In my day-to-day work as a Senior Software Developer building tools at Rustemsoft, I constantly see teams accidentally ship unprotected intermediate language (IL) simply because someone forgot a manual step. When we designed Opaquer .NET Obfuscator as the successor to Skater, one of the primary goals was to make protection invisible to the developer's daily workflow.&lt;/p&gt;

&lt;p&gt;The easiest way to achieve this zero-touch security is by wiring Opaquer's Command Line Interface (CLI) directly into your Visual Studio Post-Build events. Here is the hands-on guide to setting it up. &lt;/p&gt;

&lt;p&gt;The Concept: In-Place Overwrites&lt;br&gt;
The trick to seamless automation is overwriting the compiler's output immediately. By telling Opaquer to read the newly built assembly and write the obfuscated version back to the exact same file path, the rest of your pipeline (testing, packaging, publishing) doesn't need to be updated. It just blindly consumes the protected binary. &lt;/p&gt;

&lt;p&gt;Note: You will need the Pro or Enterprise edition of Opaquer for this, as the free Basic edition only includes the GUI, not the CLI engine. &lt;/p&gt;

&lt;p&gt;Step 1: The One Visual Studio Setting You Must Change&lt;br&gt;
Before adding any scripts, there is a crucial "gotcha." Opaquer modifies your assemblies in place. If Visual Studio is configured to build multiple projects in parallel, another project in your solution might try to lock or read your DLL while Opaquer is right in the middle of rewriting it. &lt;/p&gt;

&lt;p&gt;To prevent these file-lock exceptions, you must restrict parallel execution. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Go to Tools → Options → Projects and Solutions → Build and Run. &lt;/li&gt;
&lt;li&gt;Change the Maximum number of parallel project builds to 1. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Step 2: The Post-Build Command&lt;br&gt;
Right-click your project in Solution Explorer, head to Properties, and find the Build Events tab. In the Post-build event command line box, you are going to drop in the following script: &lt;/p&gt;

&lt;p&gt;DOS&lt;br&gt;
&lt;code&gt;if "$(ConfigurationName)" == "Release" (&lt;br&gt;
  "C:\Program Files (x86)\RustemSoft\Opaquer\Opaquer.exe" ^&lt;br&gt;
    -SOURCE="$(TargetPath)" ^&lt;br&gt;
    -OUTPUT="$(TargetPath)" ^&lt;br&gt;
    -KEY="$(ProjectDir)KeyFile.snk" ^&lt;br&gt;
    -WRITELOG="$(TargetDir)Opaquer.log" ^&lt;br&gt;
    -ALLPRIVATE ^&lt;br&gt;
    -CONCEALSTRINGS ^&lt;br&gt;
    -FLOW&lt;br&gt;
)&lt;/code&gt;&lt;br&gt;
What is happening here?&lt;/p&gt;

&lt;p&gt;• if "$(ConfigurationName)" == "Release": We only run this on Release builds. You don't want to slow down your local Debug loops with heavy control-flow obfuscation. &lt;/p&gt;

&lt;p&gt;• -SOURCE and -OUTPUT: Both point to $(TargetPath), executing the in-place overwrite we talked about earlier. &lt;/p&gt;

&lt;p&gt;• -KEY: If your assembly is strong-named, obfuscation breaks the signature. Pointing to your .snk file ensures Opaquer re-signs it on the way out. &lt;/p&gt;

&lt;p&gt;• -ALLPRIVATE, -CONCEALSTRINGS, -FLOW: This combo enforces private member renaming, string encryption, and control-flow mangling without needing to reference a saved GUI profile. &lt;/p&gt;

&lt;p&gt;Step 3: Making it CI/CD Friendly&lt;br&gt;
While pasting the command directly into Visual Studio works, I always recommend extracting it into a .bat file for production codebases. This keeps your .csproj files clean, makes the obfuscation logic easily version-controlled, and allows headless agents (like Azure DevOps or GitHub Actions) to trigger it easily. &lt;/p&gt;

&lt;p&gt;Create an obfuscate.bat file in your project directory: &lt;/p&gt;

&lt;p&gt;DOS&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight batchfile"&gt;&lt;code&gt;@echo &lt;span class="na"&gt;off&lt;/span&gt;
&lt;span class="nb"&gt;setlocal&lt;/span&gt;

&lt;span class="kd"&gt;set&lt;/span&gt; &lt;span class="kd"&gt;OPAQUER&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"C:\Program Files (x86)\RustemSoft\Opaquer\Opaquer.exe"&lt;/span&gt;
&lt;span class="kd"&gt;set&lt;/span&gt; &lt;span class="kd"&gt;ASSEMBLY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="vm"&gt;%~dp0&lt;/span&gt;&lt;span class="kd"&gt;bin&lt;/span&gt;\Release\net8.0\MyApp.dll
&lt;span class="kd"&gt;set&lt;/span&gt; &lt;span class="kd"&gt;KEYFILE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="vm"&gt;%~dp0&lt;/span&gt;&lt;span class="kd"&gt;KeyFile&lt;/span&gt;.snk
&lt;span class="kd"&gt;set&lt;/span&gt; &lt;span class="kd"&gt;LOGFILE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="vm"&gt;%~dp0&lt;/span&gt;&lt;span class="kd"&gt;bin&lt;/span&gt;\Release\net8.0\Opaquer.log

&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="kd"&gt;Obfuscating&lt;/span&gt; &lt;span class="nv"&gt;%ASSEMBLY%&lt;/span&gt; ...
&lt;span class="nv"&gt;%OPAQUER%&lt;/span&gt; &lt;span class="na"&gt;-SOURCE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;%ASSEMBLY%&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="na"&gt;-OUTPUT&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;%ASSEMBLY%&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="na"&gt;-KEY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;%KEYFILE%&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="na"&gt;-WRITELOG&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;%LOGFILE%&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="na"&gt;-ALLPRIVATE -CONCEALSTRINGS -FLOW

&lt;/span&gt;&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nv"&gt;%ERRORLEVEL%&lt;/span&gt; &lt;span class="ow"&gt;neq&lt;/span&gt; &lt;span class="m"&gt;0&lt;/span&gt; &lt;span class="o"&gt;(&lt;/span&gt;
  &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="kd"&gt;Opaquer&lt;/span&gt; &lt;span class="kd"&gt;failed&lt;/span&gt; &lt;span class="kd"&gt;with&lt;/span&gt; &lt;span class="k"&gt;exit&lt;/span&gt; &lt;span class="kd"&gt;code&lt;/span&gt; &lt;span class="nv"&gt;%ERRORLEVEL%&lt;/span&gt;
  &lt;span class="k"&gt;exit&lt;/span&gt; &lt;span class="na"&gt;/b &lt;/span&gt;&lt;span class="nv"&gt;%ERRORLEVEL%&lt;/span&gt;
&lt;span class="o"&gt;)&lt;/span&gt;

&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="kd"&gt;Done&lt;/span&gt;. &lt;span class="kd"&gt;Log&lt;/span&gt; &lt;span class="kd"&gt;written&lt;/span&gt; &lt;span class="kd"&gt;to&lt;/span&gt; &lt;span class="nv"&gt;%LOGFILE%&lt;/span&gt;
&lt;span class="nb"&gt;endlocal&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then, in your Visual Studio Post-Build event, just call the script: call "$(ProjectDir)obfuscate.bat" &lt;/p&gt;

&lt;p&gt;A Quick Warning on Setup Projects&lt;br&gt;
If you are utilizing Visual Studio Setup/Deployment projects to build MSI installers, be careful. Relying on the "Primary Output" of a project can sometimes cause the setup builder to snatch the assembly before the post-build obfuscation finishes. &lt;/p&gt;

&lt;p&gt;To fix this, either obfuscate your application project completely before building the installer, or attach a Pre-Build event directly to the deployment project itself so the binaries are secured right before packaging. &lt;/p&gt;

&lt;p&gt;By pushing this logic into your build pipeline, you guarantee that whatever code leaves your machine is encrypted, protected, and ready for production.&lt;/p&gt;

</description>
      <category>dotnet</category>
      <category>obfuscator</category>
      <category>csharp</category>
      <category>programming</category>
    </item>
    <item>
      <title>Stop Letting Obfuscation Break Your Reflection Code: A Practical .NET Survival Guide</title>
      <dc:creator>Skater</dc:creator>
      <pubDate>Mon, 05 Oct 2026 02:50:54 +0000</pubDate>
      <link>https://dev.to/rustemsoft/stop-letting-obfuscation-break-your-reflection-code-a-practical-net-survival-guide-11je</link>
      <guid>https://dev.to/rustemsoft/stop-letting-obfuscation-break-your-reflection-code-a-practical-net-survival-guide-11je</guid>
      <description>&lt;p&gt;You've finished your .NET application, run it through an obfuscator, and everything looks great.&lt;br&gt;
Then production starts throwing exceptions:&lt;br&gt;
TypeLoadException&lt;br&gt;
MissingMethodException&lt;br&gt;
JsonSerializationException&lt;br&gt;
Nothing changed in your business logic. Unit tests passed before protection. Yet the obfuscated build suddenly behaves differently.&lt;br&gt;
If this sounds familiar, you're probably dealing with one of the most common .NET protection pitfalls: reflection-aware code colliding with aggressive symbol renaming. The source article discusses this exact challenge and explains that reflection-dependent applications require special handling during obfuscation. &lt;/p&gt;




&lt;p&gt;The Day Reflection Meets Obfuscation&lt;br&gt;
Most obfuscators protect applications by renaming classes, methods, properties, and fields.&lt;br&gt;
For example:&lt;br&gt;
MyApp.DataProcessor&lt;br&gt;
might become:&lt;br&gt;
a.a&lt;br&gt;
and&lt;br&gt;
ProcessData()&lt;br&gt;
might become:&lt;br&gt;
b()&lt;br&gt;
Direct method calls usually continue working because the compiler and obfuscator maintain the internal references. The source article explains that standard .NET calls are linked through metadata and can be updated consistently during obfuscation. &lt;br&gt;
Reflection doesn't have that luxury.&lt;br&gt;
Reflection often depends on textual names at runtime.&lt;/p&gt;




&lt;p&gt;A Real-World Example&lt;br&gt;
Imagine a plugin system:&lt;br&gt;
Type pluginType =&lt;br&gt;
    Type.GetType("MyApp.DataProcessor");&lt;br&gt;
object plugin =&lt;br&gt;
    Activator.CreateInstance(pluginType);&lt;br&gt;
Before obfuscation:&lt;br&gt;
Lookup Target:&lt;br&gt;
"MyApp.DataProcessor"&lt;br&gt;
Metadata:&lt;br&gt;
"MyApp.DataProcessor"&lt;br&gt;
Result:&lt;br&gt;
Success&lt;br&gt;
After aggressive renaming:&lt;br&gt;
Lookup Target:&lt;br&gt;
"MyApp.DataProcessor"&lt;br&gt;
Metadata:&lt;br&gt;
"a.a"&lt;br&gt;
Result:&lt;br&gt;
Failure&lt;br&gt;
The runtime still searches for the original name, but that name no longer exists in assembly metadata. The analyzed document specifically identifies Type.GetType() and related reflection APIs as common failure points after renaming. &lt;/p&gt;




&lt;p&gt;Reflection Is Everywhere, Even When You Don't Think It Is&lt;br&gt;
Many developers assume reflection is limited to specialized frameworks.&lt;br&gt;
In reality, it powers a surprising amount of modern .NET infrastructure.&lt;br&gt;
Applications frequently rely on:&lt;br&gt;
• Dynamic plugin loading&lt;br&gt;
• Dependency injection frameworks&lt;br&gt;
• JSON serialization&lt;br&gt;
• Runtime factory patterns&lt;br&gt;
• WPF bindings and XAML&lt;br&gt;
• Assembly scanning&lt;br&gt;
• Custom attribute discovery&lt;br&gt;
The source article highlights reflection APIs such as Type.GetType(), Activator.CreateInstance(), GetMethod(), and dynamic assembly loading as areas that should be reviewed before obfuscation. &lt;/p&gt;




&lt;p&gt;The Wrong Solution: Disable Obfuscation Everywhere&lt;br&gt;
A common reaction is:&lt;br&gt;
"Reflection is breaking. Let's turn off obfuscation."&lt;br&gt;
That fixes the runtime issue but removes much of the protection you were trying to achieve.&lt;br&gt;
A better approach is understanding which identifiers form part of your runtime contract.&lt;br&gt;
Only those identifiers need to remain stable.&lt;br&gt;
Everything else can still be heavily protected.&lt;/p&gt;




&lt;p&gt;Think in Terms of Contracts&lt;br&gt;
Here's a useful way to evaluate your codebase:&lt;br&gt;
Public Runtime Contracts&lt;br&gt;
These are names your application actively searches for:&lt;br&gt;
GetMethod("ProcessData")&lt;br&gt;
Type.GetType("MyApp.DataProcessor")&lt;br&gt;
These identifiers may need to stay unchanged.&lt;br&gt;
Internal Implementation&lt;br&gt;
This is the actual business logic:&lt;br&gt;
public void ProcessData(string payload)&lt;br&gt;
{&lt;br&gt;
    // processing logic&lt;br&gt;
}&lt;br&gt;
The name may remain visible, but the implementation can still be protected using control-flow transformations, string encryption, anti-tamper features, and other techniques. The source article notes that excluding names from renaming does not prevent additional protection layers from being applied. &lt;/p&gt;




&lt;p&gt;How to Find Reflection Risks Before They Become Bugs&lt;br&gt;
Before obfuscating a project, audit the codebase for patterns like:&lt;br&gt;
Type.GetType(&lt;br&gt;
GetMethod(&lt;br&gt;
GetProperty(&lt;br&gt;
Activator.CreateInstance(&lt;br&gt;
Assembly.GetType(&lt;br&gt;
Assembly.LoadFrom(&lt;br&gt;
Each occurrence should raise a question:&lt;br&gt;
Will this lookup still succeed if the target name changes?&lt;br&gt;
If the answer is no, that member should become part of your protection strategy.&lt;br&gt;
The source article recommends identifying reflection-dependent members before configuring obfuscation rules. &lt;/p&gt;




&lt;p&gt;Serialization Can Fail Too&lt;br&gt;
Many teams first encounter this issue through JSON processing rather than explicit reflection code.&lt;br&gt;
For example:&lt;br&gt;
public class Customer&lt;br&gt;
{&lt;br&gt;
    public string FirstName { get; set; }&lt;br&gt;
}&lt;br&gt;
If a serializer expects:&lt;br&gt;
{&lt;br&gt;
  "firstName": "Alice"&lt;br&gt;
}&lt;br&gt;
but property names have been aggressively renamed, deserialization can fail.&lt;br&gt;
The analyzed article identifies JSON serialization as another common metadata-related problem after obfuscation. &lt;/p&gt;




&lt;p&gt;WPF Developers Face an Additional Challenge&lt;br&gt;
WPF introduces another metadata dependency layer.&lt;br&gt;
XAML references classes, controls, resources, and bindings using names that must remain synchronized with compiled metadata.&lt;br&gt;
The source article explains that WPF applications often require dedicated XAML/BAML-aware processing to prevent runtime parsing failures after obfuscation. &lt;br&gt;
If you're protecting a desktop application, always include XAML validation in your testing process.&lt;/p&gt;




&lt;p&gt;The Production Checklist I Recommend&lt;br&gt;
Before shipping an obfuscated build:&lt;br&gt;
✅ Scan for Reflection&lt;br&gt;
Review every runtime type and method lookup.&lt;br&gt;
✅ Define Exclusions Carefully&lt;br&gt;
Preserve only the identifiers required by runtime contracts.&lt;br&gt;
✅ Keep Strong Protection Enabled&lt;br&gt;
Continue using:&lt;br&gt;
• String encryption&lt;br&gt;
• Control-flow protection&lt;br&gt;
• Anti-tamper mechanisms&lt;br&gt;
• Anti-decompilation features&lt;br&gt;
The source article specifically recommends keeping string encryption and control-flow protection active even when selected names are excluded from renaming. &lt;br&gt;
✅ Test the Obfuscated Binary&lt;br&gt;
Not the original assembly.&lt;br&gt;
Not the Debug build.&lt;br&gt;
Test the protected output you'll actually distribute.&lt;br&gt;
The analyzed article recommends running validation and integration testing against obfuscated assemblies before release. &lt;/p&gt;




&lt;p&gt;A Simple Rule to Remember&lt;br&gt;
If the runtime must discover a component by name, that name is no longer an implementation detail.&lt;br&gt;
It's a contract.&lt;br&gt;
Successful .NET protection isn't about hiding every identifier. It's about preserving the metadata your application needs while aggressively hardening the code that attackers want to understand.&lt;br&gt;
When you treat reflection targets as contracts instead of obfuscation candidates, you can keep dynamic loading, serialization, plugins, and WPF functionality working while still gaining meaningful resistance against reverse engineering. The source article demonstrates this selective-protection philosophy as the recommended solution for reflection-dependent .NET applications. &lt;/p&gt;

</description>
      <category>dotnet</category>
      <category>obfuscator</category>
      <category>codeprotection</category>
      <category>csharp</category>
    </item>
    <item>
      <title>Obfuscating an Entire .NET Assembly</title>
      <dc:creator>Skater</dc:creator>
      <pubDate>Mon, 30 Jun 2025 02:59:53 +0000</pubDate>
      <link>https://dev.to/rustemsoft/obfuscating-an-entire-net-assembly-33pn</link>
      <guid>https://dev.to/rustemsoft/obfuscating-an-entire-net-assembly-33pn</guid>
      <description>&lt;p&gt;To fully protect your .NET application, you'll want to apply comprehensive obfuscation to the entire assembly. Here's how to do this with Skater .NET Obfuscator:&lt;/p&gt;

&lt;p&gt;Complete Obfuscation Process&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Load Your Assembly
Open Skater .NET Obfuscator&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Go to File → Open and select your .exe or .dll file&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Enable Full Obfuscation Features
In the settings panel, enable all relevant obfuscation techniques:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;plaintext&lt;br&gt;
☑ Control Flow Obfuscation&lt;br&gt;
☑ Renaming Obfuscation (all classes/methods/properties)&lt;br&gt;
☑ String Encryption&lt;br&gt;
☑ Resource Encryption&lt;br&gt;
☑ Anti-Debug Protection&lt;br&gt;
☑ Anti-Tamper Protection&lt;br&gt;
☑ IL Code Protection&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Configure Aggressive Settings
For maximum protection:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Set renaming to "Unprintable" or "Unicode" mode&lt;/p&gt;

&lt;p&gt;Enable "Deep Control Flow" obfuscation&lt;/p&gt;

&lt;p&gt;Apply "Maximum" encryption level to strings/resources&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Exclusion Handling (If Needed)
If certain elements must remain unobfuscated (e.g., public API methods):&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Use the "Exclusions" tab&lt;/p&gt;

&lt;p&gt;Add specific classes/methods to the exclusion list&lt;/p&gt;

&lt;p&gt;Mark them with [Obfuscation(Exclude=true)] in your source code&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Run Full Obfuscation
Click the "Obfuscate" button and save the output to a new file.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Command Line Version for Full Obfuscation&lt;br&gt;
bash&lt;br&gt;
SkaterConsole.exe YourApp.exe /controlflow:aggressive /rename:advanced /strings /resources /antitamper /anticrack /out:ProtectedApp.exe&lt;br&gt;
Post-Obfuscation Verification Steps&lt;br&gt;
Test the obfuscated assembly thoroughly for functionality&lt;/p&gt;

&lt;p&gt;Verify protection using decompilers like:&lt;/p&gt;

&lt;p&gt;dnSpy&lt;/p&gt;

&lt;p&gt;ILSpy&lt;/p&gt;

&lt;p&gt;dotPeek&lt;/p&gt;

&lt;p&gt;Check that:&lt;/p&gt;

&lt;p&gt;All meaningful names are gone&lt;/p&gt;

&lt;p&gt;Control flow appears complex&lt;/p&gt;

&lt;p&gt;Strings are encrypted&lt;/p&gt;

&lt;p&gt;Resources are not easily extractable&lt;/p&gt;

&lt;p&gt;Best Practices for Full Assembly Obfuscation&lt;br&gt;
Maintain debug symbols (PDB files) for your unobfuscated version&lt;/p&gt;

&lt;p&gt;Implement strong naming before obfuscation if your assembly is signed&lt;/p&gt;

&lt;p&gt;Combine with runtime protections like license checks&lt;/p&gt;

&lt;p&gt;Update regularly as new versions of Skater may offer improved techniques&lt;/p&gt;

&lt;p&gt;Consider layered protection (Skater + another obfuscator for critical components)&lt;/p&gt;

&lt;p&gt;Remember that while obfuscation makes reverse engineering harder, determined attackers may still decompile your code. Use obfuscation as part of a broader protection strategy.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>What are the different obfuscation techniques used in .NET?</title>
      <dc:creator>Skater</dc:creator>
      <pubDate>Wed, 01 Jan 2025 23:29:09 +0000</pubDate>
      <link>https://dev.to/rustemsoft/what-are-the-different-obfuscation-techniques-used-in-net-56gd</link>
      <guid>https://dev.to/rustemsoft/what-are-the-different-obfuscation-techniques-used-in-net-56gd</guid>
      <description>&lt;p&gt;In .NET, obfuscation employs various techniques to make code more challenging to reverse engineer by obscuring its logic and structure. Common techniques include control flow obfuscation, variable and method renaming, string encryption, data transformation, dummy code insertion, dependency merging, advanced overload renaming, address obfuscation, and code compression.&lt;/p&gt;

&lt;h4&gt;
  
  
  Key Points About These Techniques:
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Control Flow Obfuscation:&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Alters the program's logical structure by introducing unnecessary loops, conditional statements, and jumps, complicating the analysis of the code's execution path.  &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Renaming:&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Replaces meaningful names of variables and methods with random or nonsensical ones to obscure their purpose.  &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;String Encryption:&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Encrypts sensitive strings in the code, requiring runtime decryption to reveal their original values.  &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Data Transformation:&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Applies mathematical operations or transformations to data, making it difficult to interpret directly.  &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Dummy Code Insertion:&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Adds irrelevant code snippets that do not affect functionality but significantly complicate reverse engineering efforts.  &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Dependency Merging:&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Combines multiple assemblies into one, simplifying the obfuscation process and reducing entry points for analysis.  &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Advanced Overload Renaming:&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Assigns identical names to methods with different parameter types, further confusing the structure of the code.  &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Address Obfuscation:&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Modifies memory addresses to obscure specific code locations and hinder analysis.  &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Code Compression:&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Reduces the size of the compiled assembly by removing superfluous information while maintaining functionality, making the code harder to read.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://skaterpro.net" rel="noopener noreferrer"&gt;Skater .NET Obfuscator&lt;/a&gt; implements all of the techniques list above. Main features of Skater to handle common .NET obfuscation tasks:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Prohibits reverse engineering&lt;/li&gt;
&lt;li&gt;Obfuscated application usually is not recompilable&lt;/li&gt;
&lt;li&gt;Processes any .NET application, executable or assembly&lt;/li&gt;
&lt;li&gt;Encrypts string constants&lt;/li&gt;
&lt;li&gt;Compatible with any .NET framework from 1.0 through 4.8. It supports latest .NET 9&lt;/li&gt;
&lt;li&gt;Control flow obfuscation stops decompilers and deobfuscators&lt;/li&gt;
&lt;li&gt;Scrambles class names, method names, field names etc.&lt;/li&gt;
&lt;li&gt;Protects XAML (baml) files in WPF application&lt;/li&gt;
&lt;li&gt;It works well on both (x86 and x64) platforms&lt;/li&gt;
&lt;li&gt;Provides .NET Licensing features&lt;/li&gt;
&lt;li&gt;Implements .NET Code Extension for small .NET applications protection&lt;/li&gt;
&lt;li&gt;Implements assemblies linking; linkage unites .NET assemblies into a single dll or exe&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  Important Considerations When Using Obfuscation:
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Balancing Protection and Performance:&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Excessive obfuscation can negatively impact application performance, so it is important to strike an appropriate balance.  &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Not a Complete Security Solution:&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Obfuscation alone cannot fully protect your code; determined attackers with advanced skills can still reverse engineer it. It should be used as part of a comprehensive security strategy.  &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Impact on Debugging:&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Obfuscated code is more challenging to debug. To mitigate this, consider maintaining a separate, unobfuscated build for debugging purposes.  &lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;By combining these techniques thoughtfully and considering their trade-offs, obfuscation can effectively enhance the security of .NET applications while minimizing performance and development challenges.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Obfuscation is not feasible for certain .NET assemblies</title>
      <dc:creator>Skater</dc:creator>
      <pubDate>Mon, 30 Dec 2024 03:21:43 +0000</pubDate>
      <link>https://dev.to/rustemsoft/obfuscation-is-not-feasible-for-certain-net-assemblies-pjd</link>
      <guid>https://dev.to/rustemsoft/obfuscation-is-not-feasible-for-certain-net-assemblies-pjd</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqg1mz97uaoffemg0fpsf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqg1mz97uaoffemg0fpsf.png" alt=" " width="670" height="464"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Sometimes, code obfuscation is impossible for certain .NET assemblies.&lt;/p&gt;

&lt;p&gt;There are several possible reasons for this issue. One possibility is that the assembly you want to protect has internal component referencing problems. This can occur when some referenced DLLs or NuGet packages have coupling issues within a project.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmd2uk9sn9nr1qnekgml1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmd2uk9sn9nr1qnekgml1.png" alt=" " width="440" height="528"&gt;&lt;/a&gt;&lt;br&gt;
In earlier versions of the .NET Framework (1.0 through 4.8), assemblies did not encounter such issues because the .NET compiler would halt the build process with a compilation error if there were unresolved references, preventing the creation of the final .exe or .dll. However, in modern .NET versions, the compilers no longer enforce strict reference checks, allowing the final assembly to be compiled even if some binary file references are missing or inaccurate.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3uxluxb9gghezteu3ohc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3uxluxb9gghezteu3ohc.png" alt=" " width="721" height="441"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In this scenario, the Skater Obfuscator code compiler is unable to identify all external components referenced by the assembly, causing the obfuscation process to fail. The assembly includes implicitly defined references to external components specified in the project to which it belongs.&lt;/p&gt;

&lt;p&gt;To proceed, you have the following options:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Press 1&lt;/strong&gt; in the popup window to disregard these broken references. This will allow the obfuscation to continue, but the resulting assembly may contain internal errors and may not function correctly.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Press 2&lt;/strong&gt; to proceed with obfuscation 'as is.' Be aware that the process might fail.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Press Cancel&lt;/strong&gt; to terminate the process.&lt;/p&gt;

&lt;p&gt;In conclusion, Skater .NET Obfuscator navigates around this obstacle by excluding the compiler warning from the obfuscated code. However, we highly recommend addressing these issues by making the necessary corrections to your project before attempting to obfuscate the assembly.&lt;/p&gt;

</description>
      <category>dotnet</category>
      <category>csharp</category>
      <category>obfuscation</category>
      <category>programming</category>
    </item>
    <item>
      <title>I'm trying to obfuscate an .exe file obtained after compiling my .NET 8 project with the "produce a single file" option.</title>
      <dc:creator>Skater</dc:creator>
      <pubDate>Sun, 01 Sep 2024 18:08:10 +0000</pubDate>
      <link>https://dev.to/rustemsoft/im-trying-to-obfuscate-an-exe-file-obtained-after-compiling-my-net-8-project-with-the-produce-a-single-file-option-2mgl</link>
      <guid>https://dev.to/rustemsoft/im-trying-to-obfuscate-an-exe-file-obtained-after-compiling-my-net-8-project-with-the-produce-a-single-file-option-2mgl</guid>
      <description>&lt;p&gt;&lt;strong&gt;Question:&lt;/strong&gt;&lt;br&gt;
I'm trying to obfuscate an .exe file obtained after compiling my .NET 8 project with the "produce a single file" option, the problem is that no obfuscator works on it, I wanted to know if anyone knows why?&lt;br&gt;
&lt;strong&gt;Answer:&lt;/strong&gt;&lt;br&gt;
Skater Obfuscator protects .NET 8 assemblies. It supports .NET 8 projects where the publish output is a DLL file (Framework-dependent deployment). When the publish output is an EXE file that calls .NET 8.0 DLL (Self-contained deployment) the final DLL has to be obfuscated as well. There are two types of .NET 8.0 apps can be built:&lt;/p&gt;

&lt;p&gt;Framework-dependent deployment. As the name implies, framework-dependent deployment (FDD) relies on the presence of a shared system-wide version of .NET 8 on the target system. Because .NET 8 is already present, your app is also portable between installations of .NET 8. Your app contains only its own code and any third-party dependencies that are outside of the .NET 8.0 libraries. FDDs contain .dll files that can be launched by using the dotnet utility from the command line. For example, dotnet app.dll runs an application named app.&lt;/p&gt;

&lt;p&gt;Self-contained deployment. Unlike FDD, a self-contained deployment (SCD) doesn't rely on the presence of shared components on the target system. All components, including both the .NET 8 libraries and the .NET 8 runtime, are included with the application and are isolated from other .NET 8 applications. SCDs include an executable (such as app.exe on Windows platforms for an application named app), which is a renamed version of the platform-specific .NET 6 host, and a .dll file (such as app.dll), which is the actual application. The .NET 8 app development is following the Self-Contained Deployment (SCD) concept. Let’s take a look at what the final binaries were compiled in the output folder of the WindowsFormsApp project.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdui10plqzvv4dzaxw657.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdui10plqzvv4dzaxw657.png" alt=" " width="624" height="368"&gt;&lt;/a&gt;&lt;br&gt;
You can see two main assemblies presented inside the output folder: WindowsFormsApp.exe WindowsFormsApp.dll This pair of files represents the .NET 8 Self-Contained Deployment (SCD) concept. The final output for that Windows Forms app includes the WindowsFormsApp.exe executable, which is a renamed version of the platform-specific .NET 8 host, and the WindowsFormsApp.dll library file, which is the actual application. So, the WindowsFormsApp.exe executable is the app’s starter with necessary predefined .NET 8 utilities compiled inside the exe. Ideally the exe file is cross-platform executable. The executable is binary file compiled in machine codes. This file is cannot be decompiled and do not need to be obfuscated.&lt;/p&gt;

&lt;p&gt;Finally, you have to concentrate on WindowsFormsApp.dll assembly protection. &lt;a href="https://www.linkedin.com/pulse/skater-net-obfuscator-protects-your-8-projects-skater-net-obfuscator-4vutc/" rel="noopener noreferrer"&gt;Read instructions how Skater secures .NET 8 source codes &lt;/a&gt;&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
