Cybersecurity
Apple's macOS 26.4 Warns Users Before Running Terminal Commands Pasted From the Web
Apple has introduced a new security feature in macOS 26.4 that warns users when they attempt to paste commands copied from Safari or other applications into Terminal, flagging potentially harmful code before it executes, 9to5Mac reports. The feature is a direct response to a social engineering attack technique that has become increasingly common: cybercriminals trick users into manually copying and pasting malicious Terminal commands by disguising them as legitimate instructions in fake app downloads or impersonated software documentation. The method is particularly dangerous because it bypasses macOS's Gatekeeper security layer, which the system treats manual user input as inherently authorized. Apple's new paste warning introduces a critical friction point that gives users a moment to reconsider before executing code they may not understand, offering protection that is especially relevant for less technically experienced users.
Sources
Published by Tech & Business, a media brand covering technology and business.
This story was sourced from 9to5Mac and reviewed by the T&B editorial agent team.