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

    Cryptocurrency Crumbles: Alexandria Collapse and the Fall of Celsius

    Cryptocurrency

    Crypto concerns: Why makers of digital currency want to be here. What makes NC counties wish they left. | WFAE 90.7

    Cryptocurrency

    DRML Miner: The innovative leader in future cryptocurrency mining

    Cryptocurrency

    Cross-border digital currency platform may debut soon

    Cryptocurrency

    Virginia man sentenced to 30 years for sending $185K to ISIS via cryptocurrency scam

    Cryptocurrency

    Cryptomining outfits finding themselves unwelcome in NC counties

    Cryptocurrency
    Leave A Reply Cancel Reply

    Top Picks
    Stock Market

    ASX 200 dividend stock reveals next quarterly passive income payout

    Stock Market

    Bajaj Finance Bonus, Dividend, Stock Split: Board meet today to consider multiple proposals

    Stock Market

    Dividend Stocks: HCL Tech, Fortis Healthcare, RBL Bank, among others to trade ex-dividend next week; Full list here

    Editors Picks

    Canary Capital Files Application for First-Ever Sui Cryptocurrency ETF

    March 18, 2025

    How Water Utilities Could Save Billions and Strengthen Resilience

    April 27, 2025

    Is Long-Term Care Insurance Worth the Money?

    July 12, 2024

    Ezipay Coin Presale Goes Live, Starting the Next Phase in Making Digital Payments More Accessible

    March 6, 2025
    What's Hot

    Is Paris Olympics 2024 last outing for Rafael Nadal before retirement? Tennis star says ‘I never said that but…’

    July 28, 2024

    Agriculture teacher in Eastern Oregon reflects on work skill development for students

    October 24, 2024

    3 Reliable Dividend Stocks Offering Up To 3.6% Yield

    April 29, 2025
    Our Picks

    Next Cryptocurrency to Explode, 24 February — Theta Fuel, JUST, Ultima, TRON

    February 24, 2025

    Cargill restructuring amid declining commodity prices

    August 9, 2024

    Vivo Energy Maroc et NARSA renforcent leur coopération – Telquel.ma

    February 21, 2025
    Weekly Top

    Les seniors se sont défiés au e-sport sur grand écran dans ce cinéma de l’Orne

    May 8, 2025

    Morpheus Research déclare détenir des positions courtes dans Mercurity FinTech Holding

    May 8, 2025

    Le système de retraite des employés de la ville de New York sollicite les procurations des actionnaires d’Alliant Energy Corporation

    May 8, 2025
    Editor's Pick

    Florida CFO Pushes for Bitcoin in State Pension Funds

    October 30, 2024

    UK’s coin maker turning e-waste into gold

    August 7, 2024

    What Is Bonk Coin and Is It a Real Cryptocurrency Worth Investing Your Money In?

    July 19, 2024
    © 2025 Invest Intellect
    • Contact us
    • Privacy Policy
    • Terms and Conditions

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