frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Obfuscation is not security – AI can deobfuscate any minified JavaScript code

https://www.afterpack.dev/blog/claude-code-source-leak
23•rvz•1h ago

Comments

ryandrake•52m ago
I successfully did this the other day. There was a web app I used quite a bit with an annoying performance issue (in some cases its graphics code would spin my CPU at 100% constantly, fans full-blast). I asked Claude to fetch the code and fed it a few performance traces I took through Firefox, and it cut through all those obfuscated variables like they weren't even there, easily re-interpreting what each function actually did, finding a plausible root cause and workaround (which worked).

Can you generally trust it to de-obfuscate reliably? No idea. My sample size is 1.

josephg•39m ago
I did something similar yesterday. I'm playing a little idle game, and wanted to optimise my playthrough. I pointed claude at the game's data files, and in a few short minutes it reverse engineered the game data and extracted it to CSV / JSON files for analysis.

In this case, it turned out the data - and source code for the game - was in a big minified javascript file. Claude extracted all the data I wanted in about 2 minutes.

durzo22•52m ago
write your blog yourself if ppl are supposed to read it not this llm slop
notepad0x90•49m ago
isn't it fair for an article about AI deobfuscating code to be written by AI?
socalgal2•46m ago
If it’s too hard to read ask your ai to deobfuscate it :D
Gigachad•46m ago
I expect it these days but it’s still disrespectful slop pushing out real work.
Retr0id•43m ago
Not really, no.
gertop•24m ago
Fair? No. Par for the course? Unfortunately yes.
notepad0x90•50m ago
It's a cat and mouse game, it provides the desired level of security for people who use it. It isn't used to prevent people from finding vulnerabilities (not mostly at least). It's used to deter competition, prevent clones of the application,etc.. it's make-shift "DRM". There are ways to defeat even AI-assisted analysis running in a proper browser. But I think it's not a good idea to give anyone ideas on this subject. proper-DRM is hellish enough.

Was there ever an obfuscated JS code a human couldn't reverse given enough time? It's like most people's doors, it won't stop someone with a battering ram, but it will ideally slow them down enough for you to hide or get your guns. in this case, it won't even slow them down, until it does (hence: cat and mouse game).

0x3f•49m ago
The _any_ part is not clear to me. Obfuscation is an arms race. Reverse engineers have always been tool-assisted. Now they just have new tools and the obfuscators need to catch up.
socalgal2•47m ago
And read through native code as well
tw04•47m ago
Huh? Their justification for "ofuscation isn't security" is by pointing out that the Claude source wasn't obfuscated, it was minified. And it could be "deobfuscated by claude itself" - even though, again, they said the code wasn't obfuscated.

So I guess, ask Claude to deobfuscate some code that's ACTUALLY OBFUSCATED if you want to claim obfuscation provides ZERO additional security.

>We analyzed this file at AfterPack as part of a deobfuscation case study. What we found: it's minified, not obfuscated.

>Here's the difference. Minification — what every bundler (esbuild, Webpack, Rollup) does by default — shortens variable names and removes whitespace. It makes code smaller for shipping. It was never designed to hide anything.

>Here's where it gets interesting. We didn't need source maps to extract Claude Code's internals. We asked Claude — Anthropic's own model — to analyze and deobfuscate the minified cli.js file.

maxwg•46m ago
JS was never really obfuscated - it wasn't the goal of minification. Minifiers especially struggle with ES6 classes/etc, outputting code that is almost human readable.

Proper obfuscation libraries exist, typically at the cost of a pretty notable amount of performance that I'd wager most are not willing to sacrifice

And like even the best of client-side DRM, everything can be reverse engineered. All the code has been downloaded to the user's machine. It's one of the (IMO terrible) excuses for the SaaSification of all software

Retr0id•42m ago
Minification is not obfuscation and obfuscation is not security, but no amount of deobfuscation will recover the comments in the source, which are often more insightful than the source itself.
TurdF3rguson•38m ago
If the comments were in the original source that the model trained on... Then sure, those are recoverable too.
layer8•40m ago
> AfterPack approaches this differently. Instead of layering reversible transforms on top of each other, AfterPack uses non-linear, irreversible transforms — closer to how a hash function works than how a traditional obfuscator works. The output is functionally equivalent to the input, but the transformation destroys semantic meaning in a way that cannot be reversed — even by AfterPack itself. There's no inverse function. No secret key that unlocks the original.

That’s probably fun when trying to analyze bugs occurring in production. :)

Retr0id•38m ago
What they describe is snake oil. Even if you assume it is mathematically possible in the general case (which is debatable!), it'll likely have a huge performance overhead. See https://en.wikipedia.org/wiki/Indistinguishability_obfuscati...
throwup238•28m ago
What they’re describing is a polymorphic virus. A great analogy for SV startups.

It works great in assembly, not so much for higher level languages.

sublinear•36m ago
> No one talks about this. There's no VentureBeat headline about GitHub shipping email addresses in their JS bundles. No Hacker News thread about internal URLs exposed in Anthropic's CDN scripts

That's a huge sign none of that information is truly sensitive. What is being implied here?

> AI Makes This Urgent

No it doesn't. This is blogspam and media hype nobody is interested in. Unless the demographics have really shifted that much in the last few years, HN is one of the worst places to attempt this marketing style.

motohagiography•30m ago
slight historical note, it might be interesting to see how the brief period of "white box cryptography" stands up to AI today. At the time there were a few companies with products that had trouble finding fit (for straightforward security reasons) but they were essentially commercial obfuscators that made heavy use of lookup tables, miniature virtual machines, and esolang concepts that worked mainly against human reverse engineers.

An example was this early AES proposal: https://link.springer.com/chapter/10.1007/3-540-36492-7_17

Retr0id•19m ago
Whitebox cryptography is widely deployed, in browser plugins for DRM.

Web Bloat Tracker – How much data do popular websites load?

https://bloat-tracker-website.cebert.workers.dev/
1•rmason•2m ago•0 comments

Magnitude 7.4 earthquake strikes in Indonesia, sparking tsunami alert

https://www.theguardian.com/world/2026/apr/02/magnitude-78-earthquake-strikes-in-indonesia-sparki...
2•teleforce•6m ago•0 comments

All Travelers Will Need Clear Carry-On Bags Starting This Summer

https://upgradedpoints.com/news/tsa-announces-new-clear-bag-policy/
1•nothrowaways•8m ago•0 comments

MCP safety is a big concern, so we created BDSMCP, a proposal to make MCP safer

https://www.maxockner.com/bidirectional-secure-mcp
1•mercury24aug•9m ago•2 comments

With the Artemis II Mission, the Lunar Land Grab Begins

https://thewalrus.ca/with-the-artemis-missions-the-lunar-land-grab-begins/
1•ireflect•11m ago•0 comments

Claude Code Cache Bug Analysis

https://github.com/ArkNill/claude-code-cache-analysis
2•0x1997•14m ago•1 comments

Nteract: Native Interactive Notebooks

https://www.nteract.io/
1•ayhanfuat•15m ago•0 comments

Devil worshippers are using AI, exorcists are warned

https://www.thetimes.com/world/europe/article/ai-devil-worshipping-exorcists-9f7hqht36
1•noleary•16m ago•0 comments

Changing the Default Style in Slint – Deprecating Native-Looking Styles

https://slint.dev/blog/default-native-style-change
1•dabinat•18m ago•0 comments

Renoir, Cézanne and Matisse art among items stolen in Italian job

https://www.bbc.com/news/articles/cn4vw2xmpzzo
1•gmays•19m ago•0 comments

The future of work is world models

https://www.strangeloopcanon.com/p/the-future-of-work-is-world-models
1•walterbell•20m ago•0 comments

Show HN: Download Instagram Reels without login

1•ttdownsite•21m ago•0 comments

Why LLM-Generated Passwords Are Dangerously Insecure

https://www.irregular.com/publications/vibe-password-generation
1•zdw•25m ago•0 comments

The Beginning of Programming as We'll Know It

https://bitsplitting.org/2026/04/01/the-beginning-of-programming-as-well-know-it/
1•zdw•25m ago•0 comments

Garry's Mod successor s&box arrives on Steam on April 28 – PC Gamer

https://www.pcgamer.com/games/garrys-mod-successor-s-and-box-finally-arrives-on-steam-on-april-28/
1•evo_9•26m ago•0 comments

Show HN: Sixteen year trends in AI doom on HN

https://hn.ai-doom.cc/
1•easygenes•27m ago•0 comments

LIGO data hints at supernovae so powerful they leave nothing behind

https://arstechnica.com/science/2026/04/black-hole-mergers-put-limits-on-star-destroying-supernovae/
2•nobody9999•30m ago•0 comments

Websudoku

https://websudoku.me
1•pythonlord•31m ago•1 comments

Ship Elevators [video]

https://www.youtube.com/watch?v=O3X8attAerw
1•fuzzfactor•35m ago•1 comments

BUSA-TLS: Mac PSK Derivation for TLS 1.3 Using 2 Live Crew's "Banned in the USA"

https://www.rfc-editor.org/info/rfc9949
1•kmstout•36m ago•0 comments

Real Artists Ship

https://dan.bulwinkle.net/blog/real-artists-ship/
1•pilingual•38m ago•0 comments

Quantum computing bombshells that are not April Fools

https://scottaaronson.blog/?p=9665
2•Strilanc•40m ago•0 comments

Microwave hearing: thermoacoustic auditory stimulation by pulsed microwaves

https://pubmed.ncbi.nlm.nih.gov/4833827/
2•CGMthrowaway•40m ago•1 comments

Clone any web app in minutes

https://twill.ai/clone
3•danoandco•43m ago•0 comments

Peer-Preservation in Frontier Models

https://rdi.berkeley.edu/blog/peer-preservation/
1•simonpure•46m ago•0 comments

One of Apple's First Employees Looks Back at 50 Years

https://www.nytimes.com/2026/04/01/technology/apple-employee-50-years.html
2•tambourine_man•48m ago•1 comments

CougarLLM: A Global Inference Server

https://www.tigrisdata.com/blog/cougarllm/
2•excerionsforte•51m ago•0 comments

The Camps Promising to Turn You–Or Your Son–Into an Alpha Male

https://www.newyorker.com/magazine/2026/04/06/the-camps-promising-to-turn-you-or-your-son-into-an...
2•petethomas•54m ago•1 comments

My GitHub Suspension, a Thread

https://bsky.app/profile/rogerioromao.dev/post/3migx73xd2227
3•OuterVale•56m ago•2 comments

Do Graduate Degrees Pay Off?

https://www.peer-center.org/research/do-graduate-degrees-pay-off
2•gnabgib•56m ago•0 comments