Your antivirus is watching the front door. Supply chain attacks come in through the loading dock.
That’s exactly what happened when a popular mobile game launcher quietly started serving malicious JavaScript to every user who opened it. No phishing link. No suspicious download. Just launch the app like any other day, and your browser passwords, session tokens, and local files are already walking out the door.
The root cause wasn’t a sophisticated zero-day exploit. It was an expired domain that nobody renewed.
How a Lapsed Domain Became a Weapon
The launcher in question pulled in a JavaScript file from a third-party analytics domain at startup — a common pattern in web-based desktop apps. That domain had been sitting quietly in the codebase for years, doing routine statistical work. Then it expired.
Domain hunters monitor expiry lists constantly. The moment a domain lapses, automated tools flag it, and within hours someone else can register it. In this case, a hacker did exactly that. They stood up a convincing-looking site on the same domain, waited for the launcher’s next launch event — a major anniversary celebration — and replaced the legitimate analytics script with malicious code.
Every user who opened the launcher that day downloaded and executed attacker-controlled JavaScript. The malware, built with LuaJIT, could read files off the hard drive, touch Windows registry settings, and monitor Chrome in real time to harvest whatever credentials you typed.
This is a textbook supply chain attack: instead of compromising your machine directly, the attacker compromises something your trusted software depends on.
Why These Attacks Are So Effective
Think about how much your computer trusts software you’ve already installed. It doesn’t re-verify every network call an app makes. It assumes the app is doing what it always did.
That trust is exactly what gets weaponized. Some other well-known examples of the same attack surface:
- npm package hijacking — a maintainer’s account gets taken over, a malicious update ships to thousands of downstream projects.
- Malicious Steam games — games bundled with crypto-wallet stealers, targeting users who assume Steam’s store means safety.
- CDN script tampering — websites that load jQuery or analytics libraries from public CDNs can be poisoned if the CDN or the source domain is compromised.
The common thread: legitimate software, legitimate install path, malicious payload hiding inside.
How to Check If You Were Affected (General Approach)
If you think an app you use may have been compromised in a similar way, here’s a reasonable triage process:
- Check application log files. Most launchers write logs. Look for unexpected outbound domains or unusual script-loading entries around the suspected timeframe.
- Look for dropped files. Malware often plants a persistent file somewhere on disk. Search for recently created files in
%AppData%,%Temp%, and the app’s own install folder. - Review browser data usage. Windows Settings > Network shows per-app data transfer. If a browser you barely used shows a spike on a specific day, something was feeding data out through it.
- Assume the worst, act accordingly. Change every password stored in your browser. Rotate API keys and secret tokens. If you use a password manager that wasn’t browser-based, you’re in better shape — but rotate anyway.
There’s no reliable way to know exactly what was exfiltrated. The practical response is to treat all locally stored credentials as compromised and reset from there.
The Developer Takeaway
If you build software — even side projects — a few habits can prevent you from accidentally becoming the attack vector:
Audit your external dependencies. Every domain your app phones home to is a potential attack surface. If you’re pulling in a script from a third-party URL, that URL needs to be as carefully maintained as your own codebase.
Set calendar alerts for domain renewals. Auto-renew is good. A reminder 60 days out is better. The gap between expiry and hijack can be measured in hours.
Use Subresource Integrity (SRI) for external scripts. For web-based apps, SRI lets you specify a cryptographic hash for any external script. If the file changes — because someone swapped it — the browser refuses to run it. It’s one HTML attribute and it would have stopped this specific attack cold.
Isolate your development environment. Building things on the same machine you use for gaming, banking, and social media means a compromised dev tool can reach everything. A cheap VPS or a dedicated virtual machine keeps your build environment walled off.
The Uncomfortable Reality
Software supply chains are long and most of the links are invisible to end users. You can vet the app you install. You can’t easily vet every domain that app trusts, every library that domain serves, or every maintainer who has commit access to that library.
What you can control: minimize what’s stored in your browser, use a dedicated password manager with two-factor auth, and treat any credential that touched a compromised machine as already gone. That’s not paranoia — it’s just accurate threat modeling.
The hacker in this case didn’t beat a security team. They waited for someone to forget to pay a $15 renewal fee.