Skip to content

[Bug] Saw "A script was blocked" - transformers==5.13.1 trips some scanners #18699

Open

Description

@malzantot

Environment

Where are you using Unsloth?

  • Unsloth desktop application
  • Unsloth web UI (unsloth studio)
  • Unsloth CLI
  • Python package or notebook
  • Colab or Kaggle

Operating system and version:

GPU model(s) and accelerator backend:

Versions:

What happened?

Steps to reproduce:

  1. I was running `` to install the latest unsloth.
  2. My macbook show "A script was blocked because it contains malware. This script did not harm your Mac." warning.

studio.log

Activity

  1. added
    feature request
    on Nov 21, 2026
  2. malzantot commented on Nov 21, 2026

    @malzantot
    Author

    The command I was running curl -fsSL https://unsloth.ai/install.sh | sh

  3. aman-kumar-maersk commented on Nov 21, 2026

    @aman-kumar-maersk

    Same issue. Seems to happen during or after installing torch

       torch 2.10.0 detected -- installing torchcodec>=0.10.0,<0.11.0
    
  4. redspider commented on Nov 22, 2026

    @redspider

    Hey team, I got the same block here. Had claude do some digging while the popup was still in play.

    In summary: It looks like xprotectd has a reason to check something almost straight after the install manifest gets modified, possibly one of the three sidebars. That check (a safe browsing thing) fails and it nukes the container and declares it is malware. Interestingly, it immediately starts refusing pastes of the curl unsloth install command afterwards - it was fine for me to paste that to the terminal to kick it off, but after the block it no longer allowed me to paste that anymore.

    Captured the unified log for it:

    Environment

    • macOS 27.0.1 (26A434), Apple Silicon M4 Max
    • Terminal app: iTerm2
    • Updating an existing Studio install from v0.1.800-beta to unsloth 2026.11.9 / unsloth_zoo 2026.11.8
    • Command, pasted into the terminal: curl -fsSL https://unsloth.ai/install.sh | sh
    • install.sh SHA-256 96b18758d13d5150445a35819ce412a73ae56b16fd7a875e79591bf18103013c, fetched about 5 minutes after the run (not captured from the run itself); main was at e16d4b6 at the time

    Timeline (2026-11-22, UTC)

    • 09:01:19: command pasted, installer starts
    • 09:02:22: unsloth_install_manifest.json records completed_at_ms
    • 09:03:08: manifest last modified (the MLX health probe had just finished importing)
    • 09:03:08.539: xprotectd sends a Safe Browsing CheckFullHashes request
    • 09:03:09.160: reply received
    • 09:03:09.161: Killing container due to rules engine deny
    • 09:03:09.412: "Malicious Script Blocked" prompt (type=ScriptedMalware)
    09:03:08.539 xprotectd [com.apple.Safari.SafeBrowsing:FullHash] Send CheckFullHashes message to safe browsing service with protection type 1
    09:03:09.160 xprotectd [com.apple.Safari.SafeBrowsing:FullHash] Receive CheckFullHashes reply with protection type 1
    09:03:09.161 xprotectd [com.apple.security.xprotectd.:main] Killing container due to rules engine deny
    09:03:09.412 xprotectd [com.apple.security.xprotectd.:main] Prompting user about blocked scripted malware execution
    09:03:09.414 syspolicyd [com.apple.syspolicy.exec:default] Displaying XProtect blocked prompt: type=19, uid=501
    

    What the log shows

    • xprotectd made 357 Safe Browsing URL lookups during the install. Only one led to a full-hash check, and the kill came 1 ms after that reply. The matched string is redacted (<private>).
    • Lookups came in bursts during the uv installs, then none for 48 s (09:02:20 to 09:03:08), then three groups at 09:03:08.379, .497 and .539. The third triggered the full-hash check.
    • Afterwards, pasting the same command again was refused 20 times ("Malware Detected, Paste Blocked", type=CopyPasteBlocked). Each refusal logged There are no matches in databases with given url before paste denied, so the install URL itself is not on the Safe Browsing list. The same paste had been accepted at 09:01.

    Where setup stopped

    • Python packages are updated and the manifest is written.
    • The transformers sidecars were never touched: .venv_t5_550 still holds 5.5.0 and .venv_t5_510 still holds 5.10.2, with August mtimes. The llama.cpp and whisper steps did not run.
    • The unsloth_studio.rollback.* directory is still present.

    Guess, not verified
    In studio/setup.sh the first thing after install_python_stack is three _sidecar_current calls (5.3.0, 5.5.4, 5.13.1), which run install_manifest.py sidecar <dir> transformers==<ver> huggingface_hub==1.8.0 hf_xet==1.4.2. Three calls and three lookup groups line up, with the third (5.13.1) being the one that hit. It is possible XProtect is treating something in those command lines as a URL or host. I could not confirm this because the log redacts the matched value.

    This also seems to apply only to commands pasted into a terminal, which might explain why the non-interactive retry in #18034 completed cleanly.

    Capture predicate, if anyone wants to compare:
    /usr/bin/log show --last 30m --info --predicate 'process == "xprotectd" OR process == "syspolicyd"'

  5. danielhanchen commented on Nov 22, 2026

    @danielhanchen
    Member

    We found the issue - transformers==5.13.1 trips as being an IP address haha - so a false positive - we will update it to transformers==5.15.1 which does not trip the false positive issue

  6. danielhanchen commented on Nov 22, 2026

    @danielhanchen
    Member

    http://<DO_NOT_PRESS>5.13.0.1/ is on the Safe Browsing malware list for Xprotect, so transformers==5.13.1 blocks it

  7. danielhanchen commented on Nov 22, 2026

    @danielhanchen
    Member

    @redspider yes as you suggested it is in fact 5.13.1 transformers getting blocked

  8. fareslassoued commented on Nov 22, 2026

    @fareslassoued

    @danielhanchen so do we have to wait for next release although pr is merged?

  9. danielhanchen commented on Nov 22, 2026

    @danielhanchen
    Member

    I'm doing a new pypi now!

  10. changed the title [-][Bug] Saw "A script was blocked because it contains malware. This script did not harm your Mac." while updating unsloth today[/-] [+][Bug] Saw "A script was blocked" - `transformers==5.13.1` trips some scanners[/+] on Nov 22, 2026
  11. danielhanchen commented on Nov 22, 2026

    @danielhanchen
    Member

    Actually hm - for now please get the build from mainline source or use Unsloth Desktop's installation process directly - we have to delay the release until tomorrow sorry

  12. danielhanchen commented on Nov 23, 2026

    @danielhanchen
    Member
  13. Q-coder commented on Nov 23, 2026

    @Q-coder

    Fixed the Malware warning for me. MacOs 26.7.3 on M4 Max

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

    bugfeature request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions