Definition
What is dead code injection?
Dead code injection is an obfuscation technique that adds meaningless code to an application without changing its behavior. The injected code is either unreachable or has no observable effect.
When an attacker decompiles your application, they want to find the few methods that matter. Dead code injection buries those methods in a much larger volume of code that looks equally plausible.
The application runs exactly the same, because the injected code is inert. What changes is the cost of analysis: an attacker can no longer skim the code, they have to evaluate every block to learn which ones are real.
