The npm package 'x402-legacy' versions 3.0.0 and 5.0.0 contain malicious code that communicates with domains linked to malicious activity and executes commands associated with harmful behavior. Any system with this package installed should be considered fully compromised, and all secrets and keys stored on that system must be rotated immediately from a secure environment. Removing the package alone may not eliminate all malicious software introduced by it.