Close Menu
Invest Intellect
    Facebook X (Twitter) Instagram
    Invest Intellect
    Facebook X (Twitter) Instagram Pinterest
    • Home
    • Commodities
    • Cryptocurrency
    • Fintech
    • Investments
    • Precious Metal
    • Property
    • Stock Market
    Invest Intellect
    Home»Cryptocurrency»New Malware Hidden Within PostgreSQL Process Deploys Cryptocurrency Miners
    Cryptocurrency

    New Malware Hidden Within PostgreSQL Process Deploys Cryptocurrency Miners

    August 22, 20243 Mins Read


    New Malware Hidden Within PostgreSQL Process Deploys Cryptocurrency Miners

    A successful brute-force attack on a PostgreSQL database exploited a feature that allowed command execution, where the attacker created a superuser role, dropped files to eliminate competition and gain persistence, and ultimately deployed cryptocurrency miners. 

    The attack demonstrates the severe consequences of weak passwords and the potential for unauthorized access to a database to lead to significant security breaches.


    EHA
    Attack flow in PG_MEM

    An attacker successfully breached the system through a brute-force attack on the PostgreSQL database. After gaining access, they created a new superuser account with elevated privileges to maintain persistence.

    Free Webinar on Detecting & Blocking Supply Chain Attack -> Book your Spot

    They then stripped the initial compromised user of superuser rights to limit potential damage from future attacks.

    To gather information about the system, the attacker executed commands to locate the authentication configuration file, determine the PostgreSQL server version, and run system commands like `uname` and `whoami`. 

    The compilation of commands aimed at   the system

    The threat actor leverages a temporary table to execute shell commands and store the output by establishing a TCP connection to a remote server to download two malicious payloads, pg_core and pg_mem. 

    The first payload, pg_core, is a cryptominer that mines cryptocurrency, while the second payload, pg_mem, is a dropper that deploys the XMRIG cryptominer, memory. 

    Both payloads are designed to evade detection by removing logs, killing competing malware processes, and creating persistence through cron jobs. The threat actor also modifies the pg_hba configuration file to allow unauthorized connections.

    Mining cryptocurrency data

    A recent Shodan search revealed over 800,000 publicly accessible PostgreSQL databases on the internet, highlighting a significant security risk and making them vulnerable to brute-force attacks and potential exploitation. 

    This discovery underscores the urgent need for organizations to implement robust security measures to protect their database servers from unauthorized access.

    The attackers exploited a vulnerability in the Postgres database to gain initial access to the target system, which aligns with the T1190 technique, which involves exploiting public-facing applications to compromise systems. 

    According to AquaSec, by leveraging this vulnerability, the attackers were able to bypass security measures and establish a foothold within the target environment.

    component of the attack

    The attacker initiates a targeted attack against a PostgreSQL database server by exploiting a vulnerability in the database to execute shell commands, create a new user account with elevated privileges, and manipulate existing user roles. 

    To maintain persistence, they schedule a task to run a malicious script and delete evidence of their activity, and then leverage the elevated privileges to execute commands as a superuser. 

    By guessing the database credentials, they gain unauthorized access by collecting sensitive data, and the attacker downloads malicious files from a remote server and uses web protocols to establish communication, ultimately hijacking system resources for cryptocurrency mining.

    Are you from SOC and DFIR Teams? Analyse Malware Incidents & get live Access with ANY.RUN -> Get 14 Days Free Acces



    Source link

    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email

    Related Posts

    Japan Prepares to Launch Cryptocurrency ETFs by 2028 as Institutional Adoption Accelerates

    Cryptocurrency

    Top-Rated Crypto Wallets in India

    Cryptocurrency

    Cryptocurrency Goes Mainstream: Las Vegas Businesses Now Accepting Bitcoin Payments

    Cryptocurrency

    APEMARS, Dogecoin, and Pi Network Cryptocurrency’s Slip

    Cryptocurrency

    Converting A Nebra Cryptocurrency Miner To A Meshcore Repeater

    Cryptocurrency

    Is the US Dollar the World’s Most Successful Cryptocurrency?

    Cryptocurrency
    Leave A Reply Cancel Reply

    Top Picks
    Precious Metal

    Silver, Platinum and Other Precious Metals Are All Stealing Bitcoin’s Thunder in 2025

    Cryptocurrency

    Should You Invest In Spot Ether ETFs? Here’s What Experts Say

    Investments

    Advice From Experts About Making Friends After Retirement

    Editors Picks

    La fintech Floa, filiale de BNP Paribas veut accélérer ses processus avec une IA responsable

    June 10, 2025

    Granges. Du gaz vert pour plus de 3 000 foyers du Grand Chalon

    June 19, 2025

    8 Breakthrough Technology Trends That Will Transform Healthcare In 2026

    October 26, 2025

    The Impact of Population Growth on Global Commodity Demand

    July 24, 2025
    What's Hot

    iShares Residential and Multisector Real Estate ETF (NYSEARCA:REZ) Reaches New 12-Month High at $78.57

    July 13, 2024

    IIFL Fintech Fund books strong returns from partial exit in FinBox

    October 6, 2025

    Agricultural sector marks ‘major’ growth since independence

    May 26, 2025
    Our Picks

    Metal Gear Solid Delta Producer Is Hoping to Remake MGS4, Rescuing It from PS3 Jail

    November 28, 2025

    State Pension age to rise to 68? I’m buying UK shares to secure my retirement!

    November 2, 2025

    Trump policies threaten US clean energy jobs engine, report says

    September 18, 2025
    Weekly Top

    The Case for Hedging Currency Exposure for Global Bonds

    January 26, 2026

    Could Using 401(k)s as Down Payments Make Saving for Retirement Even Harder?

    January 26, 2026

    The Booming Energy Sector Could Be Poised for a 20% Rally, Analyst Says

    January 26, 2026
    Editor's Pick

    Aagama Ventures Floats INR 400 Cr Fund

    October 6, 2025

    Territoire de Belfort. McPhy Energy repris par John Cockerill Hydrogène

    July 8, 2025

    Why Your Retirement Plan Should Include Experiences

    November 20, 2025
    © 2026 Invest Intellect
    • Contact us
    • Privacy Policy
    • Terms and Conditions

    Type above and press Enter to search. Press Esc to cancel.