Is it possible for a rogue code to insert a cron job?

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,298
1,279
313
Houston
The response by @Jcats is correct - these sorts of malware have been on an uptick recently which is a reminder that it is extremely important to ensure that your WordPress/CMS installations are up to date and secure Wordpress has some advice on this which might be helpful as well Hardening WordPress « WordPress Codex

Thanks!