Cybercriminals are hijacking trusted security tools to infiltrate networks and sell access to ransomware gangs.