A supply-chain attack targets Linux servers with disk-wiping malware hidden in Golang modules published on GitHub. The campaign was detected last month and relied on three malicious Go modules that included “highly obfuscated code” for retrieving remote payloads and executing them. The attack appears designed specifically for Linux-based servers and developer environments, as the destructive payload - a Bash script named done.sh, runs a ‘dd’ command for the file-wiping activity. Furthermore, the payload verifies that it runs in a Linux environment (runtime.GOOS == "linux") before trying to execute. An analysis from supply-chain security company Socket shows that the command overwrites with zeroes every byte of data, leading to irreversible data loss and system failure. The target is the primary storage volume, /dev/sda, that holds critical system data, user files, databases, and configurations. “By populating the entire disk with zeros, the script completely destroys the file system structure, operating system, and all user data, rendering the system unbootable and unrecoverable” - Socket The researchers discovered the attack in April and identified three Go modules on GitHub, that have since been removed from the platform: All three modules contained obfuscated code that decodes into commands that use ‘wget’ to download the malicious data-wiping script (/bin/bash or /bin/sh). According to Socket researchers, the payloads are executed immediately after download, “leaving vir...
Linux wiper malware hidden in malicious Go modules on GitHub
BleepingComputer
·Ionut Ilascu
·Published May 6, 2025
·Updated
Affected Software
5 affected components
Golang Prototransform
Golang go-mcp
Golang tlsproxy
go modules
Linux servers
Frequently Asked Questions
1
What is the main topic of this article?
The article discusses a supply chain attack that targets Linux servers with disk-wiping malware hidden in malicious Go modules on GitHub.
2
What security implications are discussed?
The article highlights the risk of disk-wiping malware that can lead to data loss and operational disruption for targeted Linux servers.
3
What products or software are affected by the malware?
The affected software includes malicious Go modules related to Golang's Prototransform, go-mcp, and tlsproxy.
4
How was the malicious code hidden within the Go modules?
The malicious code was included in the Go modules as highly obfuscated code, making it difficult to detect.
5
When was the campaign that discovered this malware detected?
The campaign was detected last month, indicating recent activity targeting Linux systems.