I've had this too (but not tried it on an IOS device) when using certain chargers and power supplies. I've never used provided USB sockets so it isnt going to be malware from that source. That and (as mentioned before) also it's quite hard to infect a phone that way. Nothing to worry about.