Skip to content

Windows installer: restore the split-layout comment in setup.ps1 (Defender ML false positive) - #14520

Merged
danielhanchen merged 1 commit into
mainfrom
defender-setup-ps1-comment
Oct 21, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
defender-setup-ps1-comment

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Summary

On main, VirusTotal's Microsoft engine flags studio/setup.ps1 as Trojan:Script/Wacatac.C!ml (engine 1.26090, signatures 2026-10-20). That is the Windows Defender cloud machine-learning verdict. Every other engine is clean. setup.ps1 runs on every Windows install and unsloth studio update, and PowerShell passes the script text to AMSI before it runs it. If the endpoint agrees with this verdict, it can stop the install partway through.

This PR changes one comment and no code.

How it was found

The file was scanned at each step between the last clean main and the current one:

studio/setup.ps1 sha256 Microsoft engines
main d9aded3801 c90a3460... clean 0 / 61
after #14293 (UNSLOTH_HOME) 1a7529b6... clean 0 / 61
after #14473 (Unsloth Studio wording), current main c3bd31a3... Trojan:Script/Wacatac.C!ml 1 / 61
current main with the three #14473 strings reverted 1a7529b6... clean 0 / 61
current main with the old 5-line comment restored 0820e9d2... clean 0 / 61
this PR f752d87c... clean 0 / 61

Neither change was a problem alone. The detection needed both #14293 shortening a 5-line explanatory comment in Test-MasterRootNoteIsHonoured to one line and #14473's "Unsloth Studio" wording. Together they pushed the ML score over its threshold. Nothing in either change downloads, runs or hides anything, so this is a false positive.

The change

The comment is restored as a 4-line explanation. Its wording is updated for current behaviour: the old text said install.ps1 does not read UNSLOTH_HOME, which #14293 made untrue. The #14473 branding stays as it is.

Testing

  • comment_tools.py check --strict-ext: comment-only, no code changed.
  • studio/setup.ps1 parses with 0 errors in PowerShell.
  • All 69 test files that read studio/setup.ps1: 9391 passed, 0 failed.

Notes

  • !ml verdicts are fragile, so a later edit to this file could tip it over again. Re-scan studio/setup.ps1 and install.ps1 on VirusTotal before each release.
  • studio/setup.sh carries the same one-line comment. Defender does not scan it on Windows, so it is left unchanged.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-21T13:57:36.502128Z 0a6bbaa Manual request
🔒 Security Review ⚠️ Failed 2026-10-21T13:56:30.143429Z
We couldn’t complete this review. Comment @codex security review to try again.
0a6bbaa PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

The account paying for this security review has reached its Codex usage limits. The payer can check the Codex usage dashboard. For personal accounts, using credits requires enabling “Use credits for security reviews” in Code review settings. If you do not manage the paying account, contact this repository's admins.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

1 similar comment
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: 0a6bbaa53f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant