iPhone users are being warned about a scam using fake security alerts to trick them into handing over their Apple ID passwords.