Enhancing CryptoGuard’s Deployability for Continuous Software Security Scanning
The current persistence logic of CryptoGuard Remediator primarily focuses on VM and bare-metal hosts, as many cryptojacker samples in our experiments exploit entrypoints specific to these environments. In contrast, CryptoGuard maintains consistently high TPRs even at low FPRs, demonstrating its effectiveness in minimizing disruptions to benign processes while accurately identifying cryptojackers. The TPR (True Positive Rate) for the Sysrv and XMRig classes indicates the proportion of benign processes incorrectly classified as cryptojackers. Additionally, we develop remediation strategies that target the persistence mechanisms employed by cryptojackers. We propose innovative sketch-based and sliding window-based monitoring techniques to efficiently trace syscall patterns of cryptojackers.
Furthermore, widely used benign processes can be explicitly whitelisted to avoid accidental termination. To evade this methodology, advanced cryptojackers might spoof their process names to match those of benign processes, potentially leading to false termination. CryptoGuard detects cryptojackers by tracking process name–PID pairs, which remains effective even when attackers obfuscate their PIDs. We evaluated the overhead of CMS to determine their suitability for cloud environments by measuring the creation time and memory usage for various CMS configurations based on the error rate (ϵ\epsilon) and confidence level (δ\delta). We evaluated whether CryptoGuard introduces significant overhead on benign applications, given that it monitors the syscalls of all processes using eBPF.
Therefore, a pivotal design aspect of CryptoGuard is developing a lightweight method for efficiently collecting host-level features, ensuring minimal impact on system performance. Detecting host-level cryptojackers requires monitoring host-level behaviors, such as syscalls. Given the prevalence of OS-level virtualization instances (i.e., containers) and the coexistence of VMs, deploying heavyweight host-level countermeasures such as antivirus programs and Intrusion Detection Systems (IDS) across all hosts is costly. Our aim is to meet all the requirements outlined in Table 1 to effectively identify and thwart host-based cryptojackers while developing a solution compatible with cloud environments. Additionally, PID obfuscation, which involves periodically mutating PIDs, is commonly employed but not addressed in previous solutions. Several studies (Lachtar et al., 2020; Tanana and Tanana, 2020; Mani et al., 2020; Gomes et al., 2020) have proposed countermeasures against this technique.
To apply CMS features to deep learning models, we transform each CMS into a feature vector. This complexity often requires cloud administrators to manually scan for the original document cryptojackers across an extensive search space, which is time-consuming. Thus, when CryptoGuard detects a suspicious host, analyzing the recent syscalls within the time window Δ​T\Delta T is sufficient to pinpoint a cryptojacker process or container within the host if the window size Δ​T\Delta T is carefully chosen.
In this section, we review existing solutions and evaluate their applicability to detecting and remediating such threats, as well as their suitability for deployment in cloud environments. To date, various countermeasures have been proposed to combat host-based cryptojackers.
Lastly, our model should not be trained on the cloud host to avoid performance overhead. We assume that one or more cryptojackers are operating alongside other processes or containers within a cloud environment, which consists of numerous hosts or VMs. Instead, we employ deep learning models (e.g., CNNs, LSTMs) capable of learning fine-grained temporal dependencies in syscall sequences, enabling robust detection of obfuscated threats.
However, as noted in Section 2, modern cryptojackers often employ PID obfuscation, rapidly changing their process IDs to evade such countermeasures. We now describe the methodologies employed by CryptoGuard to remediate hosts compromised by identified cryptojackers. By applying these deep learning-based classification methods, we can accurately classify each process or container as a specific cryptojacker family based on their syscall sequences. We aim to classify whether a process or container pp belongs to a specific cryptojacker family. Different cryptojacker families exhibit unique syscall patterns, which often require tailored remediation strategies (Section 3.6).
We conducted experiments to evaluate the performance of our deep learning classifiers in detecting cryptojackers. Analyzing syscall patterns requires managing data structures for each process or container, which imposes a high overhead. These behaviors often result in subtle, short-lived syscall patterns that are difficult to capture using classical ML models based on coarse-grained features. A notable incident involved Tesla, where attackers mined more than $3 million through Monero cryptojackers running in public cloud environments (tes, 2018). Since this approach requires collecting cryptojacker samples specific to Kubernetes environments, we leave this aspect for future work.