How to properly restore wordpress compromised

[ad_1]

My WordPress (6.2) got compromised, and I just discovered that my oldest backup is ALREADY compromised.

I tried to “clean” PHP script manually but there are so many infected files that I just decided to reinstall from scratch.

I checked MySQL database and it looks fine to me (I mean: with no malicious contents)

Problem is: on this website I manage several plugins, some of them with license key

In your opinion is it safe to:

\- remove all files/directory

\- reinstall very same wordpress version from scratch

\- copy again wp-content/plugins to restore plugins

\- restore database from latest backup

\- restore wp-content/uploads (I check carefully and I do have ONLY PNG files there!)

thank you for your opinion!

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer