{"id":3173,"date":"2026-11-27T14:05:22","date_gmt":"2026-11-27T14:05:22","guid":{"rendered":"https:\/\/www.carlochow.dk\/?p=3173"},"modified":"2026-11-27T14:05:22","modified_gmt":"2026-11-27T14:05:22","slug":"cryptoguard-lightweight-hybrid-detection-and-response-to-host-based-cryptojackers-in-linux-cloud-environments","status":"publish","type":"post","link":"https:\/\/www.carlochow.dk\/index.php\/2026\/11\/27\/cryptoguard-lightweight-hybrid-detection-and-response-to-host-based-cryptojackers-in-linux-cloud-environments\/","title":{"rendered":"CryptoGuard: Lightweight Hybrid Detection and Response to Host-based Cryptojackers in Linux Cloud Environments"},"content":{"rendered":"<h1>CryptoGuard: Lightweight Hybrid Detection and Response to Host-based Cryptojackers in Linux Cloud Environments<\/h1>\n<p>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 <a href=\"https:\/\/vtechworks.lib.vt.edu\/server\/api\/core\/bitstreams\/8d12d7e2-081a-4d8a-afe0-3276d2575aa0\/content\">Enhancing CryptoGuard&#8217;s Deployability for Continuous Software Security Scanning on vtechworks.lib.vt.edu<\/a> employed by cryptojackers. We propose innovative sketch-based and sliding window-based monitoring techniques to efficiently trace syscall patterns of cryptojackers.<\/p>\n<p>As a baseline, we employed Random Forest (RF) as a traditional machine learning model to compare with our LTSM and CNN models. This split allows us to verify whether or not our deep learning models can detect unseen CMS patterns. Under the same conditions, we collected an additional 2,010 malware CMS datasets from an environment where a cryptojacker was actively running. To construct our dataset, we emulated a realistic deployment environment by running commonly used benign services, including Apache HTTP Server, Apache Tomcat, Nginx, Redis, and MySQL.<\/p>\n<p>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.<\/p>\n<p>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.<\/p>\n<p>In cloud environments, identifying cryptojacker processes or containers is challenging due to the large number of hosts and VMs, each running numerous benign processes. In contrast, CryptoGuard can detect new variants by leveraging syscall patterns learned through deep learning models. We evaluated the ability of our classifiers to distinguish cryptojacking processes or containers from their benign counterparts. We assumed a practical scenario where a cryptojacker process is running with other benign processes at the same host (or VM) concurrently.<\/p>\n<p>When a certain host or VM is classified as suspicious (Section 3.5), we need to investigate syscall patterns for all processes and containers on that host in detail to pinpoint cryptojackers. Although these syscalls can also be used by benign processes, our hypothesis is that cryptojackers are more likely to invoke these syscalls. For instance, if CryptoGuard collects syscalls from all processes or containers, the syscall feature vector size is FF for each of the SS syscalls from PP processes (or containers) over a certain period.<\/p>\n<div style=\"text-align:center\">\n<iframe loading=\"lazy\" width=\"560\" height=\"310\" src=\"https:\/\/www.youtube.com\/embed\/3OnidCPB0is\" frameborder=\"0\" alt=\"Enhancing CryptoGuard's Deployability Continuous Software Security Scanning information\" allowfullscreen><\/iframe>\n<\/div>\n<p>Additionally, our deep learning models were trained on a separate machine featuring two NVIDIA Tesla V100 GPUs, and 300GB of RAM. The experiments were performed on a machine equipped with an Intel Xeon Gold 5220R CPU running at 2.20GHz and 200GB of RAM. In this section, we evaluate CryptoGuard to demonstrate its effectiveness and efficiency. It then periodically issues SIGKILL signals to all processes or containers matching these names, ensuring that all instances are terminated.<\/p>\n<p>For instance, according to the CNCF 2020 survey (cnc, 2020), 23% of companies reported running more than 5,000 containers on average. The core idea is that syscall patterns tend to remain consistent even when obfuscation techniques are applied. Finally, we assume that a cryptojacker can be running as a process or a container; the former aims to target a VM while the latter targets a host where container engines or orchestration platforms operate (e.g., Docker, Kubernetes). While this requires attackers to deliver the cryptojacker binary, the specifics of this process are beyond the scope of our paper.<\/p>\n<p>This demonstrates that CryptoGuard imposes minimal overhead, avoiding interruptions to other benign processes. We conducted experiments to measure the overhead of CryptoGuard on a single host to evaluate its viability as a lightweight solution for resource-limited cloud environments. The classifier\u2019s goal is to accurately classify a given process or container into one of these categories. The first two categories represent the cryptojacker families detailed in Table 2, while the third category includes benign processes.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CryptoGuard: Lightweight Hybrid Detection and Response to Host-based Cryptojackers in Linux Cloud Environments 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<\/p>\n","protected":false},"author":15,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3173","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.carlochow.dk\/index.php\/wp-json\/wp\/v2\/posts\/3173","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.carlochow.dk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.carlochow.dk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.carlochow.dk\/index.php\/wp-json\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/www.carlochow.dk\/index.php\/wp-json\/wp\/v2\/comments?post=3173"}],"version-history":[{"count":1,"href":"https:\/\/www.carlochow.dk\/index.php\/wp-json\/wp\/v2\/posts\/3173\/revisions"}],"predecessor-version":[{"id":3174,"href":"https:\/\/www.carlochow.dk\/index.php\/wp-json\/wp\/v2\/posts\/3173\/revisions\/3174"}],"wp:attachment":[{"href":"https:\/\/www.carlochow.dk\/index.php\/wp-json\/wp\/v2\/media?parent=3173"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.carlochow.dk\/index.php\/wp-json\/wp\/v2\/categories?post=3173"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.carlochow.dk\/index.php\/wp-json\/wp\/v2\/tags?post=3173"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}