GHSA-g7gp-762w-7q6h: Malicious code in focashi (npm)
Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Remove
Remove
npm/focashifrom your environment.Remove the focashi package from affected computers; removing it may not remove all malicious software resulting from installation.
- Operational
Rotate all secrets and keys stored on any computer that has the package installed or running, immediately and from a different computer.
Event History
Frequently Asked Questions
Who is exposed to this malicious package?
Any computer where focashi is installed or running should be treated as fully compromised. The affected WhatsApp account session may also be used to silently subscribe the account to attacker-selected WhatsApp channels.
What does exploitation require?
The package must be installed or executed, and the covert subscription behavior runs when its WhatsApp socket connects using the installer's authenticated WhatsApp session. The package sends an authenticated FOLLOW query to attacker-chosen Channel or Newsletter JIDs.
What should responders do immediately?
Rotate all secrets and keys stored on the affected computer immediately, using a different computer. Remove the package, but do not assume removal eliminates all malicious software because outside control of the system may already have been obtained.
How can I investigate whether the package contains the channel-subscription behavior?
Review the WhatsApp socket-layer code for an authenticated w:mex FOLLOW query with query_id 7871414976211147. Target channel JIDs may be concealed as a literal, base64 data, base64 combined with XOR, or a runtime-reconstructed character-code array.