How a New Year UDP Flood Hid a Trojan: A Linux Incident Response Walkthrough

This article recounts a Chinese New Year server breach where massive UDP traffic masked a Trojan on an Oracle‑Tomcat host, detailing the forensic steps to identify the malicious process, restore service with iptables rules, and uncover a weak SSH password as the root cause.

MaGe Linux Operations
MaGe Linux Operations
MaGe Linux Operations
How a New Year UDP Flood Hid a Trojan: A Linux Incident Response Walkthrough

Introduction

On Chinese New Year's Day, a client reported that their Oracle+Tomcat server was overwhelmed by massive UDP traffic, exhausting bandwidth. After local technicians failed, they turned to us on the third day.

Finding the Trojan

SSH login, using top revealed a suspicious process named gejfhzthbp. Running lsof -c gejfhzthbp showed external TCP connections, possibly a reverse shell.

We examined the file path and timestamps, matching the intrusion time, then copied the file to a Kali VM for analysis.

Restoring Service

Attempted to kill the process, but it respawned with a different name. Various parent processes (sshd, pwd, ls) appeared, and a VNC connection was installed. Finally, we added iptables rules to block unwanted traffic:

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

After applying the rules, the service returned to normal.

Investigating the Root Cause

The breach originated from a weak SSH password. An Indonesian IP successfully brute‑forced the login. The client had temporarily set a weak password for third‑party technicians and forgot to change it, allowing the attacker to gain root access and change the root password.

Reviewing /var/log/secure and the history file revealed the attacker’s actions, confirming the compromise.

Conclusion

The incident highlights the importance of strong SSH credentials and proper post‑maintenance cleanup.

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.

LinuxiptablesSSHtrojanSecurity Incident Response
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.