Auto killing process with specific command line?

DennisMidjord

Well-Known Member
Sep 27, 2016
361
80
78
Denmark
cPanel Access Level
Root Administrator
Since the latest WordPress vulnerability was disclosed, we've seen a lot of infected websites.
LFD often reports that a suspicious process called '[stealth]' is running, and this is indeed malware running on the server.

Is there any way to auto kill this exact command line? If anything runs and displays as [stealth], just kill it immediately?
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,304
363
Houston
There's nothing within cPanel/WHM that would do this but I am sure that you'd be able to find some great bash script tutorials/examples that detail how to create something like this.