Back to articles

Tag archive

#nebula

R
Nov 16, 2026

Renaming flows through your expression trees

A lambda like c => c.Name does not compile to a method body when its type is Expression<T> — it compiles to factory calls that encode the property access as a metadata token, not a string. Renaming rewrites that token with the member, so the tree still resolves and the compiled lambda still runs. The trap is Member.Name: it returns the live metadata name, so any library that derives a column, a JSON key, or a validation message from x => x.Prop silently starts emitting the obfuscated name. Here is the exact IL, why renaming reaches inside the tree, and how to keep a name-derived contract stable.

Nov 16, 20267 min read0 reactions0 comments
W
Nov 16, 2026

Why a stored type name breaks after renaming

A plugin app that resolves "Acme.Exporters.PdfExporter, Acme.Exporters" with Type.GetType and Activator.CreateInstance works in debug and throws in production the moment you obfuscate it. The reason is a mismatch between a metadata token and a plain string — and the fix is a rename-safe registry that keeps zero names.

Nov 16, 20266 min read0 reactions0 comments
S
Nov 16, 2026

Stopping a memory dump from recovering your assembly

Renaming and string encryption are undone if an attacker just dumps your running process back to disk. How Nebula.NET anti-dump relocates and scrubs the in-memory PE and metadata headers so a carved image is unusable — with the real offsets, C#, an SVG of the carve path, and the honest limits.

Nov 16, 20267 min read0 reactions0 comments
H
Nov 16, 2026

How exception handlers hide .NET control flow

A decompiler rebuilds your if/else from the IL branch instructions it finds. Routing a decision through a thrown-and-caught sentinel moves that edge into the exception-handling clause table, where structured decompilation breaks down. Here is the real IL, why it defeats a static read, and the runtime cost that forces you to use it sparingly.

Nov 16, 20267 min read0 reactions0 comments
H
Nov 16, 2026

Hiding the integer math that gates your software

Renaming hides what a value is called; MBA hides what it computes. This deep-dive shows how Nebula rewrites a + b into equivalent bitwise-arithmetic tangles that defeat constant folding and symbolic execution — with real C#, representative IL, the identities, the config, and the honest cost.

Nov 16, 20268 min read0 reactions0 comments
G
Nov 16, 2026

Getting the ReadyToRun and obfuscation order right

A ReadyToRun build is a dual image — your IL plus a native copy of it, compiled by crossgen from whatever the IL looked like at publish time. Obfuscate after crossgen and that native copy is a clean, decompiler-independent record of your original logic; it also invalidates the R2R image so the runtime quietly falls back to JIT. Here is why ordering decides everything, and how to wire Nebula so crossgen compiles protected IL.

Nov 16, 20268 min read0 reactions0 comments
O
Nov 16, 2026

Obfuscating an MSBuild custom task without breaking it

A custom MSBuild task is the mirror image of a source generator. The compiler finds a generator by attribute, so you can rename the whole class freely; MSBuild finds a task by the literal type-name string written into a UsingTask element, and reads its parameters off public property names, so both are a hard external contract that renaming must not touch. This post reads what the MSBuild engine actually reflects on when it runs your task, draws the exact line between the small pinned surface and the valuable logic that renames freely, and shows the Nebula config and the verification build that catches the one failure mode that is silent.

Nov 16, 20269 min read0 reactions0 comments
C
Nov 15, 2026

Can obfuscation hide a .NET connection string?

A connection string, an API key or a signing secret that ships inside your .NET app is recoverable in principle — the process has to use it, so the process has to hold it. This is an honest comparison of the three places a secret hides in a shipped assembly, exactly what Nebula.NET string and resource encryption change about each, where the ceiling is, and the layering that actually keeps a secret out of an attacker''s hands.

Nov 15, 20269 min read0 reactions0 comments