Skip to content

MuseLink v0.3.3

Latest

Choose a tag to compare

@github-actions github-actions released this 28 Nov 12:24
· 1 commit to main since this release

下载文件(Windows x64 / Linux x64 / macOS Universal)

平台与文件 说明
MuseLink-0.3.3-windows-x64-setup.exe Windows 安装版(NSIS)。安装后支持「关于 → 检查更新」应用内 Minisign 验签更新与自动重启。
MuseLink-0.3.3-windows-x64-portable.zip Windows 免安装便携版。完整解压后运行 muse-connector.exe(支持新版本提醒与直达下载)。
MuseLink-0.3.3-linux-x64.AppImage Linux x64 AppImage。赋予执行权限后直接运行(支持应用内 Minisign 验签更新与自动重启)。
MuseLink-0.3.3-linux-x64.deb Linux x64 .deb。通过包管理器安装(支持新版本提醒与更新详情)。
MuseLink-0.3.3-macos-universal.dmg macOS 安装镜像(Apple Silicon & Intel 通用版)。打开后将 MuseLink.app 拖入 Applications。
MuseLink-0.3.3-macos-universal.app.zip macOS 便携包(Apple Silicon & Intel 通用版)。直接解压即可得到 MuseLink.app。
SHA256SUMS.txt 核对上述全部发布产物的 SHA-256 校验和。
latest.json / *.sig 供应用内自动更新器使用的双平台静态更新清单与 Minisign 签名文件。

⚠️ macOS 首次启动特别注意(重要):

  • 本版本 macOS 包同时原生支持 Apple Silicon(M 系列)与 Intel Mac,兼容 macOS 14(Sonoma)及更早版本(最低 macOS 10.13 / 11.0,无需 macOS 15)。
  • 由于 macOS 包尚未经过 Apple 开发者签名与公证(Notarization),从浏览器下载后首次打开会被 Gatekeeper 拦截,请按以下两步放行:
    1. 先双击尝试打开一次 MuseLink.app,被拦截后进入 系统设置 → 隐私与安全性,滚动到「安全性」区域点击 仍要打开;
    2. 若在 macOS Sequoia(15+)上提示「已损坏,无法打开」,在终端执行一次以下命令清除下载隔离属性即可正常打开:
      xattr -dr com.apple.quarantine /Applications/MuseLink.app
  • 沙箱命令执行(exec)目前仅支持 Windows;macOS 与 Linux 支持完整文件 API(搜索 / 列表 / 读取 / 写入 / 建目录)及 Tailscale / Cloudflare 隧道。

Windows 版本需要 WebView2;由于未进行商业代码签名,Windows 可能提示未知发布者。

本版本更新(v0.3.3)

优化与新增

  • 新增 Tailscale Serve(仅 Tailnet 内网)连接方式与可配置 HTTPS 端口:当 Muse 与目标设备位于同一 Tailnet 时,可在「连接」页切换为 Tailscale Serve 自动托管纯内网 HTTPS 转发、消除手动配置 tailscale serve 的黄色报警,并支持自定义对外 HTTPS 端口以避开 443 端口冲突。
    • 新增 tailscale_serve 提供方与 https_port 配置(tunnel.rs、profile.rs、service.rs):Tailscale Funnel 支持 443(默认)/ 8443 / 10000,Tailscale Serve 支持 443 / 8443 / 10000 及 1–65535 自定义端口;自动托管 --https=<port> 启停与按端口隔离的独占检查,不干涉其他端口上的既有服务,并无缝复用同端口手动 tailscale serve(443 省略端口、非 443 自动保留 :port)。
    • 双向防误暴露保护:在 Tailscale Funnel 模式下检测到所选端口已存在同目标纯内网 tailscale serve 映射时,拒绝自动覆盖升级为公网 Funnel 并给出切换指引;在 Tailscale Serve 模式下检测到该端口已开启公网 Funnel 时,同样拒绝按纯内网接管。
    • 连接页新增 HTTPS 端口选择器、常显提供方说明与 Tailscale Serve 内网说明卡片(内置 MagicDNS / HTTPS Certificates 悬停解释与 Tailscale DNS 管理台快捷入口);概览页、首次配置指引与入口健康测试同步适配 Tailnet 语境与中 / 英 / 日三语文案。

安全与稳定性加固

  • 加固命令审批的混淆命令与远程下载即执行检测(#15,感谢 @KammyAugust11):命令审批新增识别 PowerShell -EncodedCommand 各类前缀缩写与常见下载即执行(download cradle)模式,命中时始终强制单次确认,避免绕过会话级免打扰。
    • 覆盖 PowerShell -EncodedCommand 的长前缀(-enc / -enco 等)与 -ec,并将 -e / -en 等短缩写限定于 powershell / pwsh 调用上下文,避免误伤 pip install -e .、rg -e、node -e 等常规开发命令。
    • 新增 download_cradle 风险标签及三语审批弹窗文案,拦截 Net.WebClient(DownloadString / DownloadData / DownloadFile)以及 Invoke-WebRequest / iwr / Invoke-RestMethod / irm / curl / wget 结合 iex 或管道送入解释器执行的命令;单纯下载到文件保持原审批级别。
  • 受控命令子进程默认剥离凭证类环境变量(#14,感谢 @KammyAugust11):构建沙箱子进程环境块时自动剔除常见第三方令牌与密钥类环境变量,避免宿主环境凭证被代理执行的命令读取。
    • 新增平台无关模块 core/env_scrub.rs 并在 sandbox.rs 的 build_clean_env 接入,仅按变量名大小写不敏感匹配常见精确清单(如 GITHUB_TOKEN、AWS_SECRET_ACCESS_KEY、OPENAI_API_KEY 等)与敏感子串(TOKEN / SECRET / PASSWORD / PASSWD / API_KEY / APIKEY / PRIVATE_KEY / ACCESS_KEY / CREDENTIAL),绝不读取或记录变量值;PATH、SystemRoot、TEMP 等运行必需变量不受影响。
  • 发布产物增加构建来源证明(#16,感谢 @KammyAugust11):发布工作流为 Windows / Linux / macOS 三个平台的发布资产生成 GitHub 构建来源证明(build provenance attestation),用户可通过 gh attestation verify 校验下载的二进制确实由本仓库源码在 GitHub Actions 中构建,未被替换或篡改。

完整变更见 CHANGELOG.md,使用说明见 中文使用指南。


English

What's new in v0.3.3

Improvements & Added

  • Added Tailscale Serve (Tailnet-only) connection provider and configurable HTTPS ports: When Muse and the target device share the same Tailnet, switch to Tailscale Serve under Connection for managed private HTTPS forwarding without degraded warnings, and choose an alternate HTTPS port when port 443 is occupied by other services.
    • Added the tailscale_serve provider and https_port setting (tunnel.rs, profile.rs, service.rs): Tailscale Funnel supports ports 443 (default), 8443, and 10000, while Tailscale Serve supports 443, 8443, 10000, or any custom port (1–65535). Manages --https=<port> start/stop and per-port exclusivity checks without touching other ports, and reuses existing matching tailscale serve mappings (omitting :443 and preserving :port for custom ports).
    • Two-way exposure safeguards: Tailscale Funnel mode refuses to auto-upgrade an existing matching tailscale serve rule on the chosen port into a public Funnel and prompts you to switch providers; Tailscale Serve mode likewise refuses to take over a port where public Funnel is active.
    • Added the HTTPS port selector, always-visible provider descriptions, and a Tailnet-only connection guide card (with MagicDNS / HTTPS Certificates tooltips and quick links to the Tailscale DNS console) under Connection, plus localized Tailnet wording across Overview, Setup Guide, and health checks (zh-CN / en / ja).

Security & Stability

  • Hardened command approval against obfuscated flags and download cradles (#15 by @KammyAugust11): Command approval now detects PowerShell -EncodedCommand prefix abbreviations and inline download-and-execute (download cradle) patterns, always requiring single-use confirmation instead of session grants.
    • Matches -ec and longer -EncodedCommand prefixes (-enc, -enco, etc.) globally while scoping short prefixes (-e, -en) to powershell / pwsh invocations so normal developer commands like pip install -e ., rg -e, and node -e are not falsely escalated.
    • Added the download_cradle risk tag with localized approval dialog labels (zh-CN / en / ja) covering Net.WebClient (DownloadString / DownloadData / DownloadFile) and Invoke-WebRequest / iwr / Invoke-RestMethod / irm / curl / wget paired with iex or piped into an interpreter, while leaving plain file downloads unchanged.
  • Exec child processes now strip credential-like environment variables (#14 by @KammyAugust11): Common third-party tokens and secret environment variables are automatically removed when building the sandbox child-process environment block so host credentials cannot be read by agent-executed commands.
    • Added platform-independent core/env_scrub.rs wired into build_clean_env in sandbox.rs, matching variable names case-insensitively against a curated exact list (GITHUB_TOKEN, AWS_SECRET_ACCESS_KEY, OPENAI_API_KEY, etc.) and sensitive substrings (TOKEN, SECRET, PASSWORD, PASSWD, API_KEY, APIKEY, PRIVATE_KEY, ACCESS_KEY, CREDENTIAL) without ever reading or logging values; essential variables such as PATH, SystemRoot, and TEMP remain intact.
  • Build provenance attestation for release artifacts (#16 by @KammyAugust11): The release workflow now generates GitHub build provenance attestations for the Windows / Linux / macOS release assets, so users can verify with gh attestation verify that a downloaded binary was built from this repository's source on GitHub Actions and has not been substituted or tampered with.

⚠️ Important note for macOS first launch: macOS packages are ad-hoc signed and not notarized with an Apple Developer ID. On first launch:

  1. Try opening MuseLink.app once, then open System Settings → Privacy & Security → Security and click Open Anyway.
  2. If macOS Sequoia (15+) still reports that the app "is damaged and can't be opened", run once in Terminal:
    xattr -dr com.apple.quarantine /Applications/MuseLink.app

See CHANGELOG.en.md and the English quick start.


日本語

v0.3.3 の変更点

改善と新機能

  • Tailscale Serve(Tailnet 内のみ・非公開)接続方式と HTTPS ポート設定を追加:Muse 側と接続先が同一 Tailnet にある場合、「接続」から Tailscale Serve を選ぶだけでインターネットへ公開せず HTTPS 転送を自動管理でき、ポート 443 が他サービスで使用中の場合も別ポートへ変更できます。
    • tailscale_serve プロバイダーと https_port 設定(tunnel.rs、profile.rs、service.rs)を追加:Tailscale Funnel は 443(既定)・8443・10000、Tailscale Serve は 443・8443・10000 および任意のポート(1–65535)に対応します。選択したポート単位で --https=<port> の起動・停止と排他チェックを行い、別ポートのサービスに影響を与えず、手動構成済みの同一ポート tailscale serve もそのまま引き継ぎます(443 はポート省略、その他は :port を保持)。
    • 誤公開を防ぐ双方向ガード:Tailscale Funnel モードで選択ポートに同一ローカルポート向けの tailscale serve 設定を検出した場合は、自動で公開 Funnel へ昇格させず切り替えを案内します。逆に Tailscale Serve モードでも、そのポートで公開 Funnel が有効な場合は非公開モードとしての引き継ぎを拒否します。
    • 「接続」画面に HTTPS ポート選択、常時表示のプロバイダー説明、Tailnet 内接続ガイドカード(MagicDNS / HTTPS Certificates のツールチップと Tailscale DNS 管理画面へのリンク付き)を追加し、概要・初回設定ガイド・接続テストの 3 言語文言を統一しました。

セキュリティと安定性の強化

  • コマンド承認における難読化フラグとダウンロード&即時実行(download cradle)の検知を強化(#15 · @KammyAugust11):PowerShell の -EncodedCommand 省略形およびダウンロード内容を直接実行するパターンを検知し、セッション許可ではなく常に単回承認を必須化しました。
    • -ec および長めの -EncodedCommand 前方一致(-enc・-enco など)を常時検知しつつ、短い省略形(-e・-en)は powershell / pwsh 呼び出しの引数に限定し、pip install -e .・rg -e・node -e などの通常の開発コマンドの誤検知を防ぎました。
    • 新規リスクタグ download_cradle と 3 言語の承認ダイアログ表示を追加し、Net.WebClient(DownloadString / DownloadData / DownloadFile)や Invoke-WebRequest / iwr / Invoke-RestMethod / irm / curl / wget と iex・インタプリターへのパイプ実行を検知します(ファイルへの単純なダウンロードは影響を受けません)。
  • コマンド実行子プロセスから認証情報系の環境変数を既定で除去(#14 · @KammyAugust11):サンドボックス子プロセスの環境構築時に、一般的なサードパーティ製トークンやシークレット系の環境変数を自動で除外し、ホスト環境の認証情報が実行コマンドから読み取られるのを防ぎます。
    • プラットフォーム非依存の core/env_scrub.rs を追加して sandbox.rs の build_clean_env に組み込み、変数名のみを大文字・小文字区別なしで判定します(GITHUB_TOKEN・AWS_SECRET_ACCESS_KEY・OPENAI_API_KEY などの一覧と TOKEN / SECRET / PASSWORD / PASSWD / API_KEY / APIKEY / PRIVATE_KEY / ACCESS_KEY / CREDENTIAL を含む変数名を除外し、値は一切読み取り・記録しません。PATH・SystemRoot・TEMP などの必須変数は維持されます)。
  • リリース成果物にビルド来歴証明(Build Provenance Attestation)を追加(#16 · @KammyAugust11):リリースワークフローで Windows / Linux / macOS の各配布アセットに対する GitHub ビルド来歴証明を生成するようになり、ダウンロードしたバイナリが本リポジトリのソースコードから GitHub Actions 上でビルドされ、差し替えや改ざんが行われていないことを gh attestation verify で検証できるようになりました。

⚠️ macOS 初回起動時のご注意:macOS 版は Apple Developer ID による公証を行っていないため、初回起動時は システム設定 → プライバシーとセキュリティ → セキュリティ から このまま開く を選択してください。「壊れているため開けません」と表示される場合は、ターミナルで xattr -dr com.apple.quarantine /Applications/MuseLink.app を 1 回実行してください。

すべての変更履歴は CHANGELOG.ja.md、利用ガイドは README.ja.md をご覧ください。


What's Changed

  • Add build provenance attestation to the release workflow by @KammyAugust11 in #16
  • Scrub credential-like environment variables from exec child processes by @KammyAugust11 in #14
  • Harden approval classification against obfuscated commands and download cradles by @KammyAugust11 in #15

Full Changelog: v0.3.2...v0.3.3