{"id":5853,"date":"2025-08-03T10:03:30","date_gmt":"2025-08-03T10:03:30","guid":{"rendered":"https:\/\/serisec.com\/index.php\/2025\/08\/03\/new-undectable-plague-malware-attacking-linux-servers-to-gain-persistent-ssh-access\/"},"modified":"2025-08-03T10:03:30","modified_gmt":"2025-08-03T10:03:30","slug":"new-undectable-plague-malware-attacking-linux-servers-to-gain-persistent-ssh-access","status":"publish","type":"post","link":"https:\/\/serisec.com\/index.php\/2025\/08\/03\/new-undectable-plague-malware-attacking-linux-servers-to-gain-persistent-ssh-access\/","title":{"rendered":"New Undectable Plague Malware Attacking Linux Servers to Gain Persistent SSH Access"},"content":{"rendered":"<p>    New Undectable Plague Malware Attacking Linux Servers to Gain Persistent SSH Access<br \/>\n \t<BR><br \/>\n<BR><\/BR><br \/>\n    <!-- no image --><br \/>\n \t<BR><br \/>\n<BR><\/BR><\/p>\n<div>\n<p>A sophisticated Linux backdoor dubbed Plague has emerged as an unprecedented threat to enterprise security, evading detection across all major antivirus engines while establishing persistent SSH access through manipulation of core authentication mechanisms.<\/p>\n<p>Discovered by cybersecurity researchers at Nextron Systems, this malware represents a paradigm shift in Linux-targeted attacks, exploiting Pluggable Authentication Modules (PAM) to achieve near-perfect stealth and system-level persistence.<\/p>\n<p>The malware\u2019s most alarming characteristic is its complete invisibility to traditional security measures. Despite multiple variants being uploaded to VirusTotal over the past year, zero antivirus engines flagged any samples as malicious, achieving a perfect 0\/66 detection rate.<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgyG_RHBltW-lzjeowytEOTJY7w-18d_Kut4FMVQgLQ6Uk108kEpKRzIgpYNvsoLod6Kh3z5z7W6XDB0WCIgwWm9dHktVqKHHW_V1MN5Ddg6p3cvYvwi_e1po3P7OXHhOHhvbleFKXdXtEo9s-0BH9LglFXl8VsDJVRUeljSQrnQex1jLHVmh_QmTuugijt\/w640-h376\/odetections.webp?ssl=1\" alt=\"\"><figcaption class=\"wp-element-caption\">Malware undetected<\/figcaption><\/figure>\n<\/div>\n<p>This unprecedented evasion capability stems from its integration into Linux\u2019s fundamental authentication infrastructure, where it operates as a legitimate PAM module while subverting security controls.<\/p>\n<h2 class=\"wp-block-heading\"><strong>Plague Malware Evasion Mechanisms<\/strong><\/h2>\n<p>Plague operates through a multi-layered approach that combines advanced obfuscation with system-level manipulation. The malware employs evolving string obfuscation techniques that have progressed from simple <a href=\"https:\/\/cybersecuritynews.com\/powerful-ddos-malware-attack\/\" target=\"_blank\" rel=\"noreferrer noopener\">XOR-based encryption<\/a> to sophisticated multi-stage algorithms incorporating Key Scheduling Algorithm (KSA), Pseudo-Random Generation Algorithm (PRGA), and Deterministic Random Bit Generator (DRBG) layers. This progression reflects continuous development by threat actors to stay ahead of analysis tools.<\/p>\n<p>The malware\u2019s antidebug mechanisms verify that the binary maintains its expected filename <code>libselinux.so.8<\/code> and checks for the absence of <code>ld.so.preload<\/code> in environment variables.<\/p>\n<p>These checks enable the malware to detect sandbox environments and debuggers that commonly rename binaries or utilize preloading mechanisms for analysis, reads the Nextron <a href=\"https:\/\/www.nextron-systems.com\/2025\/08\/01\/plague-a-newly-discovered-pam-based-backdoor-for-linux\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">report<\/a>.<\/p>\n<p>Such techniques align with established antidebug methodologies where malware verifies execution environment integrity before activating malicious functionality.<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjZfIZ7N66JSQFTFfEz4P6R-IYR4CyJW_Ioy60yvT2JrPCYE_0m4weMDISbVyQi5QMIw3AfbIJjD67BBXFWy4cLBY4e7bHj0Th0Jqj1ee6FUMHpFIg5kaNqDnYXOP8rd_gv6bj84w3VDZlrlj1-R9mvwQ1Xh3CROQT1t3P1Rvs00iJuDPZD4WQKMwUREW9P\/w640-h462\/antidebug.webp?ssl=1\" alt=\"Antidebug\"><figcaption class=\"wp-element-caption\">Antidebug<\/figcaption><\/figure>\n<\/div>\n<p>String encryption represents a critical component of Plague\u2019s stealth capabilities. Initial samples utilized basic XOR operations, where each byte undergoes bitwise exclusive-or with a predetermined key.<\/p>\n<p>However, recent variants have adopted RC4-like implementations featuring custom KSA and PRGA routines. The KSA phase initializes a 256-byte state array through key-dependent permutations, while PRGA generates a pseudorandom keystream for decrypting obfuscated strings during runtime.<\/p>\n<p>Plague achieves persistence by masquerading as a legitimate <a href=\"https:\/\/cybersecuritynews.com\/yubico-pam-module-vulnerability-let-attackers-bypass-authentications\/\" target=\"_blank\" rel=\"noreferrer noopener\">PAM module<\/a>, specifically targeting the <code>pam_sm_authenticate()<\/code> function responsible for user credential verification.<\/p>\n<p>This approach exploits PAM\u2019s modular architecture, where authentication processes load shared libraries dynamically based on configuration files in <code>\/etc\/pam.d\/<\/code>. By positioning itself within this trusted execution path, Plague gains access to plaintext credentials and authentication decisions.<\/p>\n<figure class=\"wp-block-table\">\n<table class=\"has-fixed-layout\">\n<thead>\n<tr>\n<th>Feature<\/th>\n<th>Description<\/th>\n<th>Purpose \/ Benefit for Attacker<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><strong>Antidebug<\/strong><\/td>\n<td>Implements checks (e.g., filename, environment vars) to evade debuggers<\/td>\n<td>Prevents detection by analysts and sandboxes<\/td>\n<\/tr>\n<tr>\n<td><strong>String Obfuscation<\/strong><\/td>\n<td>Multi-layer encryption of strings and offsets inside the binary<\/td>\n<td>Hides sensitive info, evades signature-based AV<\/td>\n<\/tr>\n<tr>\n<td><strong>Static Password<\/strong><\/td>\n<td>Hardcoded credentials into PAM module<\/td>\n<td>Enables persistent, covert SSH access<\/td>\n<\/tr>\n<tr>\n<td><strong>Hidden Session Artifacts<\/strong><\/td>\n<td>Sanitizes environment, unsets vars, disables shell history<\/td>\n<td>Erases evidence of intrusion and usage<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p>The malware implements static password <a href=\"https:\/\/cybersecuritynews.com\/authentication\/\" target=\"_blank\" rel=\"noreferrer noopener\">authentication<\/a>, allowing attackers to bypass normal credential verification through hardcoded backdoor passwords.<\/p>\n<p>This technique mirrors documented PAM backdoor methodologies where malicious modules return <code>PAM_SUCCESS<\/code> unconditionally for specific credential combinations. The implant\u2019s integration into the authentication stack ensures it survives system updates and operates with elevated privileges inherent to authentication processes.<\/p>\n<p>Plague demonstrates a sophisticated understanding of <a href=\"https:\/\/cybersecuritynews.com\/free-forensic-investigation-tools\/\" target=\"_blank\" rel=\"noreferrer noopener\">Linux forensic<\/a> artifacts through comprehensive session stealth mechanisms. The malware systematically removes evidence of SSH connections by unsetting critical environment variables, including <code>SSH_CONNECTION<\/code>, <code>SSH_CLIENT<\/code>, and <code>SSH_TTY<\/code>.<\/p>\n<p>These variables normally contain connection metadata such as client IP addresses, port numbers, and terminal information that system administrators rely on for audit trails.<\/p>\n<p>Additionally, Plague redirects the <code>HISTFILE<\/code> environment variable to <code>\/dev\/null<\/code>, effectively prevent shell command history from being recorded.<\/p>\n<p>This technique ensures that attacker activities leave no trace in bash history files, which are commonly examined during incident response. The malware\u2019s knowledge of Linux forensic procedures suggests development by actors with significant operational security expertise.<\/p>\n<p>Analysis of compilation artifacts reveals active, sustained development spanning multiple environments and timeframes. Seven distinct samples compiled between July 2024 and March 2025 demonstrate continuous refinement, with compiler metadata indicating builds on Debian, Ubuntu, and Red Hat systems.<\/p>\n<p>The geographic distribution of VirusTotal submissions primarily from the United States, with one sample from China, suggests either widespread deployment or deliberate misdirection.<\/p>\n<p>The malware contains a cultural reference to the 1995 film \u201cHackers,\u201d displaying the message \u201cUh. Mr. The Plague, sir? I think we have a hacker.\u201d after successful authentication bypass.<\/p>\n<p>This easter egg, visible only after deobfuscation, provides insight into the threat actors\u2019 cultural background and potentially their attribution to Western threat groups familiar with classic hacker culture.<\/p>\n<p>Plague\u2019s emergence highlights critical <a href=\"https:\/\/cybersecuritynews.com\/defending-against-owasp-top-10-vulnerabilities\/\" target=\"_blank\" rel=\"noreferrer noopener\">vulnerabilities<\/a> in traditional endpoint security approaches that rely heavily on signature-based detection.<\/p>\n<p>The malware\u2019s ability to achieve zero detection across 66 antivirus engines demonstrates the limitations of conventional security tools when faced with novel attack vectors that exploit trusted system components.<\/p>\n<p>The targeting of PAM infrastructure represents a strategic evolution in Linux malware, moving beyond application-layer attacks to focus on foundational system components.<\/p>\n<p>This approach enables attackers to maintain access regardless of application updates or security patches, as the authentication layer remains consistently vulnerable. Security teams must implement PAM module integrity checking and monitor authentication subsystem modifications to detect similar threats.<\/p>\n<p><strong>IoC List<\/strong><\/p>\n<figure class=\"wp-block-table\">\n<table class=\"has-fixed-layout\">\n<thead>\n<tr>\n<th>SHA-256<\/th>\n<th>Size<\/th>\n<th>Filename<\/th>\n<th>First Submission<\/th>\n<th>Country<\/th>\n<th>Compiler<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>85c66835657e3ee6a478a2e0b1fd3d87119bebadc43a16814c30eb94c53766bb<\/td>\n<td>36.18 KB<\/td>\n<td>libselinux.so.8<\/td>\n<td>2024-07-29 17:55:52<\/td>\n<td>USA<\/td>\n<td>GCC: (Debian 10.2.1-6) 10.2.1 20210110<\/td>\n<\/tr>\n<tr>\n<td>7c3ada3f63a32f4727c62067d13e40bcb9aa9cbec8fb7e99a319931fc5a9332e<\/td>\n<td>41.65 KB<\/td>\n<td>libselinux.so.8<\/td>\n<td>2024-08-02 21:10:51<\/td>\n<td>USA<\/td>\n<td>GCC: (Debian 10.2.1-6) 10.2.1 20210110<\/td>\n<\/tr>\n<tr>\n<td>9445da674e59ef27624cd5c8ffa0bd6c837de0d90dd2857cf28b16a08fd7dba6<\/td>\n<td>49.55 KB<\/td>\n<td>libselinux.so.8<\/td>\n<td>2025-02-04 16:53:45<\/td>\n<td>USA<\/td>\n<td>GCC: (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0<\/td>\n<\/tr>\n<tr>\n<td>5e6041374f5b1e6c05393ea28468a91c41c38dc6b5a5230795a61c2b60ed14bc<\/td>\n<td>58.77 KB<\/td>\n<td>libselinux.so.8<\/td>\n<td>2025-02-09 21:27:32<\/td>\n<td>USA<\/td>\n<td>GCC: (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0<\/td>\n<\/tr>\n<tr>\n<td>6d2d30d5295ad99018146c8e67ea12f4aaa2ca1a170ad287a579876bf03c2950<\/td>\n<td>49.59 KB<\/td>\n<td>hijack<\/td>\n<td>2025-02-10 03:07:24<\/td>\n<td>CHINA<\/td>\n<td>GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0<\/td>\n<\/tr>\n<tr>\n<td>e594bca43ade76bbaab2592e9eabeb8dca8a72ed27afd5e26d857659ec173261<\/td>\n<td>109.67 KB<\/td>\n<td>libselinux.so.8<\/td>\n<td>2025-02-13 22:58:43 UTC<\/td>\n<td>USA<\/td>\n<td>stripped<\/td>\n<\/tr>\n<tr>\n<td>14b0c90a2eff6b94b9c5160875fcf29aff15dcfdfd3402d953441d9b0dca8b39<\/td>\n<td>41.77 KB<\/td>\n<td>libse.so<\/td>\n<td>2025-03-22 18:46:36<\/td>\n<td>USA<\/td>\n<td>GCC: (GNU) 4.8.5 20150623 (Red Hat 4.8.5-44)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p>Organizations should immediately audit PAM configurations, verify the integrity of <a href=\"https:\/\/cybersecuritynews.com\/authentication\/\" target=\"_blank\" rel=\"noreferrer noopener\">authentication<\/a> modules, and implement monitoring for suspicious authentication patterns.<\/p>\n<p>The malware\u2019s sophistication indicates state-level or advanced persistent threat capabilities, warranting elevated security postures for critical infrastructure and defense contractors.<\/p>\n<p class=\"has-text-align-center has-background\" style=\"background:linear-gradient(180deg,rgb(238,238,238) 94%,rgb(169,184,195) 100%)\"><code><strong>Integrate <strong>ANY.RUN TI Lookup<\/strong> with your SIEM or SOAR To Analyses Advanced Threats<\/strong> -&gt; <strong><a href=\"https:\/\/intelligence.any.run\/plans?utm_source=csn_jul&amp;utm_medium=atricle&amp;utm_campaign=want-to-detect-incidents-before&amp;utm_content=plans1&amp;utm_term=290725\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Try 50 Free Trial Searches<\/a> <\/strong><\/code><\/p>\n<p>The post <a href=\"https:\/\/cybersecuritynews.com\/plague-malware-attacking-linux-servers\/\">New Undectable Plague Malware Attacking Linux Servers to Gain Persistent SSH Access<\/a> appeared first on <a href=\"https:\/\/cybersecuritynews.com\/\">Cyber Security News<\/a>.<\/p>\n<\/div>\n<p> \t<BR><br \/>\n <BR><\/BR><br \/>\n    Guru Baran<br \/>\n \t<BR><br \/>\n<BR><\/BR><br \/>\n<a href=\"https:\/\/cybersecuritynews.com\/plague-malware-attacking-linux-servers\/\">Go to cyber-security-news<\/a><br \/>\n \t<BR><br \/>\n <BR><\/BR><\/p>\n","protected":false},"excerpt":{"rendered":"<p>New Undectable Plague Malware Attacking Linux Servers to Gain Persistent SSH Access A sophisticated Linux backdoor dubbed Plague has emerged as an unprecedented threat to enterprise security, evading detection across all major antivirus engines while establishing persistent SSH access through manipulation of core authentication mechanisms. Discovered by cybersecurity researchers at Nextron Systems, this malware represents [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[129,63,258],"tags":[130],"class_list":["post-5853","post","type-post","status-publish","format-standard","hentry","category-cyber-security","category-cyber-security-news","category-malware","tag-cyber-security-news"],"_links":{"self":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts\/5853"}],"collection":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/comments?post=5853"}],"version-history":[{"count":0,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts\/5853\/revisions"}],"wp:attachment":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/media?parent=5853"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/categories?post=5853"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/tags?post=5853"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}