If your Mac blocks a Terminal command paste or script

Your Mac shows an alert when it detects suspicious paste activity or known malware in commands and scripts.

If your Mac shows a "Possible malware, Paste blocked" alert

This alert appears if you don't regularly use Terminal and you copied the command from somewhere like a website, chat agent, or messaging or email app.

Scammers use these channels to instruct people to paste malicious commands into Terminal to harm your Mac or compromise your privacy. This alert helps make sure that you aren't tricked into running a command that you didn't expect.

An alert warning that a command you're trying to paste into Terminal may be malicious, with the option to paste anyway if you're certain that the command is from a trusted source.

If you get this alert:

  • Your Mac hasn't been harmed.

  • Don't paste the command unless you're certain about what it does and where it came from.

  • If you're certain that the command is from a trusted source, you can choose to click Paste Anyway. Pasting a command that displays a possible malware alert could harm your Mac or compromise your privacy.

Learn more about recognizing and avoiding social engineering scams

If your Mac shows a "Malware Detected, Paste Blocked" or "Malicious Script Blocked" alert

These alerts appear if macOS detects that a command or script contains known malware and blocks it.

An alert warning that a command you're attempting to paste into Terminal contains malware.An alert warning that macOS blocked a script containing malware.

If you get one of these alerts:

  • Your Mac hasn't been harmed.

  • Don't paste the command or run the script.

  • If you believe that this command or script was blocked because a website that it tries to access was incorrectly reported as deceptive, you can report an error.

发布日期: