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

Content Marketing Trends 2025: Trust, AI, and Data Storytelling

As the digital landscape continues to evolve, content marketing is undergoing significant transformations, paving the way for innovative strategies that prioritize trust, data storytelling, and artificial intelligence. A recent study by Statista, pulling insights from a survey of more than 300 marketing professionals in the United States, reveals that brands are adapting to this dynamic environment by focusing on new

How is Digitalization Revolutionizing Small Traders in Vietnam?

In Vietnam, digitalization has emerged as a transformative force reshaping the landscape for small traders and household businesses. The introduction of Government Decree No. 70/2025/ND-CP stands at the forefront of this digital wave, mandating that businesses in specific sectors earning over 1 billion VND annually adopt e-invoices integrated with cash registers. This change aligns with national efforts to formalize and

Is Digital Innovation Revolutionizing Indonesian Retail?

Indonesia’s retail sector is experiencing a profound transformation fueled by digital innovation and technological advancements, reshaping the landscape at an unprecedented pace. This revolution is marked by the integration of artificial intelligence (AI) and the implementation of omnichannel strategies that drive growth and enhance customer experiences. Industry leaders and experts gathered at the Retail Asia Summit – Indonesia to explore

Digital Transformation in UK Public Sector Faces Key Challenges

As the UK public sector seeks to navigate the complexities of digital transformation, notable obstacles have emerged, centering around digital literacy and leadership. Research conducted by Granicus has highlighted that a significant portion of public sector employees—25%—view a lack of digital literacy as a critical barrier to progress. While technological advancement remains a focal point, the importance of equipping individuals

How Is AI Revolutionizing Digital Marketing Strategies?

The Role of AI in Content Creation and Optimization In an era where digital content reigns supreme, AI plays a transformative role by not just enhancing but redefining content creation and optimization strategies. AI technologies facilitate the creation of personalized content that resonates with diverse audiences, transcending traditional group-based targeting. For example, email marketing campaigns that leverage AI can dynamically