Skip to content

Pin the Hermes remote installer and harden consent - #7179

Merged
danielhanchen merged 4 commits into
unslothai:mainfrom
Imagineer99:fix/remote-installer-warning
Jul 20, 2026
Merged

danielhanchen merged 4 commits into
unslothai:mainfrom
Imagineer99:fix/remote-installer-warning

Conversation

@Imagineer99

@Imagineer99 Imagineer99 commented Jul 16, 2026 •

Copy link
Copy Markdown
Member

Summary

  • retain explicit, default-no consent before executing a third-party installer
  • pin the fetched Hermes POSIX and PowerShell installer scripts to immutable upstream commit f1af945f6c576eccb126fa955edc9be258b33020
  • pass the same commit through --commit / -Commit, pinning the repository checkout performed by the installer too
  • distinguish pinned third-party content from unpinned custom installer URLs in the security warning

Why the original mitigation was incomplete

The issue is real: curl | bash / irm executes remote content with the user's privileges. A warning improves consent but does not prevent the upstream branch or vanity-domain response from changing between review and execution. Before the follow-up, the Hermes install remained mutable. After it, both the downloaded script and its checkout target are bound to one full Git commit.

Validation

  • Linux/WSL complete unsloth_cli/tests/test_start.py: 214 passed
  • native Windows: 202 passed, 8 expected platform skips; all installer/security tests pass (four unrelated pre-existing Windows assumptions remain in the full file)
  • fetched the exact pinned upstream install.sh and install.ps1 without executing them
  • Bash syntax parse passes; PowerShell AST parse passes
  • both upstream scripts expose and use their commit parameter for git checkout
  • generated POSIX and PowerShell install hints parse correctly
  • targeted Ruff and git diff --check: pass

Compatibility

Both Hermes-supported installer forms keep their existing skip-setup behavior. No browser, model, GPU, or hardware path changes. The security tradeoff is intentional: installation remains reproducible but will not automatically pick up future Hermes installer changes until Unsloth reviews and updates the pinned commit.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request enhances the security warning displayed to users when installing an agent from an external source, explicitly warning them about executing unverified third-party scripts. The corresponding unit tests have been updated to assert the new warning messages. There are no review comments to address, and the changes look solid.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@Imagineer99 Imagineer99 changed the title Harden remote installer security warning Pin the Hermes remote installer and harden consent Jul 16, 2026
@danielhanchen

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

Reviewed commit: 0a31541842

ℹ️ 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".

@danielhanchen danielhanchen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed: pins the Hermes installer script and its checkout to an immutable commit and hardens the consent warning. Verified the commit exists and both installers consume --commit/-Commit.

@danielhanchen
danielhanchen merged commit e0132b6 into unslothai:main Jul 20, 2026
43 of 44 checks passed
VectorCipher pushed a commit to VectorCipher/unsloth that referenced this pull request Jul 20, 2026
Pin the fetched Hermes install.sh/install.ps1 and the checkout they perform to an immutable upstream commit, and distinguish pinned from unpinned sources in the consent warning.
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.

2 participants