Malicious Code Detected in com.apple.unityplugin.gamecontroller - A Critical Security Concern
Summary
MAL-2025-17313: Malicious code in com.apple.unityplugin.gamecontroller (npm). Affected versions are not published. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The package com.apple.unityplugin.gamecontroller is an npm package designed to integrate game controller functionalities within Unity applications. It is widely used in game development to enhance user interaction through game controllers. However, recent findings have revealed that this package contains malicious code, posing significant security risks to developers and end-users alike.
Vulnerability Detail
The vulnerability stems from the presence of malicious code within the com.apple.unityplugin.gamecontroller package. This code can potentially compromise the integrity of applications utilizing this package, leading to unauthorized access, data breaches, or exploitation of system resources. The malicious nature of the code was identified by security researchers, raising alarms about the safety of applications relying on this package.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall com.apple.unityplugin.gamecontroller
If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
As a temporary workaround, developers can remove the com.apple.unityplugin.gamecontroller package from their projects until a secure version is released. This can be done by executing the command: 'npm uninstall com.apple.unityplugin.gamecontroller'.
Conclusion
The discovery of malicious code in the com.apple.unityplugin.gamecontroller package highlights the importance of vigilance in open-source software management. Developers are urged to update their packages promptly and utilize tools like Vulert to monitor for vulnerabilities effectively.
See every vulnerability recorded for com.apple.unityplugin.gamecontroller →
FAQ
The malicious code is designed to exploit vulnerabilities in applications that utilize this package, potentially leading to unauthorized access and data breaches.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. By using the Vulert playground at Vulert Scanner, you can check if your application is affected without any signup.
Yes, a patched version of the com.apple.unityplugin.gamecontroller package is expected to be released. It is crucial to update to this version as soon as it becomes available.
If immediate updates are not possible, consider removing the package from your project as a temporary measure to mitigate risks.
The vulnerability was discovered by security researchers associated with Amazon Inspector, who identified the malicious code within the package.