Stop using shady shared hosting companies, self-host everything and harden php/apache/mariadb deployment not just Wordpress.
Wordpress is pretty secure but putting everything in a shared hosting with lax security like dreamhost or hostgator et al its asking for trouble.