If you're jailbroken, you're on your own. But as far as I know, there was only one incident of a hack on jailbroken iOS. It was mostly contained in Australia a few years ago and the victim(s) did not change the default admin password on a certain app they had. Which allowed the attacker to gain access to their devices.
Otherwise, there are no known pieces of malware for iOS that I know of.