A trusted JavaScript library was weaponized overnight, spreading a sophisticated remote access trojan through a hidden npm dependency.