In a small but very welcome move, Apple has added a message in Terminal in macOS 26.4 that warns when a user tries to paste an instruction that might be malware.

The new warning — image credit: Mr Macintosh

The new warning — image credit: Mr Macintosh
Terminal is the command-line app that the giant majority of users never even know about, but is extremely useful for customizing Macs. It has such deep-rooted access to the Mac, though, that it can be dangerous.
Usually the danger comes from either inexperienced users typing the wrong commands — or scammers telling them to paste in certain instructions. If a user does that, they bypass all of Apple’s security and basically hand the keys over to the scammers.