The Blueprint of a North Korean Attack on Open-Source (casco.com)

by brene 12 comments 32 points
Read article View on HN

12 comments

[−] brene 38d ago
Author here. We were analyzing a compromised contributor account targeting better-auth when we noticed something interesting about the attack vector. Most coverage of supply chain attacks focuses on the "what happened" but I wanted to document the "how it actually works" with the deobfuscated code.

Wwo things stood out: 1. hiding the payload in next.config.mjs is clever because GitHub's UI truncates long lines so the malicious string is literally invisible when scrolling through the file. second, storing the c2 payload on binance smart chain means theres no server to take down. The axios attack was mitigated by removing the GitHub-hosted payload. This one can't be.

2. found 30+ repos with the same signature string. Pretty sure there's way more we didn't catch with basic string matching.

happy to answer questions about the deobfuscation process or the c2 protocol analysis.

[−] rho138 38d ago
Your website fingerprints devices so hard it throws a warning after rendering content.
[−] RugZug 37d ago
The website loads for a second and then

  Application error: a client-side exception has occurred while loading casco.com (see the browser console for more information).
[−] iannacl 38d ago
The blockchain angle to circumvent takedowns of the payload hosting here is really interesting.
[−] rafaveira3 38d ago
break one maintainer, own the ecosystem. btw, beautiful graphs