Remix.run Logo
echelon 8 hours ago

Has anyone used an LLM to deobfuscate compiled Javascript?

lelanthran a minute ago | parent | next [-]

> 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?

heeen2 2 hours ago | parent | prev | next [-]

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.

saagarjha 2 hours ago | parent | prev | next [-]

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

bitexploder 8 hours ago | parent | prev [-]

Yep. They are good at it.