You can jailbreak an iPhone, but then it is no longer secure from malware.
Good to know you can still JB iOS