How We Traced and Stopped a UDP Flood Attack on an Oracle‑Tomcat Server
During the Chinese New Year a client’s Oracle‑Tomcat server was overwhelmed by massive UDP traffic, prompting a forensic investigation that uncovered a hidden Trojan, detailed command‑line analysis, iptables hardening, and the root cause of a weak SSH password left after a hardware upgrade.
Background
On the first day of the Chinese New Year the client reported that their Oracle + Tomcat server was unreachable. Network inspection revealed an enormous UDP flood that saturated the bandwidth, causing a complete service outage.
0×01 Finding the Trojan
After SSH‑login we used top and spotted a suspicious process named gejfhzthbp. The command lsof -c gejfhzthbp showed external TCP connections that hinted at a possible reverse shell.
Further investigation with
whereis gejfhzthbp
ls -al gejfhzthbprevealed the file’s path and timestamps that matched the intrusion time. The file was copied to a Kali VM for testing, confirming its malicious behavior.
0×02 Restoring Service
Attempting to kill the process proved difficult because it respawned under different names. Various ps -ef | grep checks showed parent processes alternating among sshd, pwd, ls, and even a VNC session. Ultimately we hardened the server with iptables rules:
iptables -A OUTPUT -o lo -j ACCEPT iptables -A OUTPUT -m state --state ESTABLISHED -j ACCEPT iptables -A OUTPUT -p tcp -d 192.168.1.235 -j ACCEPT iptables -A DROPThese rules allowed local traffic, established connections, and specific outbound traffic while dropping everything else, restoring normal operation.
0×03 Investigating the Root Cause
The underlying issue was weak SSH security. By examining /var/log/secure we discovered that after a year‑end equipment upgrade the server was left with a simple password for convenience, which an attacker from an Indonesian IP brute‑forced. The attacker then changed the root password, locking out legitimate users.
cd /var/log
less secureFurther log analysis and command history showed the attacker’s scripts and actions, leading to the recommendation of a full system reinstall.
0×04 Postscript
The author acknowledges limited Linux operations experience and suggests that a thorough cleanup or reinstall is the safest path forward.
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.
