Anti-AIClone

Log date · Sun

What can ILSpy reveal in a .NET release?

ILSpy can inspect assembly code and metadata. A Java comparison shows why packaging and removing debug info are not confidentiality.

What can ILSpy reveal in a release?

ILSpy can help inspect code and metadata in .NET assemblies; packaging or removing debug information is not itself confidentiality. In our Java comparison, two JARs with and without debug information both printed 154. Both disassemblies retained the private method name price and the numbers 120 and 17; only the debug build showed the local names base and quantity.

ILSpy 11.0 Preview 1 is a reminder that analysis tools evolve alongside languages and file formats. [1] The table reports our sample, not a test of that preview.

Main results for the two builds
QuestionFinding
Runtime behaviorBoth print DEMO-PLAN 154
JAR contentsBoth contain Quote.class
Method and numbersBoth show price, 120 and 17
Local variable tableOnly the debug build shows base and quantity

What changed in this release

ILSpy 11.0 Preview 1 was published on 19 July 2026 at 14:18 UTC. Its notes describe the Avalonia 12 port and removal of the WPF UI, with CI building, testing and packaging on Linux and macOS. The preview requires .NET 10; its macOS app is unsigned and unnotarized. [1] The project says it does not own ilspy.org and directs downloads to GitHub Releases.

Decompiler changes include await on dynamic expressions, foreach over inline arrays and runtime async without a separate C# 15 setting. The notes also list bounds hardening for crafted Xamarin compressed headers, WebCil sections, BAML, .rsrc resource trees and single-file bundle signatures. [1] Syntax and file layouts change, so inspect the actual release again instead of treating one tool output as a permanent conclusion.

The project describes ILSpy as a .NET decompiler with metadata support. [4] Decompiled output is a reconstruction and need not match the original source exactly. Names, constants and control flow can still help developers identify what a release exposes.

Compare debug information in two Java builds

ILSpy and the .NET SDK were unavailable here. We compiled our own Quote.java with OpenJDK 17.0.19 using -g and -g:none, then packaged each result as a JAR. The program calculates 120 plus 17 per argument, yielding 154 for two arguments. This Java bytecode and JAR comparison illustrates the underlying point; it is not a test of .NET assemblies, ILSpy or the preview’s new features.

Both JARs list Quote.class and produce the same result. javap -c prints instructions, -l prints line and local variable tables, and -private includes private members. [2] The following is a contiguous excerpt from the build without debug information.

Verbatim javap output from the build without debug information.
  private static int price(int);
    Code:
       0: bipush        120
       2: istore_1
       3: iload_1
       4: iload_0
       5: bipush        17
       7: imul
       8: iadd
       9: ireturn

The debug build additionally shows the local variable table below. Removing that table reduces semantic clues but leaves the arithmetic instructions above. Here private is a language access control, not a way to prevent inspection of a distributed class file. Compilers, optimization settings and protection steps can change the details, so inspect the final artifact.

Verbatim local variable table for price in the debug build.
    LocalVariableTable:
      Start  Length  Slot  Name   Signature
          0      10     0 quantity   I
          3       7     1  base   I

Packaging and protection: recommendations

Microsoft describes single-file deployment as bundling application-dependent files into one binary, and notes that it can be combined with trimming. [3] This is a deployment choice; file count alone does not establish confidentiality. The following are engineering recommendations, not protection effects measured by our experiment.

Recommendations by goal
QuestionFinding
Fewer distributed filesUse single-file deployment for delivery; inspect the final package and external resources.
Fewer readable cluesEvaluate suitable build and protection options alongside compatibility and diagnosis.
Privileged service secretKeep it on a controlled server; issue scoped, revocable credentials to clients.
Sensitive decisionsWhere practical, enforce them on a trusted server and validate requests and authorization.

Not everything visible is a secret. A public signature-verification key, an internal endpoint and an authorized credential require different treatment. If a shared privileged credential has shipped in a client, consider limiting its privileges and rotating it rather than merely repackaging the application.

Native implementation is not a guarantee of secrecy either. When moving logic into native code, compare platform maintenance, behavior tests and actual visibility; keep authorization decisions requiring server control on the server.

Check your own .NET release

Obtain an ILSpy build appropriate to your environment from the project’s GitHub Releases and follow that release’s requirements. [1] In an isolated test environment, open assemblies you built and review types, private members, constants and resources. Record the tool version, build identifier and locations of findings; do not paste exports containing sensitive values into public logs.

For a single-file release, run the following in your own project and inspect the resulting files, replacing the runtime identifier with your target. This publishing form follows Microsoft’s documentation; we did not execute a .NET build here. [3] Also inspect the assemblies and resources before bundling so findings can be mapped back to the source project.

Run in your own .NET project; this command was not executed here.
dotnet publish -r linux-x64 -p:PublishSingleFile=true --self-contained false

Review BAML, Avalonia resources and embedded files, as well as configuration left outside the bundle. For the actual single-file, trimmed or Native AOT configuration you use, also test installation, startup, critical flows and crash diagnosis. After a tool, build configuration or dependency change, retain the old and new version and artifact identifiers and repeat the review. Avoid describing one inspection as proof that an app cannot be decompiled.

We built a small Java sample and ran the compilation, packaging and inspection commands below, recording the full output and tool versions. This helps explain debug tables, while your own .NET release still needs its own inspection. Replace the path with your own Quote.java.

Compile and inspect your own Java sample.
java -version
javac -version
mkdir -p build/debug build/nodebug
javac -g -d build/debug path/to/Quote.java
javac -g:none -d build/nodebug path/to/Quote.java
jar cf build/debug.jar -C build/debug .
jar cf build/nodebug.jar -C build/nodebug .
for variant in debug nodebug; do
  java -cp "build/$variant.jar" Quote one two
  jar tf "build/$variant.jar"
  javap -classpath "build/$variant.jar" -c -l -private Quote
done

Your checklist

  • Get the tool from the project’s GitHub Releases and record its version.
  • Review your release assemblies, resources and configuration for sensitive content.
  • Move shared privileged credentials out of clients and rotate exposed values.
  • Test critical flows and crash diagnosis in the actual release configuration.
  • Repeat the review after tool or build changes and retain artifact identifiers.

Primary sources

All sources and reproduction status ↗