Thirteen malicious packages on Packagist are injecting spyware into streaming sites to steal crypto wallet seeds from unpatched iPhones. Here's how the attack works and how to protect yourself.
If you run a website that relies on Composer packages, you might want to sit down for this one. Cybersecurity researchers just uncovered a nasty campaign involving 13 malicious theme packages uploaded to Packagist, the go-to repository for PHP developers. These aren't your run-of-the-mill fake libraries, either. They're designed to slip malicious JavaScript into Vietnamese movie and comic streaming sites that install them, with the ultimate goal of stealing crypto wallet seeds from unpatched iPhones.
Here's the kicker: the attack doesn't stop at just one trick. Once the injected code is live on a site, it runs two separate operations against every visitor. The first is a mobile ad-fraud scheme, which quietly generates fake ad clicks and impressions without you ever knowing. The second is a gambling redirect, which yanks unsuspecting users to shady betting platforms. But the real damage happens behind the scenes, where spyware is deployed to target iOS devices that haven't been updated with the latest security patches.
### How the Attack Unfolds
The whole thing starts with a classic supply chain move. Attackers craft theme packages that look legitimate enough to pass a quick review, then upload them to Packagist. Developers building streaming sites for movies or comics in Vietnam, likely searching for a quick way to add a slick theme, pull these packages into their projects. Once installed, the package reaches out and injects JavaScript directly into the site's front-end code.
From there, every visitor to the compromised site becomes a potential victim. The injected script checks the device type and operating system. If it detects an iPhone that hasn't received the latest iOS security update, it triggers the spyware deployment. That's a critical detail, because it shows the attackers are being selective, not just spraying malware at everyone who lands on the page.

### Why Unpatched iPhones Are the Prime Target
You might be wondering why the attackers are so focused on iPhones that aren't patched. The answer is pretty straightforward: unpatched devices have known vulnerabilities that can be exploited reliably. When Apple releases a security update, it typically fixes holes that hackers have already found or that have been disclosed publicly. If you don't install that update, your device remains open to those exact exploits.
For crypto wallet seeds, this is a nightmare scenario. Your wallet seed is essentially the master key to your cryptocurrency. If a hacker gets their hands on it, they can drain your wallet in seconds, and there's no reversing the transaction. The spyware deployed in this campaign is specifically designed to access those seeds, likely by reading clipboard data, intercepting keystrokes, or pulling files from the device's storage.
### What This Means for Developers and Site Owners
If you're a developer who uses Composer packages, this should be a wake-up call. Here are a few things you can do to protect yourself and your users:
- **Audit your dependencies:** Regularly review every package in your composer.json file. If you see something unfamiliar or a package that hasn't been updated in a long time, dig deeper.
- **Check package popularity:** Malicious packages often have very few downloads or stars. If a theme package claims to be popular but has almost no installs, that's a red flag.
- **Stick to trusted sources:** Whenever possible, use well-known packages from reputable maintainers. The convenience of a random theme isn't worth handing your users over to attackers.
- **Keep your own devices patched:** As a developer, you're a target too. Make sure your iPhone and any other devices you use for work are always running the latest operating system updates.
### The Bigger Picture
This campaign is a reminder that the software supply chain is only as strong as its weakest link. A single malicious package can compromise thousands of websites, which then become launching pads for attacks on millions of visitors. The targeting of crypto wallet seeds is particularly concerning because it shows that attackers are following the money, and right now, a lot of money is sitting in cryptocurrency wallets.
For everyday iPhone users, the takeaway is simple: install those updates. It's easy to hit "Remind Me Later" when Apple prompts you to update, but that small delay could be the difference between keeping your crypto safe and losing it all. And for developers, the lesson is to be skeptical of every package you add to your project. A little bit of caution goes a long way.
The researchers who uncovered this campaign haven't released the full list of affected packages yet, but they're urging anyone running streaming sites to check their dependencies immediately. If you think you might be affected, it's worth doing a deep audit of your Composer files today, not tomorrow.