DEV Community

Faruk
Faruk

Posted on • Originally published at Medium

How I Spot a Suspicious Process on My Linux Server (Before It Does Damage) | by Faruk Ahmed | Jun, 2025

Member-only story

How I Spot a Suspicious Process on My Linux Server (Before It Does Damage)

--

Share

One strange PID. One weird name. That’s all it takes for a compromise to start — silently.

Over the years, I’ve learned to read a process list like a detective. In this blog, I’ll share exactly what I look for when I suspect a Linux server is misbehaving — and how you can spot malicious processes before they take control.

🧠 Step 1: Always Check With ps, Not Just top

Why? Because top refreshes live and can miss fast-spawning processes.

ps aux --sort=-%cpu | headps -eo pid,ppid,cmd,%mem,%cpu --sort=-%mem | head
Enter fullscreen mode Exit fullscreen mode

✅ What I look for:

  • bash or sh running under unusual users
  • Commands like curl, wget, python inside a shell
  • Anything running from /tmp or /dev/shm

🧪 Step 2: Look for Process Names That Try to Blend In

Attackers love hiding in plain sight. They’ll name things like:

  • [kworker/0:1]
  • sshd (but fake)
  • cron (but not started by root)

👉 Read Full Blog on Medium Here

Developer-first embedded dashboards

Developer-first embedded dashboards

Ship pixel-perfect dashboards that feel native to your app with Embeddable. It's fast, flexible, and built for devs.

Get early access

Top comments (0)

Some comments may only be visible to logged-in visitors. Sign in to view all comments.

Dev Diairies image

User Feedback & The Pivot That Saved The Project

🔥 Check out Episode 3 of Dev Diairies, following a successful Hackathon project turned startup.

Watch full video 🎥

👋 Kindness is contagious

Explore this insightful piece, celebrated by the caring DEV Community. Programmers from all walks of life are invited to contribute and expand our shared wisdom.

A simple "thank you" can make someone’s day—leave your kudos in the comments below!

On DEV, spreading knowledge paves the way and fortifies our camaraderie. Found this helpful? A brief note of appreciation to the author truly matters.

Let’s Go!