logoalt Hacker News

echelontoday at 2:22 AM4 repliesview on HN

Has anyone used an LLM to deobfuscate compiled Javascript?


Replies

lelanthrantoday at 10:15 AM

> Has anyone used an LLM to deobfuscate compiled Javascript?

Seems like a waste of money; wouldn't it be better to extract the AST deterministically, write it out and only then ask an LLM to change those auto-generated symbol names with meaningful names?

heeen2today at 8:31 AM

yes, but it requires some nudging if you don't want to waste tokens. it will happily grep and sed through massive javascript bundles but if you tell it to first create tooling like babel scripts to format, it will be much quicker.

saagarjhatoday at 7:51 AM

I've used it for hobby efforts on Electron/React Native (Hermes bytecode) apps and it seems to work reasonably well

bitexplodertoday at 2:42 AM

Yep. They are good at it.