Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Has anyone used an LLM to deobfuscate compiled Javascript?


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


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.


> but if you tell it to first create tooling like babel scripts to format, it will be much quicker.

Can you expand on this? Is that existing tooling for deminification?


for me it was custom scripts looking for data in minified bundles and refactoring for easier protocol reverse engineering, e.g. https://github.com/echtzeit-solutions/monsgeek-akko-linux/bl...


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


Yep. They are good at it.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: