.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
- .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.
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.
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.
Configuration files
App.config / <app>.exe.config (including <connectionStrings>), appsettings.json, plus *.runtimeconfig.json and *.deps.json, which list the runtime and every dependency and version.
Plain XML/JSON next to the executable (or inside the single-file bundle). Microsoft warns that connection strings in plain text, or embedded in code, can be read, and recommends Windows auth or encrypted config.
Indicative readability. Build settings, obfuscation and access to a running device change the effort.
Embedded resources and satellite assemblies
Images, localized strings, UI markup and any files the developer marked as embedded resources (sometimes certificates, license files or default config).
Listed and exported directly by ILSpy, dnSpyEx and dotPeek alongside the code.
Indicative readability. Build settings, obfuscation and access to a running device change the effort.
Single-file bundle (PublishSingleFile)
Managed DLLs and runtime config files packed into one executable; native runtime libraries stay separate unless IncludeNativeLibrariesForSelfExtract is set. In extraction modes, files are unpacked to %TEMP%/.net (Windows) or $HOME/.net before start.
Packaging, not protection: Microsoft's own docs say single-file apps 'can be inspected using the ILSpy tool', which shows every bundled file and the contents of the managed assemblies.
Indicative readability. Build settings, obfuscation and access to a running device change the effort.
ReadyToRun (R2R) assemblies
Ahead-of-time compiled native code for faster startup, alongside the original IL.
Still decompilable: Microsoft states R2R binaries 'contain both intermediate language (IL) code, which is still needed for some scenarios, and the native version of the same code'.
Indicative readability. Build settings, obfuscation and access to a running device change the effort.
Native AOT executables
A self-contained native binary compiled from IL at publish time, with no JIT at runtime and a stripped-down runtime included.
Much harder: no IL to decompile, so analysis needs native disassemblers, though strings and constants remain. Adoption has limits (no dynamic assembly loading, no Reflection.Emit, no C++/CLI, no built-in COM on Windows, trimming required).
Indicative readability. Build settings, obfuscation and access to a running device change the effort.
Xamarin / .NET MAUI Android packages (brief)
The same managed assemblies, shipped inside the APK; newer Xamarin builds pack them into an assemblies.blob store.
Unpack the store (e.g. with pyxamstore) and the DLLs open in the same.NET decompilers.
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
Map.
Finds the entry points, permissions, servers and what talks to what.
Tools used in this stage
- inspect_managed_artifact
- project_managed_application_graph
- inspect_managed_native_boundaries
Read.
Reads code and maps recoverable names, logic and sources.
Tools used in this stage
- inspect_managed_members
- import_managed_reconstruction
- compare_managed_members
Hunt.
Searches for keys, endpoints, checks and content, and ranks them by cost.
Tools used in this stage
- search_strings
- find_xrefs_to_name
- trace_application_feature
Run.
Launches the build and watches it, to confirm what the reading suggests.
Tools used in this stage
- capture_process_scenario
- observe_native_calls
Prove.
Packs the evidence for the engineer's check and the re-test.
Tools used in this stage
- verify_reconstruction
- export_evidence_bundle
- unpack
extract_artifact Setup.exesingle-file bundle, 48 assemblies
- map
inspect_managed_artifact Ledger.Core.dllIL with full metadata, no obfuscation
- read
import_managed_reconstructionreadable C#, 1,140 types
- hunt
search_strings "Password=|Server="a SQL connection string with a password
- hunt
find_xrefs_to_name LicenceKey.Validateoffline check, the key format is in the code
- hunt
find_xrefs_to_name BinaryFormatterproject files deserialised unsafely
- run
capture_process_scenariotrial ends on a date the user can change
- prove
export_evidence_bundle5 findings, ranked, sent to the engineer
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.
01Full 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.
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.
02Hard-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.
Remove embedded credentials, use per-user authentication against a backend, rotate everything that shipped, and add a secret scan of release builds to CI.
03Hard-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).
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.
04Database 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.
Put an authenticated API between client and database, or use integrated Windows authentication with least-privilege accounts; never ship a shared SQL password.
05Licence 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.
Use asymmetrically signed licences verified with a public key only, and gate high-value features or data behind server-side activation checks.
06Weak 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.
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.
07BinaryFormatter 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.
Replace with System.Text.Json, XmlSerializer or DataContractSerializer into fixed types, and lock down ACLs on any file a privileged process reads.
08Local 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).
Authenticate and authorise every local request before parsing it, validate origins exactly rather than by prefix or suffix, and retire.NET Remoting.
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.
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.
The full teardown records the recovered artifact, its business impact and a fix for your stack.
<!-- 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.
- 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) - 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)
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.