Apple has published a technical note on how to avoid phishing attempts (fake email messages), fake virus and malware alerts, and other attempts to compromise your computer or mobile device, or your online resources.
These scams range from messages claiming to be from Apple, to phone calls claiming to have discovered problems on your computer, to text messages sent to your mobile devices. The Apple technical note has practical advice on how to protect your computer, mobile device, credentials, and online information.