Ghost Campaign Uses Fake npm Install Logs to Phish sudo Passwords and Deploy a RAT

· Original article ↗

Summary

ReversingLabs found malicious npm packages that mimic install logs to phish for sudo passwords, then retrieve and run a RAT designed to steal crypto wallets and sensitive data. Payload details came from Telegram or teletype[.]in.

Key points

  • ReversingLabs identified seven malicious npm packages across multiple versions, published by the npm user “mikilanjillo”; react-state-optimizer-core is one example.
  • The packages display fabricated installation messages, random delays and, in some versions, progress bars to disguise malicious activity.
  • Fake error prompts trick users into entering sudo passwords, which the packages use to execute the final payload with elevated privileges.
  • The packages retrieve payload URLs and decryption-key material from a Telegram channel; [email protected] instead uses a post on teletype[.]in.
  • The final-stage RAT is designed to steal crypto wallets and sensitive data and to receive and execute commands from a C2 server.
  • ReversingLabs says its Spectra Assure system flagged the suspicious activity, which researchers then confirmed as malicious.
  • Similarities to a package discussed by JFrog raise the possibility that the campaign was an early test run or first wave; ReversingLabs presents this as uncertain.

Article Details

Attack Vectors
  • Malicious npm packages displayed fabricated installation logs, progress indicators, and delays to conceal their behavior.
  • The packages prompted users to enter their sudo password under false pretenses, then used the phished password to execute a downloaded final-stage payload with elevated privileges.
  • The packages retrieved a payload URL and part of its decryption key from a Telegram channel; one package version instead used a teletype.in post. The downloaded payload was decrypted and executed.
  • The final-stage RAT was designed to steal crypto wallets and sensitive data and to receive and execute commands from a C2 server.
Defensive Notes
  • Treat unexpected sudo-password prompts during npm package installation as suspicious, especially when accompanied by fabricated installation output.
  • ReversingLabs reported using Spectra Assure to detect the suspicious package behavior and marking the packages as malicious.

MITRE ATT&CK

Vendors

Products

Related Articles