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.

MaGe Linux Operations
MaGe Linux Operations
MaGe Linux Operations
How We Traced and Stopped a UDP Flood Attack on an Oracle‑Tomcat Server

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  gejfhzthbp

revealed 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 DROP

These 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 secure

Further 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.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

incident responseiptablesmalware analysisserver intrusionSSH SecurityLinux forensics
MaGe Linux Operations
Written by

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.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.