Security notice: malicious JavaScript observed in Packagist dev version dev-drewroberts/feature/test-case #49
Unanswered
socket-threat-research-team
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Drew,
Socket threat research team here. We identified what appears to be malicious obfuscated JavaScript appended to
tailwind.jsin the Packagist dev versiondev-drewroberts/feature/test-caseofroberts/leads, which maps to the GitHub branchdrewroberts/feature/test-case.The suspicious code appears after the normal Tailwind config and is also visible in the package file view here:
https://socket.dev/composer/package/roberts/leads/files?version=dev-drewroberts%2Ffeature%2Ftest-case&path=roberts-leads-6c5c3c7%2Ftailwind.js (also in https://github.com/roberts/leads/blob/drewroberts/feature/test-case/tailwind.js).
Based on our analysis, this appears to be a blockchain-C2 JavaScript malware loader. The loader retrieves encrypted payloads via TRON/Aptos/BSC infrastructure, decrypts them, executes them with
eval(), and can spawn a detached hidden Node process.We scanned the available Git refs/tags and believe the malicious code is isolated to this dev/test branch and does not appear in the stable tagged releases. This looks like a poisoned branch or repository/account compromise workflow.
We are opening this public issue to make sure you are aware and to preserve a clear reporting record. We will also send details privately to the security contact listed for the repository.
Recommended immediate actions:
drewroberts/feature/test-casebranch and the corresponding Packagist dev version.Thank you for your attention to this,
Socket Threat Research team
Beta Was this translation helpful? Give feedback.
All reactions