Protect your .NET desktop app from being hacked
2 min readDec 29, 2020
Why protection matters
- Harder to reverse-engineer;
- Protect intellectual property;
- Prevent tampering;
- Code Flow Obfuscation, the final result are the same but is difficult to understand why code takes some direction;
- Anti-Debug, most obfuscators protect against debug attachers;
- Some obfuscators also optimize your code (remove unuseful metadata, unused code, compression);
- Sign Assemblies (prevent a malicious user replaces an assembly in your program with a different assembly);
- Data transformation, renaming variables, class names, string values…
Strategy
- Sign Assemblies
- Code Obfuscator
Sign Assemblies
This is really important to avoid potential security vulnerabilities in your software.
Strong-name signing gives a software component a globally unique identity, that consists of the assembly’s identity (simple text name, version number, and culture information), plus a public key token and a digital signature.