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

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,265
1,296
363
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!