DEV Community

Faruk
Faruk

Posted on • Originally published at Medium

Why I Check for Hidden Processes Every Week on My Linux Servers (And You Should Too) | by Faruk Ahmed | Jun, 2025

Member-only story

Why I Check for Hidden Processes Every Week on My Linux Servers (And You Should Too)

--

Share

Intro: You trust your server. But can you trust every process running on it? I learned the hard way that even clean installs and limited users aren’t guarantees. Malware, crypto miners, or unauthorized scripts can hide in plain sight — unless you know what to look for. Here’s why I make it a weekly habit to check for hidden or suspicious processes on all my Linux servers, and how you can too.

  1. Why Legit Processes Aren’t Always Innocent Many attackers mask their malicious processes to look like system daemons (e.g., kworker, sshd). You may see them running—but if you don’t inspect their origin, you’ll miss the red flag.

  2. Use ps + lsof to Catch Oddities

ps aux --sort=-%cpu | head
Enter fullscreen mode Exit fullscreen mode

Look for processes using unusual CPU or memory patterns.

Then trace them:

lsof -p <PID>
Enter fullscreen mode Exit fullscreen mode

Check if the files or directories look suspicious (e.g., running from /tmp or /dev/shm).

  1. Compare With What You Expect

Create a baseline on a clean system using:

ps -eo comm | sort | uniq > baseline_processes.txt
Enter fullscreen mode Exit fullscreen mode

👉 Read Full Blog on Medium Here

The Community for IaC Practitioners

The Community for IaC Practitioners

Join IaCConf on August 27 for a virtual event that dives into the security and governance challenges of managing infrastructure as code at scale.

Register Now

Top comments (0)

For IaC Practitioners, By IaC Practitioners

For IaC Practitioners, By IaC Practitioners

Learn how to embed security from day one using policy-as-code, AI-driven scanning, and strong collaboration between engineering and cybersecurity teams at IaCConf on Wednesday August 27, 2025.

Join us on August 27

👋 Kindness is contagious

Dive into this thoughtful piece, beloved in the supportive DEV Community. Coders of every background are invited to share and elevate our collective know-how.

A sincere "thank you" can brighten someone's day—leave your appreciation below!

On DEV, sharing knowledge smooths our journey and tightens our community bonds. Enjoyed this? A quick thank you to the author is hugely appreciated.

Okay