The mathmain package on npm contains malicious code that compromises any computer on which it is installed or running. The compromise is severe enough that all secrets and keys on the affected system should be rotated immediately from a separate, trusted machine. Removing the package alone does not guarantee removal of all malicious software, as full control may have been given to an attacker.