Skip to content

[Bug] macOS XProtect "Malicious Script Blocked" during 2026.11.5 update; setup stops after deps installed #18034

Closed

Description

@leftbankvines

Environment

Where are you using Unsloth?

  • Unsloth desktop application
  • Unsloth web UI (unsloth studio)
  • Unsloth CLI (official shell installer/update)
  • Python package or notebook
  • Colab or Kaggle

Operating system and version: macOS 27.2.1, build 26B131 (verified with sw_vers).
GPU model(s) and accelerator backend: Apple M3 Ultra Mac Studio, 512 GiB unified memory; Metal / MLX.
Versions: Updating Unsloth 2026.11.4 to 2026.11.5. After the interruption, both unsloth-2026.11.5.dist-info and unsloth_zoo-2026.11.5.dist-info exist in the managed environment. Installer reports Python 3.13, retained torch 2.10.0, isolated Node v24.22.2 and npm 11.19.1. This was not a desktop-app updater run. No post-update runtime or backend validation has been performed.

What happened?

The official macOS shell update stopped after deps installed. During this update, macOS displayed Malicious Script Blocked. The unified log confirms an XProtect rules-engine denial and a ScriptedMalware prompt at 2026-11-16 17:30:28 EST (22:30:28 UTC).

Important: this report does not establish that Unsloth contains malware, or that this is a false positive. The blocked script/process identity is not exposed in the available log. The update interruption and security event coincide, but attribution to a specific installer step is unresolved.

Steps to reproduce (one observed occurrence; not deliberately rerun):

  1. Start with the existing 2026.11.4 Studio installation on this Mac.
  2. In Terminal, run the documented command:
    curl -fsSL https://unsloth.ai/install.sh | sh
  3. The installer preserves the previous environment, creates the new environment and installs 2026.11.5.
  4. Setup prints mlx training stack ready, then deps installed.
  5. The malware-block dialog appears; the captured terminal output ends with [Process completed], without a final setup success message.

Expected behavior: A completed, verifiable update without a malware-protection block. If interrupted, clear information about the affected component and a supported recovery path without disabling macOS protection.

Actual behavior: Package metadata shows the new version, but setup completion is unconfirmed. The installed studio/setup.sh contains further backend setup and a completion footer not present in this transcript. Terminal's [Process completed] is not an installer success receipt, and the exit status was not captured.

Model and operation involved: Studio installation/update, not inference or training.

Diagnostics and logs

Desktop application

Not applicable: official shell installer was used.

Unsloth web UI / terminal output

Below is the supplied terminal transcript with the username/home path replaced by <HOME> and formatting normalized. The two progress lines have terminal redraw artifacts in the original paste; their visible labels are preserved here.

Unsloth Studio Installer
platform       macos
deps           using prebuilt llama.cpp (cmake not found)
               Install cmake only if you want a source build: brew install cmake
uv cache       reusing this install's Unsloth Studio cache (<HOME>/.unsloth/studio/cache/uv)
               found unsloth 2026.11.4
               preserving existing environment for rollback...
               previous environment preserved for rollback
venv           creating Python 3.13 virtual environment
               <HOME>/.unsloth/studio/unsloth_studio
venv           using environment
               <HOME>/.unsloth/studio/unsloth_studio
               existing install has torch 2.10.0 -- keeping it (set UNSLOTH_TORCH_UPGRADE=1 to get the newest release)
gpu            Apple Silicon (Metal, unified memory)
               preparing Apple Silicon model support...
               installing PyTorch (https://download.pytorch.org/whl/cpu)...
               installing unsloth (this may take a few minutes)...
unsloth        2026.11.5 installed (was 2026.11.4)
setup          running unsloth studio update...

Unsloth Studio Setup
frontend       bundled (pip install)
               installing isolated Node (system Node/npm left untouched)...
node           v24.22.2 | npm 11.19.1 (isolated)
frontend       up to date
deps           6/16 dependency overrides
               torch 2.10.0 detected -- installing torchao==0.16.0
deps           16/16 torchcodec
               torch 2.10.0 detected -- installing torchcodec>=0.10.0,<0.11.0
mlx            training stack ready
deps           installed
[Process completed]

Screenshot text (transcribed; image not attached)

Malicious Script Blocked

A script was blocked because it contains malware. This script did not harm your Mac.

The dialog has a Done button.

macOS unified-log excerpts

Read-only inspection; timestamps below are local EST. Identifying details are already redacted by macOS.

2026-11-16 17:30:27.958 xprotectd: Killing container due to rules engine deny
2026-11-16 17:30:28.209 xprotectd: Prompting user about blocked scripted malware execution
2026-11-16 17:30:28.212 syspolicyd: Displaying XProtect blocked prompt: type=19, uid=501
2026-11-16 17:30:28.213 syspolicyd: present prompt: uid=501, conn=yes, type=ScriptedMalware
2026-11-16 17:30:28.214 syspolicyd: Recorded malware block for identifier=<private> path=(none)

The third/fourth lines omit unrelated connection/UUID fields. No script filename, malware signature name, or target PID has been established from these excerpts.

Model-specific logs

Not applicable.

Python package or notebook

No Python traceback was printed. Package installation metadata exists, but imports and the new runtime have not been executed for diagnostic testing.

Additional context

Could a maintainer investigate which installer/child process or accessed URL could trigger this block, advise how to collect the missing identifier safely, and provide a supported way to complete or roll back this partially installed update without bypassing XProtect?

Activity

  1. NilayYadav commented on Nov 16, 2026

    @NilayYadav
    Collaborator

    Could you re-run the installer with log stream --info --predicate 'process == "xprotectd" OR process == "syspolicyd"' open in another Terminal and paste what it shows when the block happens?

  2. leftbankvines commented on Nov 16, 2026

    @leftbankvines
    Author

    Thanks @NilayYadav. I ran one controlled retry with the requested live capture. The retry completed with exit code 0; the earlier XProtect block did not reproduce in this capture.

    Capture and conditions

    • Same Apple M3 Ultra Mac Studio, macOS 27.2.1 (26B131).
    • Live capture started before the installer and stopped after it finished:
      log stream --style compact --info --predicate 'process == "xprotectd" OR process == "syspolicyd"'
    • Captured event timestamps span 2026-11-16 18:11:16.986 to 18:12:52.298 EST (23:11-23:12 UTC).
    • Retried the official HTTPS installer piped to sh, with stdout/stderr captured and pipeline exit checked. Unlike the original Terminal attempt, this retry was noninteractive, used tee to retain the installer script, and set UNSLOTH_SKIP_AUTOSTART=1 UNSLOTH_INSTALL_NO_ROLLBACK=0.
    • This was a cached reinstall: it detected 2026.11.5 left by the interrupted attempt, rather than starting from 2026.11.4.
    • No XProtect/Gatekeeper override or quarantine removal was performed.
    • Preserved the original 2026.11.4 rollback outside the installer's rollback-cleanup glob; its 2026.11.4 package metadata remains present.
    • SHA-256 of the script used for this retry: d02623a86827c491bb7793aa33c6fe089ac07760ced6266fb366ac33f23c8066. The original attempt's script hash is unavailable.

    Installer output (selected excerpts)

    unsloth        2026.11.5 installed (unchanged)
    setup          running unsloth studio update...
    node           v24.22.2 | npm 11.19.1 (isolated)
    frontend       up to date
    torch 2.10.0 detected -- installing torchao==0.16.0
    torch 2.10.0 detected -- installing torchcodec>=0.10.0,<0.11.0
    mlx            training stack ready
    deps           installed
    transformers   5.3.0 sidecar current
    transformers   5.5.4 pre-installed
    transformers   5.13.1 pre-installed
    gpu            Apple Silicon (Metal, unified memory)
                   installing prebuilt llama.cpp...
                   existing install detected -- validating update
    llama.cpp      prebuilt up to date and validated
                   installed release: unslothai/llama.cpp@b12347-mix-241a0f3 (tag b12347) -- metal backend
    whisper.cpp    prebuilt up to date
    audio.cpp      prebuilt up to date
    Unsloth Studio Installed
    Created Unsloth Studio shortcut
    Unsloth Studio installed!
    

    The wrapper reported INSTALLER_EXIT=0. Active environment metadata now lists both unsloth and unsloth_zoo 2026.11.5.

    Security capture

    No matches in the captured output for rules engine deny, ScriptedMalware, blocked scripted, Recorded malware block, Killing container, malware, or denied.

    There were generic syspolicyd errors such as the following; I cannot attribute them specifically to the installer or interpret them as a malware verdict:

    2026-11-16 18:12:52.298 E syspolicyd: Unable to initialize qtn_proc: 3
    2026-11-16 18:12:52.298 E syspolicyd: dispatch_mig_server returned 268435459
    

    These are selected excerpts, not the full stream; process/thread identifiers and unrelated provenance/network activity are omitted. No personal filesystem paths or credentials are included.

    This establishes successful installer completion on the retry, not the cause of the original block or proof it was a false positive. Studio launch/model inference was intentionally not tested in this attempt. Is the original block sequence already posted sufficient for further investigation, or is there a specific additional diagnostic artifact you need?

  3. NilayYadav commented on Nov 16, 2026

    @NilayYadav
    Collaborator

    Thanks for checking. Since it installed fine this time, there's nothing more we need. If the block shows up again, please send that log.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions