Unknown process using 95% CPU

Looks like a virus, but I’m not sure if I had chances to catch it It has a different command name yesterday, I killed it. And it started with a new name later

What steps should be taken?


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi there @alanfisher,

This looks like a crypto miner. What I could suggest is running the following command to get more information about the process:

  1. ps aux | grep -i nJnK4xPK

Or change the nJnK4xPK part with the command that you currently see in htop.

This should show you the exact command that was used to start the process. Then you could kill the process but also delete the files associated with that process.

Then depending on where the malicious files are stored at you could figure out how they got there. For example, if you have a WordPress website and you find the files in your WordPress theme folder, then it most likely means that the theme was compromised. If you find the files in the /tmp folder then it is likely that some of your plugins were compromised and were used to upload the files there.

Depending on the software stack that you have you could then install the necessary updates and secure your website. If you are using WordPress you could follow the steps on how to do that here:

Let me know how it goes! Regards, Bobby