Skip to main content

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

0
Medium
Published: 10/17/2026 (10/17/2026, 14:00:28 UTC)
Source: Reddit ExploitDev

Description

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.

Reddit Discussion

r/ExploitDev·posted by u/trustsigRobert
00

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/

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/17/2026, 19:04:13 UTC

Technical Analysis

This security news reports on a novel JavaScript obfuscation approach where applying formatting, minification, or deobfuscation processes to a script can cause it to execute as a different program. The technique involves 186 distinct methods to achieve this divergence, allowing a single script to morph into multiple behaviors depending on how it is processed. Demonstrations and technical breakdowns are available on the referenced websites, illustrating the concept and its implications for code analysis and security tooling.

Potential Impact

The impact is primarily on code analysis, reverse engineering, and security tooling that rely on formatting or deobfuscation to understand JavaScript code. This technique can potentially evade detection or cause misinterpretation of script behavior by automated tools. However, there is no direct evidence of active exploitation or vulnerabilities in software products. The technique may complicate threat detection and forensic analysis but does not itself constitute a software vulnerability.

Defensive Guidance

No direct remediation or patch is applicable as this is a research demonstration of a code obfuscation technique rather than a software vulnerability. Security practitioners should be aware of this technique's potential to evade static analysis and consider enhancing dynamic analysis or behavioral detection methods. No vendor advisory or official fix is available or required.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Source Type
reddit
Subreddit
ExploitDev+pwned+hacking
Reddit Score
0
Discussion Level
minimal
Content Source
reddit_link_post
Post Type
link
Newsworthiness Assessment
{"score":35,"reasons":["external_link","established_author","recent_news"],"isNewsworthy":true}
Has External Source
true
Trusted Domain
false

Threat ID: 6ad3c6a92cdf04f65651f5cf

Added to database: 10/17/2026, 19:04:09 UTC

Last enriched: 10/17/2026, 19:04:13 UTC

Last updated: 10/18/2026, 03:48:29 UTC

Views: 10

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses