Dead Code Injection

Potency Medium
Resilience Medium
Cost Low
Tags: dead code, injection, obfuscation, control flow


Dead Code Injection randomly injects dead code all over your program. This will make your program's control-flow more complex, thus harder to understand, without changing the original program's behavior. Dead code is generated using statements and expressions found in the source code that are wrapped in conditional statements hard to evaluate by a human (also known as opaque predicates). Dead Code will not be injected inside loops to avoid performance issues.

Code Annotation Example

// @jscrambler enable deadCodeInjection

Browser Compatibility

Browser Compatible Versions Tested Versions Notes
Chrome 80+ 80+
Firefox 80+ 80+
Internet Explorer 8+ 8+
Microsoft Edge 111+ 111+
Safari 12.1+ 12.1+

API Parameters


  "keys": {
    "accessKey": "XXXXXX",
    "secretKey": "YYYYYY"
  "applicationId": "ZZZZZZ",
  "params": [
      "name": "deadCodeInjection"