python-use-by-ransomware-macos
Description
This query was originally published in the threat analytics report, EvilQuest signals the rise of Mac ransomware. As of the time of this writing (October 2020), ransomware designed to target macOS is relatively rare. EvilQuest is one of the few examples of this kind of malware on the platform. The query below can help locate an attempt to run Python in service of malicious activity by a remote operator. The command the query searches for is associated with, but not definitely indicative of, EvilQuest infections. Other queries related to EvilQuest ransomware can be found under the See also section below.
Query · kql
union DeviceFileEvents, DeviceProcessEvents | where Timestamp >= ago(7d) | where ProcessCommandLine contains "EIKKEIKK" and ProcessCommandLine contains "python"