ForgeNEX

SANSAR: Linux malware that hides GPU mining in your SMB

The REF3364 group uses SANSAR, a Rust orchestrator that manipulates GPU readings to hide cryptomining. We analyze the risk for SMBs and how to protect yourself.

3 min read

In this article

A new headache for Linux security

Last week, The Hacker News published an analysis about REF3364, a financially motivated threat cluster that specializes in cryptomining on Linux systems. What's interesting is not just the miner, but the tool that controls it: SANSAR, an orchestrator written in Rust that receives commands over the TOR network and is capable of manipulating GPU readings so that monitoring tools do not detect the malicious activity.

The malware modifies an NVIDIA library to falsify the data that would normally reveal intensive use of the graphics card. In other words, if your IT team looks at GPU usage and sees normal values, they could be overlooking a cryptocurrency mining operation that consumes resources and drives up the electricity bill.

Detalle ilustrativo: SANSAR Linux Cryptomining Malware Uses Modified NVIDIA Library to Hide GPU Activity

What exactly is SANSAR and why should you care?

SANSAR is not a simple miner. It is an orchestrator: a program that manages both CPU and GPU miners, and that also communicates with its operator over TOR to receive instructions. This gives it flexibility and makes tracking difficult. But what is truly novel is its ability to alter GPU metrics through a modified NVIDIA library. By doing so, it can hide the high GPU usage that would give the mining away.

For an SMB, this means that traditional warning signs (such as a sudden increase in GPU usage) can go unnoticed. If your company uses Linux servers with GPUs for rendering, data analysis, or artificial intelligence tasks, this malware could be mining cryptocurrency at your expense without standard monitoring dashboards detecting it.

Real impact on an SMB

The first effect is resource consumption: mining monopolizes CPU and GPU, which slows down other applications and can affect productivity. The second is the energy cost: a GPU mining at full capacity drives up the electricity bill. And the third, no less important, is the reputational and security risk: if the attackers have managed to run SANSAR, they have had access to your system, which could be the tip of the iceberg of a larger breach.

In addition, communication over TOR can bypass basic network filters, and the modification of the NVIDIA library can affect the integrity of other applications that depend on it.

Recommendations for the IT team

Faced with this type of threat, at ForgeNEX we recommend strengthening monitoring and not relying solely on the metrics that the system itself provides. Some specific measures:

  • Monitor electricity consumption and temperature of servers with GPUs. An anomalous increase can be the first clue.
  • Verify the integrity of the libraries of NVIDIA and other critical components. Tools such as rpm -V or dpkg -V can help, although for an in-depth analysis it is advisable to use file integrity solutions.
  • Review outbound connections to the TOR network. Although it is not always easy, a firewall with specific rules or an IDS can detect anomalous traffic.
  • Apply the principle of least privilege and segment the network to limit lateral movement.
  • Keep systems and applications updated, and consider solutions for detecting anomalies in process behavior.

Let's not forget that this type of malware usually enters through unpatched vulnerabilities or weak credentials. In a previous article we already talked about how unpatched Check Point can open the door to this type of incident. Basic hygiene remains the best defense.

Context: a rising trend

REF3364 is not an isolated case. Cryptomining remains one of the most profitable malicious activities for attackers, and they are increasingly sophisticating their techniques to go unnoticed. The combination of Rust (a safe and efficient language), TOR, and driver manipulation is an example of how the ecosystem is evolving. For SMBs, this underscores the need to have a technology partner that not only installs tools, but also monitors and responds to incidents.

At ForgeNEX we work with SMBs to design security strategies adapted to their reality. If you have doubts about whether your Linux servers with GPUs are protected, do not hesitate to contact us.

Source: The Hacker News. Analysis and adaptation: ForgeNEX.

Keep reading

Call us WhatsApp