Cryptojacking Campaign Targets PostgreSQL Servers Via Unauthorized Access

Article Highlights
Off On

A concerning ongoing campaign has been identified, targeting exposed PostgreSQL instances to deploy cryptocurrency miners through unauthorized access. This recent cyber intrusion has been closely monitored by security firm Wiz, which has labeled this malicious activity as a variant of the intrusion initially discovered by Aqua Security last year. Using malware named PG_MEM, the campaign is attributed to the threat actor JINX-0126. This operation showcases sophisticated defense evasion techniques, such as deploying binaries with unique hashes for each target and executing miner payloads filelessly to evade detection.

Unauthorized Access and Exploits

The campaign has successfully compromised over 1,500 PostgreSQL servers, primarily taking advantage of systems with weak or easily guessable credentials. One of the key tactics employed by the attackers involves abusing the COPY … FROM PROGRAM SQL command to execute shell commands, allowing them to gain an initial foothold on the targeted server. They further use a Base64-encoded shell script to eliminate competing cryptocurrency miners and install a malicious binary named PG_CORE. This method ensures continued control over the infected system, enabling the attackers to maintain their cryptojacking activities without interruption.

An obfuscated Golang binary, deceitfully named postmaster to mimic the legitimate PostgreSQL server, aids persistence. This binary establishes itself via cron jobs, creates a privileged role within the database, and writes another binary, cpu_hu, to disk. The binary cpu_hu, in turn, downloads the latest version of the XMRig miner from GitHub and launches it filelessly using the memfd technique, a tactic known for its efficiency in avoiding detection. Each compromised machine becomes uniquely assigned as a mining worker, contributing to the attacker’s overall mining operations.

Indicators and Impacts of the Campaign

Evidence indicates that the threat actor assigns a unique identifier to each mining worker, with three wallets showing links to approximately 550 workers each. This alignment implies that the campaign may involve more than 1,500 compromised machines. The wide-reaching impact highlights the significant risk posed by publicly exposed PostgreSQL instances, which often become opportunistic targets for such malicious campaigns due to their vulnerabilities.

The campaign’s distinctive characteristics include fileless payload execution, unique binary hashes per target, and sophisticated persistence mechanisms. This level of intricacy reflects the evolving strategies employed by JINX-0126, who have demonstrated a refined approach to cryptojacking. These developments underscore the critical need for robust security practices and proactive measures to safeguard cloud environments and database servers from exploitation.

Strategic Takeaways

A significant ongoing cyber campaign has been detected, targeting unprotected PostgreSQL databases to install cryptocurrency mining software through unauthorized access. Security firm Wiz has been closely monitoring this recent cyber intrusion, identifying it as a variant of an attack first uncovered by Aqua Security last year. The malware, named PG_MEM, is linked to the threat actor known as JINX-0126. This sophisticated operation uses advanced techniques to avoid detection, such as deploying binaries with unique hashes for each target and executing their miner payloads without creating files, rendering traditional security measures less effective. The attackers’ ability to adapt and evolve their strategies highlights the critical need for robust security measures to protect database instances from such threats. Organizations are urged to secure their PostgreSQL instances by applying necessary security patches, monitoring unusual activities, and implementing best practices to avoid falling victim to these sophisticated attacks.

Explore more

Trend Analysis: Alternative Assets in Wealth Management

The traditional dominance of the sixty-forty portfolio is rapidly dissolving as high-net-worth investors pivot toward the sophisticated stability of private market ecosystems. This transition responds to modern volatility and geopolitical instability. This analysis evaluates market data, real-world applications, and the strategic foresight required to navigate this new financial paradigm. The Structural Shift Toward Private Markets Market Dynamics and Adoption Statistics

Trend Analysis: Embedded Finance Performance Metrics

While the initial excitement surrounding the integration of financial services into non-financial platforms has largely subsided, the industry is now waking up to a much more complex and demanding reality where simple growth figures no longer satisfy cautious stakeholders. Embedded finance has transitioned from a experimental novelty into a foundational layer of the global digital infrastructure. Today, brands that once

How to Transition From High Potential to High Performer

The quiet frustration of being labeled “high potential” while watching peers with perhaps less raw talent but more consistent output secure the corner offices has become a defining characteristic of the modern corporate workforce. This “hi-po” designation, once the gold standard of career security, is increasingly viewed as a double-edged sword that promises a future that never seems to arrive

Trend Analysis: AI-Driven Workforce Tiering

The long-standing corporate promise of a shared destiny between employer and employee is dissolving under the weight of algorithmic efficiency and selective resource allocation. For decades, the “universal employee experience” served as the bedrock of corporate culture, ensuring that benefits and protections were distributed with a degree of egalitarianism across the organizational chart. However, as artificial intelligence begins to fundamentally

Trend Analysis: Systemic Workforce Disengagement

The current state of the global labor market reveals a workforce that remains physically present yet mentally absent, presenting a more dangerous threat to corporate stability than a wave of mass resignations ever could. This phenomenon, which analysts have termed the “Great Detachment,” represents a paradoxical shift where employees choose to stay in their roles due to economic uncertainty while