I'm moving an old WordPress non-profit site from an unmanaged Hostinger account to OpalStack to be managed by me. Because it was unmanaged for a very long time there were a number of spammy posts which probably got hacked into like these : (When I looked in the dashboard there were some spammy posts to be published soon)
https://myOldWordPressSite.com/anjeonhage-parimaeci-gyeongheom-onrain-kajino-geime-hyeogsinjeogin-byeonhwa/
https://myOldWordPressSite.com/bl450d-jumpin-jalapenos-slot-engine-foot-sharkninja/
https://myOldWordPressSite.com/tr-bahiscilerin-en-beendii-makineler-rokubet/
https://myOldWordPressSite.com/a16z-generative-ai/
I am most probably going to revamp this to OctoberCMS which is Laravel based but until then we would still show the WordPress site. What measures can be done to prevent spammy posts hacks ? The admin username and password was not leaked, so it seems but I fear some outdated plugin could've created this security hole ? The WordPress site was created in 2016 initially but am unsure of the WordPress version updates so far.
Is there any plugin to prevent this automation ?