Apple has introduced a security feature in macOS Tahoe 26.4 that blocks pasting and executing potentially harmful commands in Terminal and alerts users to possible risks.

https://www.bleepingcomputer.com/news/security/apple-adds-macos-terminal-warning-to-block-clickfix-attacks/

Apple adds macOS Terminal warning to block ClickFix attacks

Apple has introduced a security feature in macOS Tahoe 26.4 that blocks pasting and executing potentially harmful commands in Terminal and alerts users to possible risks.

BleepingComputer

@BleepingComputer Just an idea: when testing the protection, copy the malicious command from a web page, like in a real attack scenario - and not, say, from a text file. At least on Windows, this matters.

Here's similar protection for Windows but, unfortunately, it needs to run as Administrator:

https://github.com/CertainlyP/ClipGuard