The first step the analyst should take to prevent further spread of the mining operation is to quarantine all the impacted hosts for forensic analysis. Quarantining the hosts can help isolate them from the network, and prevent them from communicating with other devices or servers that may be part of the mining operation. Forensic analysis can help identify the source and scope of the infection, and provide clues for remediation and recovery.