Anti-AIClone

Log date · Wed

What can ILSpy 11 reveal in your .NET app?

ILSpy can reveal managed code. A bytecode comparison shows what debug information changes and how to review your own release.

What can ILSpy reveal in a .NET app?

ILSpy can reconstruct readable C# from managed assemblies, so inspect the assemblies you actually ship. Version 11.0 brought its desktop interface to Windows, Linux and macOS and added single-member output. [1] In our Java bytecode illustration, builds with and without debug information both retained 120 and 17 in a pricing calculation; only the debug build exposed the two local names quantity and basePrice.

Our result and release capabilities
QuestionFinding
Did both builds run?Both printed DEMO-PLAN 120 without arguments.
What changed without debug information?The local variable table disappeared; calculation instructions remained.
What does ILSpy 11.0 add?A cross-platform interface, member selection and opening from a process, among other features.

What changed in 11.0

Released at 05:13 UTC on 2026-08-12, version 11.0 moved the interface from WPF to Avalonia and removed the WPF front end. It can open assemblies from a NuGet feed or a running process, and adds bookmarks in the C# view and an optional navigation bar. The command line gained --member, fuzzy type-name matching and metadata-table dumps; resource listing and extraction and BAML-to-XAML decompilation already existed in 10.1. [1]

These changes make inspection possible in more environments and workflows; they do not mean every assembly can be restored to its original source. The release notes also list parser hardening against crafted input and fuzzing of the decompiler engine. Version 11.0 is based on .NET 10.0, and its release page says the macOS app is neither signed nor notarized. [1] Read the project’s instructions and assess your own environment before installation.

A bytecode illustration: what survives without debug information

We wrote Pricing with a base value of 120 and an increment of 17 per argument. We compiled it with javac 17.0.19 using -g and -g:none, then inspected private methods and bytecode with javap. This uses Java tools, not ILSpy or .NET: it illustrates the different information compiled code and accompanying metadata can expose, and does not establish ILSpy 11 output or the effectiveness of any protection. [3]

The sample method we wrote.
private static int quote(int quantity) {
  int basePrice = 120;
  return basePrice + quantity * 17;
}

Both versions produced the same output without arguments. The debug build’s LocalVariableTable listed both names; the no-debug build had no such table, but quote still contained the same arithmetic instructions. The following contiguous excerpt appears in both outputs.

Excerpt common to both javap outputs.
  private static int quote(int);
    Code:
       0: bipush        120
       2: istore_1
       3: iload_1
       4: iload_0
       5: bipush        17
       7: imul
       8: iadd
       9: ireturn

Debug information can add readable clues, but removing those clues does not automatically remove business logic. Actual release output also depends on compilation, trimming and other processing. Inspect the real artifact, record the tool version and compare findings with your intended trust boundaries.

Recommendations for findings

These are engineering recommendations, not protection effects measured in our experiment. First distinguish client logic that may be exposed from privileges that need server-side control, then prioritize fixes.

Recommendations by finding
QuestionFinding
Shared privileged credentialMove it server-side and rotate shipped values.
Local licence decisionValidate sensitive permissions server-side; define revocation limits for offline use.
Resources contain internal endpoints or configurationAssess sensitivity and privileges; remove content that need not ship.
Readable names or symbolsReview release settings and retain matching diagnostic artifacts.

Opening a running process is a useful scenario for a threat model, but it does not prove that every dynamically loaded item is visible. An offline feature needs local information and logic; when designing licence expiry and recovery, account for devices that cannot immediately receive revocation. Keep real credentials out of reports and record their location, privileges and rotation status instead.

Inspect your own release assembly

On a trusted machine with .NET and ilspycmd installed, run the following against a release assembly you own or are authorized to inspect. Replace the path and type name; the project documents type selection, IL output and resource listing. [2] These are steps for your own review, not output from our experiment.

Run in your own environment, substituting the assembly and type.
ilspycmd --version
ilspycmd -t Your.Namespace.Type path/to/YourApp.dll
ilspycmd -il -t Your.Namespace.Type path/to/YourApp.dll
ilspycmd --list-resources path/to/YourApp.dll

Review critical types and resources first, then use --member to narrow the review to one member when useful; it accepts an XML documentation ID or metadata token. [2] In CI, retain the tool version, build identifier and review outcome, and restrict access to output that may itself contain sensitive information. Record errors and missing dependencies: an analysis failure is not a passed review.

For a useful comparison, keep the same assembly inventory, type list and tool settings across releases. Confirm the build identifier first, then inspect new dependencies and resources. Ask someone familiar with the business to decide whether visible content exceeds expectations: a method name may be a public interface, while connection information with privileges needs prompt attention. Record an owner, risk and review date for each finding, and verify the fix in a new artifact.

Repeat the review after an SDK upgrade or changes to publishing or trimming, and compare the same critical paths with the previous release. If you find a shared secret, restrict and rotate it, then verify the old value no longer works. Removing it from new source cannot clean up versions already distributed.

Your checklist

  • Record the release assembly and ilspycmd version.
  • Review critical types, IL and embedded resources.
  • Record analysis failures and missing dependencies.
  • Move shared privileged credentials server-side and rotate them.
  • Repeat after release configuration or SDK changes.

Primary sources

All sources and reproduction status ↗