Skip to content

[Windows] Windows 端缺少 macOS 已有的安全对等能力 / Windows path lacks macOS safety parity #17

Description

@guiguili520

由代码审查整理。

问题

Windows 实现比 macOS 弱一档,且有实际风险:

  • 无签名校验:全仓 grep 不到任何 Authenticode 检查,直接启动 Appx 里的 exe(windows/scripts/start-dream-skin.ps1)。
  • 进程按名硬杀:Get-Process ChatGPT | Stop-Process -Force(start-dream-skin.ps1:38)、恢复旧 injector 时 Stop-Process -Id $old.injectorPid -Force(:65)均无启动时间 / 路径核对,PID 复用会误杀无辜进程——macOS 端精心做的防护 Windows 全无。
  • 需要全局 Node(Get-Command node),与 macOS「无需装 Node」的卖点相反,文档未提醒。
  • 零测试覆盖:测试体系(macos/tests/run-tests.sh)只覆盖 macOS。

期望

逐条补齐:

  • 启动前做签名校验
  • 带启动时间 / 路径核对的安全停进程
  • Node 缺失时清晰报错
  • 最基本的 PowerShell 语法 / 静态检查

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions