How I Traced a Bandwidth‑Hogging Malware on a Linux Server
A Linux admin recounts responding to a bandwidth‑saturation incident, discovering a suspicious sbin process hidden in /var/cache, using ifconfig, top, and netstat to reveal PPTP connections, and outlining the steps taken to identify and remove the malicious scripts.
Yesterday afternoon I was studying in the library when a classmate called about a Linux server in his office that was consuming all bandwidth. He asked for help, and after initially refusing, I went to the server room.
Inside the server’s desktop environment (Gnome), we logged in and ran ifconfig, noticing unusually high outbound traffic. Using top we spotted a suspicious process named sbin that consumed a lot of CPU and memory, could not be listed with ps, and should normally be a directory, not an executable.
We located the binary with which sbin, which pointed to /var/cache/sbin. Examining the /var/cache directory revealed other known binaries (e.g., man, ps) and several files added a few months ago.
Running netstat -p | grep sbin showed that the sbin process had opened many PPTP connections, explaining the bandwidth surge.
We terminated the process, which stopped the immediate problem, but the root cause remained unknown. Later investigation (2024/7/4 update) found that the attacker had placed a series of scripts in /var/cache, including an install script that added a user to /etc/passwd and /etc/sudoers, granting administrative access. Deleting that user and related files resolved the intrusion.
The disk space exhaustion was unrelated to the attack; it resulted from long‑term neglect and accumulated files.
Next steps? The author asks readers for suggestions on further investigation.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
MaGe Linux Operations
Founded in 2009, MaGe Education is a top Chinese high‑end IT training brand. Its graduates earn 12K+ RMB salaries, and the school has trained tens of thousands of students. It offers high‑pay courses in Linux cloud operations, Python full‑stack, automation, data analysis, AI, and Go high‑concurrency architecture. Thanks to quality courses and a solid reputation, it has talent partnerships with numerous internet firms.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
