# Clickfix not needing Terminal Copy/Paste on MacOS

**URL:** <https://ifin.network/t/clickfix-not-needing-terminal-copy-paste-on-macos/240>\
**Category:** Threat Intel\
**Tags:** infostealers, apple\
**Created:** [April 9, 2026, 4:01pm UTC](https://ifin.network/t/clickfix-not-needing-terminal-copy-paste-on-macos/240 "2026-04-09T16:01:24Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shecky](https://ifin.network/user_avatar/ifin.network/shecky/32/408_2.png) [@Shecky](https://ifin.network/u/Shecky)\
**Post date:** [April 9, 2026, 4:01pm UTC](https://ifin.network/t/clickfix-not-needing-terminal-copy-paste-on-macos/240/1 "2026-04-09T16:01:25Z")

</div>

[![](https://ifin.network/uploads/default/original/1X/5f73f9f2102b2fad84e1e978e454be7452f52bc4.webp)](https://bsky.app/profile/siliconshecky.siliconshecky.com)

\*\*[‪](https://bsky.app/profile/siliconshecky.siliconshecky.com)\*\*Interesting development in ClickFix working through a script editor on MacOS. Taking a step out of the process via copy/paste could result in more people getting infected. How long if not already, will they do this for windows?

> **[ClickFix Malware Uses macOS Script Editor to Deliver Atomic Stealer Threat Labs](https://www.jamf.com/blog/clickfix-macos-script-editor-atomic-stealer/)**
>
> Jamf Threat Labs uncovers a ClickFix-style attack that bypasses Terminal by exploiting macOS Script Editor via the applescript:// URL scheme to deliver an Atomic Stealer variant. Learn how it works.

---

<div class="post-metadata">

**Author:** ![mttaggart](https://ifin.network/user_avatar/ifin.network/mttaggart/32/7_2.png) [@mttaggart](https://ifin.network/u/mttaggart)\
**Post date:** [April 9, 2026, 4:07pm UTC](https://ifin.network/t/clickfix-not-needing-terminal-copy-paste-on-macos/240/2 "2026-04-09T16:07:21Z")

</div>

I can’t believe AppleScript is still around—and apparently, critical infrastructure to macOS. Things seems to break when you disable it.

---

<div class="post-metadata">

**Author:** ![Shecky](https://ifin.network/user_avatar/ifin.network/shecky/32/408_2.png) [@Shecky](https://ifin.network/u/Shecky)\
**Post date:** [April 9, 2026, 4:13pm UTC](https://ifin.network/t/clickfix-not-needing-terminal-copy-paste-on-macos/240/3 "2026-04-09T16:13:30Z")

</div>

Legacy, the second worst security hole in the world.

---

<div class="post-metadata">

**Author:** ![mttaggart](https://ifin.network/user_avatar/ifin.network/mttaggart/32/7_2.png) [@mttaggart](https://ifin.network/u/mttaggart)\
**Post date:** [April 9, 2026, 4:24pm UTC](https://ifin.network/t/clickfix-not-needing-terminal-copy-paste-on-macos/240/4 "2026-04-09T16:24:52Z")

</div>

Okay, let’s talk actionability. How does one disable URL scheme handlers on macOS, to prevent `applescript://` links from doing anything?

---

<div class="post-metadata">

**Author:** ![stroz](https://ifin.network/user_avatar/ifin.network/stroz/32/399_2.png) [@stroz](https://ifin.network/u/stroz)\
**Post date:** [April 9, 2026, 4:41pm UTC](https://ifin.network/t/clickfix-not-needing-terminal-copy-paste-on-macos/240/5 "2026-04-09T16:41:52Z")

</div>

Jamf has some extra info from several years ago from a previous URL-scheme-related issue: [Remote Mac Exploitation Via Custom URL Schemes](https://www.jamf.com/blog/remote-mac-exploitation-via-custom-url-schemes/)

---

<div class="post-metadata">

**Author:** ![mttaggart](https://ifin.network/user_avatar/ifin.network/mttaggart/32/7_2.png) [@mttaggart](https://ifin.network/u/mttaggart)\
**Post date:** [April 9, 2026, 4:53pm UTC](https://ifin.network/t/clickfix-not-needing-terminal-copy-paste-on-macos/240/6 "2026-04-09T16:53:19Z")

</div>

Which in turn references this older Objective-See post.

> **[Objective-See](https://objective-see.org/blog/blog_0x12.html)**

So basically any application can include itself as a handler for document types in its `Info.plist`, which in turn will inform [Launch Services](https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/LaunchServicesKeys.html).

Now, reversing from the info in [this SO article](https://stackoverflow.com/questions/68872304/how-to-configure-a-custom-scheme-handler-on-macos-from-command-line), we in theory could attempt something like:

```bash
plutil -insert "LSHandlers.0" -json '{"LSHandlerPreferredVersions":{"LSHandlerRoleAll":"-"},"LSHandlerRoleAll":"come.apple.TextEdit","LSHandlerURLScheme":"applescript"}' ~/Library/Preferences/com.apple.LaunchServices/com.apple.launchservices.secure.plist

```

Which would make `applescript://` links open in TextEdit, similar to how we disable `.js` files on Windows by having them handled by Notepad.

I don’t have a Mac to test this one, but I’d love to confirm this.

---

<div class="post-metadata">

**Author:** ![mttaggart](https://ifin.network/user_avatar/ifin.network/mttaggart/32/7_2.png) [@mttaggart](https://ifin.network/u/mttaggart)\
**Post date:** [April 15, 2026, 3:54pm UTC](https://ifin.network/t/clickfix-not-needing-terminal-copy-paste-on-macos/240/7 "2026-04-15T15:54:13Z")

</div>

Bumping this. I really want to figure out if this works to kill AppleScript URIs.

---

<div class="post-metadata">

**Author:** ![mttaggart](https://ifin.network/user_avatar/ifin.network/mttaggart/32/7_2.png) [@mttaggart](https://ifin.network/u/mttaggart)\
**Post date:** [April 15, 2026, 4:37pm UTC](https://ifin.network/t/clickfix-not-needing-terminal-copy-paste-on-macos/240/8 "2026-04-15T16:37:24Z")

</div>

Okay, after messing with `.plist` files, something I haven’t done in years, it would appear that the easiest move here is to install `duti`.

> **[GitHub - moretension/duti: A command-line tool to select default applications...](https://github.com/moretension/duti/)**
>
> A command-line tool to select default applications for document types and URL schemes on Mac OS X

```bash
brew install duti
duti -s com.apple.TextEdit applescript

```

It’s not perfect, but it at least defends against opening these files in a script interpreter.

Interesting note: each application’s `Info.plist` determines what kinds of files it can actually handle. So while TextEdit will open, it will not do anything with the contents of the URL.

---

<div class="post-metadata">

**Author:** ![J4ck](https://ifin.network/letter_avatar_proxy/v4/letter/j/3d9bf3/32.png) [@J4ck](https://ifin.network/u/J4ck)\
**Post date:** [April 15, 2026, 4:41pm UTC](https://ifin.network/t/clickfix-not-needing-terminal-copy-paste-on-macos/240/9 "2026-04-15T16:41:19Z")

</div>

AppleScript runs off of `/usr/bin/osascript`

Maybe poke around with the settings or add a passthru to osascript that helps secure the system? Like a tailored try/catch to scan the file and yank out `applescript://`calls or mutate them into 🍎 's 🙂

---

<div class="post-metadata">

**Author:** ![mttaggart](https://ifin.network/user_avatar/ifin.network/mttaggart/32/7_2.png) [@mttaggart](https://ifin.network/u/mttaggart)\
**Post date:** [April 15, 2026, 4:50pm UTC](https://ifin.network/t/clickfix-not-needing-terminal-copy-paste-on-macos/240/10 "2026-04-15T16:50:29Z")

</div>

That’s not how the URI handlers work, unfortunately. The above is the best we can do without dangerously mutating plists.

---

<div class="post-metadata">

**Author:** ![J4ck](https://ifin.network/letter_avatar_proxy/v4/letter/j/3d9bf3/32.png) [@J4ck](https://ifin.network/u/J4ck)\
**Post date:** [April 15, 2026, 4:52pm UTC](https://ifin.network/t/clickfix-not-needing-terminal-copy-paste-on-macos/240/11 "2026-04-15T16:52:30Z")

</div>

I haven’t really poked, just scanned a few articles for a bit.

I have a mac. Let me charge it and get it up to date…

---

<div class="post-metadata">

**Author:** ![mttaggart](https://ifin.network/user_avatar/ifin.network/mttaggart/32/7_2.png) [@mttaggart](https://ifin.network/u/mttaggart)\
**Post date:** [April 15, 2026, 4:54pm UTC](https://ifin.network/t/clickfix-not-needing-terminal-copy-paste-on-macos/240/12 "2026-04-15T16:54:16Z")

</div>

One concern I have is that `duti` is making a call to a deprecated API function, so no idea how long that will last.

> **[LSSetDefaultHandlerForURLScheme(\_:\_:) | Apple Developer Documentation](https://developer.apple.com/documentation/coreservices/1447760-lssetdefaulthandlerforurlscheme)**
>
> Sets the user’s preferred default handler for the specified URL scheme.

And…it does kinda seem like an abandoned project.

---

<div class="post-metadata">

**Author:** ![mttaggart](https://ifin.network/user_avatar/ifin.network/mttaggart/32/7_2.png) [@mttaggart](https://ifin.network/u/mttaggart)\
**Post date:** [April 15, 2026, 5:21pm UTC](https://ifin.network/t/clickfix-not-needing-terminal-copy-paste-on-macos/240/13 "2026-04-15T17:21:33Z")

</div>

Ah! But this is not, and appears to do the same:

> **[GitHub - scriptingosx/utiluti: A macOS command-line tool to work with default...](https://github.com/scriptingosx/utiluti)**
>
> A macOS command-line tool to work with default apps

Except…it’s using the same deprecated API command. I’m not a macOS systems programmers, so maybe that’s fine? I don’t know how frequently they yank those out of there.

> <https://github.com/scriptingosx/utiluti/blob/43d49c358595fcf1b1b615ca23641de88312ef22/Sources/utiluti/LSKit.swift#L84>

---

<div class="post-metadata">

**Author:** ![mttaggart](https://ifin.network/user_avatar/ifin.network/mttaggart/32/7_2.png) [@mttaggart](https://ifin.network/u/mttaggart)\
**Post date:** [April 15, 2026, 7:04pm UTC](https://ifin.network/t/clickfix-not-needing-terminal-copy-paste-on-macos/240/14 "2026-04-15T19:04:03Z")

</div>

So they work, but is this a reasonable remediation for the posed risk? Mac admins, would you deploy a `.pkg` and some postInstall scripts via Jamf or Munki to nerf a threat vector like this?
