{"id":12831,"date":"2025-04-01T18:03:02","date_gmt":"2025-04-01T18:03:02","guid":{"rendered":"https:\/\/fusionmindlabs.com\/blogs\/1500-postgresql-servers-hacked\/"},"modified":"2025-04-01T18:03:03","modified_gmt":"2025-04-01T18:03:03","slug":"1500-postgresql-servers-hacked","status":"publish","type":"post","link":"https:\/\/fusionmindlabs.com\/blogs\/1500-postgresql-servers-hacked\/","title":{"rendered":"1,500+ PostgreSQL Servers Hacked"},"content":{"rendered":"\n<\/p>\n<h3>Article Details<\/h3>\n<p><span class=\"p-author\"><i class=\"icon-font icon-calendar\">\ue802<\/i><span class=\"author\">Apr 01, 2025<\/span><i class=\"icon-font icon-user\">\ue804<\/i><span class=\"author\">Ravie Lakshmanan<\/span><\/span><span class=\"p-tags\">Cryptojacking \/ Cloud Security<\/span><\/p>\n<h3>Ongoing Cryptojacking Campaign<\/h3>\n<p>Exposed PostgreSQL instances are being targeted in an ongoing campaign aimed at gaining unauthorized access and deploying cryptocurrency miners. According to cloud security firm Wiz, this activity is a variant of an intrusion set first identified by Aqua Security in August 2024, involving the use of a malware strain known as PG_MEM. The campaign has been attributed to a threat actor tracked by Wiz as JINX-0126.<\/p>\n<h3>Evolution of the Threat Actor<\/h3>\n<p>&quot;The threat actor has since evolved, implementing defense evasion techniques such as deploying binaries with a unique hash per target and executing the miner payload filelessly \u2013 likely to evade detection by cloud workload protection platform solutions that rely solely on file hash reputation,&quot; researchers Avigayil Mechtinger, Yaara Shriki, and Gili Tikochinski noted.<\/p>\n<div class=\"dog_two clear\"><center class=\"cf\"><a href=\"https:\/\/thehackernews.uk\/drata-3\" rel=\"nofollow noopener sponsored\" target=\"_blank\" title=\"Cybersecurity\"><\/a><\/center><\/div>\n<h3>Extent of the Campaign<\/h3>\n<p>Wiz has revealed that the campaign has likely claimed over 1,500 victims to date. This indicates that publicly-exposed PostgreSQL instances with weak or predictable credentials are prevalent enough to become an attack target for opportunistic threat actors.<\/p>\n<h3>Attack Techniques<\/h3>\n<p>The most distinctive aspect of the campaign is the abuse of the COPY &#8230; FROM PROGRAM SQL command to execute arbitrary shell commands on the host.<\/p>\n<div class=\"separator\" style=\"clear: both;\"><a href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhjK9HTBvuiSRI6SAJfiF_mZ5QPwOEunnNsN7jwiptOgo7JZuXmIQLIDjM7cnyXHOBGQ_fF8D_RUVO5XdquH6G_AGHztO-wHhlLWS98PhZtJvg56B8UZ3yCyTeCYVjra0VFRcV_OaxdcM_ofP_bYWGyZuJEuAVHdG7_DYkMgKy34AmIdnfz9tHEcQ_1vu0j\/s728-rw-e365\/crypto-miner-code.jpg\" style=\"display: block;  text-align: center; clear: left; float: left;\" rel=\"nofollow noopener\" target=\"_blank\"><img decoding=\"async\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhjK9HTBvuiSRI6SAJfiF_mZ5QPwOEunnNsN7jwiptOgo7JZuXmIQLIDjM7cnyXHOBGQ_fF8D_RUVO5XdquH6G_AGHztO-wHhlLWS98PhZtJvg56B8UZ3yCyTeCYVjra0VFRcV_OaxdcM_ofP_bYWGyZuJEuAVHdG7_DYkMgKy34AmIdnfz9tHEcQ_1vu0j\/s728-rw-e365\/crypto-miner-code.jpg\" alt=\"\" border=\"0\" data-original-height=\"693\" data-original-width=\"780\"\/><\/a'><\/div>\n<h3>Post-Exploitation Activities<\/h3>\n<p>The access afforded by the successful exploitation of weakly configured PostgreSQL services is used to conduct preliminary reconnaissance and drop a Base64-encoded payload. This payload is, in reality, a shell script that kills competing cryptocurrency miners and drops a binary named PG_CORE.<\/p>\n<h3>Additional Malware<\/h3>\n<p>Also downloaded to the server is an obfuscated Golang binary codenamed postmaster, which mimics the legitimate PostgreSQL multi-user database server. It&#8217;s designed to set up persistence on the host using a cron job, create a new role with elevated privileges, and write another binary called cpu_hu to disk.<\/p>\n<div class=\"dog_two clear\"><center class=\"cf\"><a href=\"https:\/\/thehackernews.uk\/zscaler-inside-d\" rel=\"nofollow noopener sponsored\" target=\"_blank\" title=\"Cybersecurity\"><img fetchpriority=\"high\" decoding=\"async\" class=\"lazyload\" alt=\"Cybersecurity\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjRFO5s2w2a-LYExVqmIzfz6CnCaWYIL8AQm2htTkuz9tueMoNcuhrPw0p-_fT9T5bOK9BonkBRKORSMcMUDyBSxRV1iT6whGPaUFHaJ6AiMmFzK5SQbYPumrOaibXKLYAo2i6Y237CYFzMKtqeMFzUFbVEb4ZRBRNQDz52duWN4i2gyE0YwRJipkSYSEbB\/s728-e100\/zz-d.png\" width=\"727\" height=\"90\"\/><\/a><\/center><\/div>\n<h3>Deployment of Cryptocurrency Miner<\/h3>\n<p>cpu_hu downloads the latest version of the XMRig miner from GitHub and launches it filelessly via a known Linux fileless technique referred to as memfd.<\/p>\n<h3>Campaign Impact<\/h3>\n<p>&quot;The threat actor is assigning a unique mining worker to each victim,&quot; Wiz said, adding it identified three different wallets linked to the threat actor. &quot;Each wallet had approximately 550 workers. Combined, this suggests that the campaign could have leveraged over 1,500 compromised machines.&quot;<\/p>\n<p><\/p>\n<div class=\"cf note-b\">Found this article interesting?  Follow us on <a href=\"https:\/\/twitter.com\/thehackersnews\" rel=\"noopener nofollow\" target=\"_blank\">Twitter <i class=\"icon-font icon-twitter\">\uf099<\/i><\/a> and <a href=\"https:\/\/www.linkedin.com\/company\/thehackernews\/\" rel=\"noopener nofollow\" target=\"_blank\">LinkedIn<\/a> to read more exclusive content we post.<\/div>\n<\/div>\n<p><script async src=\"\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script><\/p>\n\n<br \/><a href=\"https:\/\/thehackernews.com\/2025\/04\/over-1500-postgresql-servers.html\" rel=\"nofollow noopener\" target=\"_blank\">Source Link<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Article Details \ue802Apr 01, 2025\ue804Ravie LakshmananCryptojacking \/ Cloud Security Ongoing Cryptojacking Campaign Exposed PostgreSQL instances are being targeted in an ongoing campaign aimed at gaining unauthorized access and deploying cryptocurrency&#8230;<\/p>\n","protected":false},"author":19,"featured_media":12832,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22],"tags":[46,39,32,31,33,34,35,40,36,37,42,44,43,41,38,45],"class_list":["post-12831","post","type-post","status-publish","format-standard","has-post-thumbnail","category-cybersecurity","tag-computer-security","tag-cyber-attacks","tag-cyber-news","tag-cyber-security-news","tag-cyber-security-news-today","tag-cyber-security-updates","tag-cyber-updates","tag-data-breach","tag-hacker-news","tag-hacking-news","tag-how-to-hack","tag-information-security","tag-network-security","tag-ransomware-malware","tag-software-vulnerability","tag-the-hacker-news"],"jetpack_featured_media_url":"https:\/\/fusionmindlabs.com\/blogs\/wp-content\/uploads\/sites\/9\/2025\/04\/main-crypto.jpg","_links":{"self":[{"href":"https:\/\/fusionmindlabs.com\/blogs\/wp-json\/wp\/v2\/posts\/12831","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fusionmindlabs.com\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fusionmindlabs.com\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fusionmindlabs.com\/blogs\/wp-json\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/fusionmindlabs.com\/blogs\/wp-json\/wp\/v2\/comments?post=12831"}],"version-history":[{"count":1,"href":"https:\/\/fusionmindlabs.com\/blogs\/wp-json\/wp\/v2\/posts\/12831\/revisions"}],"predecessor-version":[{"id":12833,"href":"https:\/\/fusionmindlabs.com\/blogs\/wp-json\/wp\/v2\/posts\/12831\/revisions\/12833"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fusionmindlabs.com\/blogs\/wp-json\/wp\/v2\/media\/12832"}],"wp:attachment":[{"href":"https:\/\/fusionmindlabs.com\/blogs\/wp-json\/wp\/v2\/media?parent=12831"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fusionmindlabs.com\/blogs\/wp-json\/wp\/v2\/categories?post=12831"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fusionmindlabs.com\/blogs\/wp-json\/wp\/v2\/tags?post=12831"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}