Dead Code Injection

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

Description

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 90+ 90+
Internet Explorer 8+ 8+
Microsoft Edge 116+ 116+
Safari 13.1+ 13.1+

API Parameters

Example:

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