Detecting and Quantifying Malicious Activity with Simulation-based Inference