Article Details

Scrape Timestamp (UTC): 2023-11-08 14:22:30.533

Source: https://thehackernews.com/2023/11/researchers-uncover-undetectable-crypto.html

Original Article Text

Click to Toggle View

Researchers Uncover Undetectable Crypto Mining Technique on Azure Automation. Cybersecurity researchers have developed what's the first fully undetectable cloud-based cryptocurrency miner leveraging the Microsoft Azure Automation service without racking up any charges. Cybersecurity company SafeBreach said it discovered three different methods to run the miner, including one that can be executed on a victim's environment without attracting any attention. "While this research is significant because of its potential impact on cryptocurrency mining, we also believe it has serious implications for other areas, as the techniques could be used to achieve any task that requires code execution on Azure," security researcher Ariel Gamrian said in a report shared with The Hacker News. The study mainly set out to identify an "ultimate crypto miner" that offers unlimited access to computational resources, while simultaneously requiring little-to-no maintenance, is cost-free, and undetectable. That's where Azure Automation comes in. Developed by Microsoft, it's a cloud-based automation service that allows users to automate the creation, deployment, monitoring, and maintenance of resources in Azure. SafeBreach said it found a bug in the Azure pricing calculator that made it possible to execute an infinite number of jobs totally free of charge, although it relates to the attacker's environment itself. Microsoft has since issued a fix for the problem. An alternative method entails creating a test-job for mining, followed by setting its status as "Failed," and then creating another dummy test-job by taking advantage of the fact that only one test can run at the same time. The end result of this flow is that it completely hides code execution within the Azure environment. A threat actor could leverage these methods by establishing a reverse shell towards an external server and authenticating to the Automation endpoint to achieve their goals. Furthermore, it was found that code execution could be achieved by leveraging Azure Automation's feature that allows users to upload custom Python packages. "We could create a malicious package named 'pip' and upload it to the Automation Account," Gamrian explained. "The upload flow would replace the current pip in the Automation account. After our custom pip was saved in the Automation account, the service used it every time a package was uploaded." SafeBreach has also made available a proof-of-concept dubbed CoinMiner that's designed to get free computing power within Azure Automation service by using the Python package upload mechanism. Microsoft, in response to the disclosures, has characterized the behavior as "by design," meaning the method can still be exploited without getting charged. While the scope of the research is limited to the abuse of Azure Automation for cryptocurrency mining, the cybersecurity firm warned that the same techniques could be repurposed by threat actors to achieve any task that requires code execution on Azure. "As cloud provider customers, individual organizations must proactively monitor every single resource and every action being performed within their environment," Gamrian said. "We highly recommend that organizations educate themselves about the methods and flows malicious actors may use to create undetectable resources and proactively monitor for code execution indicative of such behavior."

Daily Brief Summary

CYBERCRIME // Cryptocurrency Mining Exploits Identified on Microsoft Azure Automation

Cybersecurity company SafeBreach identified three methods to run fully undetectable cloud-based cryptocurrency miners on the Microsoft Azure Automation service without incurring charges.

These methods could potentially be used for any task on Azure requiring code execution.

The researchers were looking for an "ultimate crypto miner" offering unlimited access to resources, that required minimal maintenance, was cost-free and undetectable.

They identified a bug in the Azure pricing calculator, allowing an unlimited number of jobs to be executed at no charge.

An additional method involves creating a test-job for mining, marking it as 'Failed' and creating another dummy test-job, taking advantage of the fact that only one test can run at a time, hiding code execution in the Azure environment.

A threat actor could use these methods to establish a reverse shell towards an external server and authenticate to the Automation endpoint.

Code execution could also be achieved by using Azure Automation’s feature allowing users to upload custom Python packages.

Microsoft has issued a fix for the pricing calculator bug, but stated the ability to exploit the method is 'by design'.