Any vulnerable code in your web site may be exploited. Some time in 2014, I started receiving bounced e-mail messages saying that the recipient was not found. I found out that my website was being used as a spambot through a vulnerability in phpMyadmin:
Exploiting phpMyadmin: How to Get root in 15 Easy Steps
https://www.informit.com/articles/article.aspx?p=1407358&seqNum=2
Since my web site is mostly HTML, I removed all the PHP code, including WP. I then reinstalled WP, but I have never re-installed phpMyadmin.