Skip to content
Platforms / 08IL assemblies.NET security audits

.NET.

What your build
gives away.

Managed assemblies preserve useful structure: types, methods, names and metadata. A decompiler can make that structure readable again. We inspect the assemblies, configuration and native boundaries in your release.

Get a free first look Explore the build
Machined assembly modules opened to reveal an organized matrix of instruction blocks.
Build / IL assembliesIllustrated, layer by layer
  • .dll
  • .exe
  • IL metadata
  • appsettings.json
  • single-file bundle
  • ReadyToRun

01 / Inside the build

A package.
Many ways in.

Select a layer to see what it contains and which tools can read it.

Inside the package

Managed assemblies (.exe / .dll)

Common intermediate language (CIL/IL) for every method plus metadata tables describing every type and member: names, visibility, base classes, fields, properties, method signatures, referenced assemblies, and a string heap with all type and member names.

Reads with a decompiler

Very high. Microsoft calls assemblies 'self-describing'; decompilers such as ILSpy, dnSpyEx and dotPeek turn IL plus metadata back into close-to-original C# with real class and method names unless an obfuscator renamed them.

Indicative readability. Build settings, obfuscation and access to a running device change the effort.

Tools that can read these layers

ILSpy · dnSpyEx · JetBrains dotPeek · de4dot · Detect It Easy (DiE) · Ildasm.exe (IL Disassembler) · pyxamstore

02 / The method

One build.
Six ways to inspect it.

Agents inspect the package, trace its behaviour and collect evidence through six stages. An engineer verifies each finding before it enters your report.

Unpack.

Opens the build and lists every file, format and layer.

Tools used in this stage
  • inspect_artifact
  • extract_artifact
  • inspect_pe_resources
  • inspect_signature
Illustrative run log
  1. unpack
    extract_artifact Setup.exe

    single-file bundle, 48 assemblies

  2. map
    inspect_managed_artifact Ledger.Core.dll

    IL with full metadata, no obfuscation

  3. read
    import_managed_reconstruction

    readable C#, 1,140 types

  4. hunt
    search_strings "Password=|Server="

    a SQL connection string with a password

  5. hunt
    find_xrefs_to_name LicenceKey.Validate

    offline check, the key format is in the code

  6. hunt
    find_xrefs_to_name BinaryFormatter

    project files deserialised unsafely

  7. run
    capture_process_scenario

    trial ends on a date the user can change

  8. prove
    export_evidence_bundle

    5 findings, ranked, sent to the engineer

8 / 8 eventsEngineer review follows ↗

A written example of the report format. Replay is condensed; the real time budget is agreed before a run and printed on the report.

03 / Exposure areas

What can
escape the build.

The places we look on .NET, the business risk behind them, and the changes that reduce exposure.

Readability alone is not a vulnerability. Impact depends on what the recovered material lets someone do.

01

Full source recoverable with original names

Unless obfuscated or Native AOT compiled, a.NET assembly carries IL plus metadata naming every class, method and field. A decompiler rebuilds readable C#, so internal logic, endpoints and security checks are visible within minutes.

The fix

Assume the client is readable: keep secrets and authoritative decisions on the server, then add obfuscation or Native AOT where the app supports it as a cost-raiser.

CWE-540

02

Hard-coded credentials in assemblies

Service account passwords, API keys and default admin credentials compiled into a DLL show up as string literals or initialisers in decompiled code. Philips IntelliSpace Portal (CVE-2025-3426) is a documented example.

The fix

Remove embedded credentials, use per-user authentication against a backend, rotate everything that shipped, and add a secret scan of release builds to CI.

CWE-798

03

Hard-coded keys 'encrypting' config secrets

Many apps encrypt a connection string or password in a config file but ship the AES key and IV in the same client. Decompiling reveals the key, so every customer's 'encrypted' secret decrypts offline (Trux CVE-2024-22734, Stimulsoft CVE-2023-25263).

The fix

Don't ship a reusable secret at all; if local protection is needed, use per-machine/per-user DPAPI or OS keystores and keep real credentials server-side.

CWE-321

04

Database credentials in App.config or appsettings.json

Thick clients that talk straight to SQL Server often keep a shared connection string with user ID and password in plain config. Anyone with the install folder can connect to the database with the app's privileges.

The fix

Put an authenticated API between client and database, or use integrated Windows authentication with least-privilege accounts; never ship a shared SQL password.

CWE-260

05

Licence and key validation done client-side

Licence checks that compute or compare a key locally sit in a clearly named method that can be read, keygen'd or patched with dnSpyEx. Once patched, the app has no way to tell.

The fix

Use asymmetrically signed licences verified with a public key only, and gate high-value features or data behind server-side activation checks.

CWE-602

06

Weak or reversible obfuscation

Shipping without obfuscation leaves names and logic intact, and common obfuscators can be largely undone by off-the-shelf deobfuscators such as de4dot. CVE-2025-3426 explicitly cites unobfuscated binaries with no anti-decompilation or anti-debugging measures.

The fix

Treat obfuscation as a speed bump: combine renaming and string encryption with moving secrets off the client, and check the result with DiE and de4dot before release.

CVE-2025-3426

07

BinaryFormatter and other unsafe deserializers

BinaryFormatter (and SoapFormatter, NetDataContractSerializer, LosFormatter) can be made to run attacker code when they read a crafted payload. Desktop apps hit this when loading files, IPC messages or cache data that another user or process can write.

The fix

Replace with System.Text.Json, XmlSerializer or DataContractSerializer into fixed types, and lock down ACLs on any file a privileged process reads.

CWE-502

08

Local services and IPC that trust any caller

Desktop agents often expose a local HTTP listener,.NET Remoting endpoint or window-message handler and trust whatever arrives. Weak origin checks let a web page drive Dell SupportAssist (CVE-2019-3719), and Greenshot deserialized WM_COPYDATA before checking the sender (CVE-2025-59050).

The fix

Authenticate and authorise every local request before parsing it, validate origins exactly rather than by prefix or suffix, and retire.NET Remoting.

CWE-306CWE-346

04 / Sample findings

From recovered evidence
to a fix you can check.

Explore three illustrative .NET reports. Switch to the re-test to see what the next build changes.

01 / 03

Illustrative example · WPF field-service desktop client

A database password in configuration.

The shipped App.config holds a shared SQL Server connection string whose account can read and write every customer record, and the client connects to the database directly. Anyone with an installed copy can connect with SQL Server Management Studio and export the full customer table.

Evidence comes first

The full teardown records the recovered artifact, its business impact and a fix for your stack.

Recovered artifactEXAMPLE / 01
<!-- FieldOps.exe.config -->
<connectionStrings>
  <add name="Main"
       connectionString="Server=sql01.corp.example;Database=Ops;User Id=svc_fieldops;Password=••••••7Qx;" />
</connectionStrings>

These fictional examples show the report format. All names, hostnames and credentials are made up. They do not describe real customer work.

05 / On the record

The risk
has a history.

These reports show what other researchers found in released software. Each links to the original source.

  1. 2023

    One static secret across report files

    Researchers documented CVE-2023-25263 in Stimulsoft Designer. Decompilation exposed a shared secret used to protect database connection strings, showing why embedding the decryption secret in a client limits confidentiality.

    cves.at write-up for CVE-2023-25263 (opens in a new tab)
  2. 2019

    A local support agent exposed a route to code execution

    Bill Demirkapi’s analysis of Dell SupportAssist used the readable .NET services to investigate origin validation and download handling. Dell published a security advisory addressing the reported vulnerability.

    Bill Demirkapi, 'Remote Code Execution on most Dell computers' (2019) (opens in a new tab)

Before the review

.NET
audit questions.

Compare pricing and scope, or read how we verify findings.

What does a .NET security teardown inspect?

Managed assemblies preserve useful structure: types, methods, names and metadata. A decompiler can make that structure readable again. We inspect the assemblies, configuration and native boundaries in your release. An engineer verifies the findings, explains their business impact and writes fixes for your stack.

Can .NET assemblies be decompiled after release?

Managed assemblies can preserve readable logic and useful names. Obfuscation can change the effort required without guaranteeing secrecy. A review checks the assemblies, embedded resources and configuration for consequential exposure, including credentials and client-side licence decisions.

What does a .NET teardown report include?

The paid teardown includes recovered evidence, findings ranked by business impact and a fix written for your stack. Audit and re-test adds a same-budget check of the updated build and a dated statement. The free first look reports counts and excludes recovered code and credential values.

Page updated . Samples are illustrative; public research is attributed above.

Your build. Your evidence.

See what
yours gives away.

Start with counts of exposed keys, files and readable logic. A full teardown adds verified evidence, business impact and a fix written for your stack.

Only software you own or are authorised to submit. No code or credential values in the free counts-only result.