Skip to main content
NewsPublished

New JavaScript obfuscation technique: Formatting a script can turn it into a different program

Source Reddit ExploitDev

0

Discussion

A new JavaScript obfuscation technique has been demonstrated where formatting changes to a script can transform it into a completely different program. This technique leverages 186 different methods to alter script behavior through formatting, which can be tested via provided online tools and demos. The technique is primarily a research and development insight into JavaScript code manipulation rather than a direct vulnerability or exploit in existing software.

r/ExploitDev (opens in a new tab)u/trustsigRobert0 points0 comments

A formatter, minifier or deobfuscator can be made to turn one script into another.

You can go try out all 186 techniques with this script: https://divergence.trustsig.eu/

Or try the Tetris-Snake demo here: https://divergence-game.trustsig.eu/

Techical breakdown: https://trustsig.eu/blog/javascript-divergence/

References

Community reviews

Loading reviews…