You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
相关已有讨论:#810(桌面启动路径 + 无控制台宿主)、#1344(GUI 宿主的控制台闪现与 STARTF_USESHOWWINDOW 修法)、#1847(Windows 10 19041 同症状)。本机为 Windows 11 26100,补充了两点:把「Electron 宿主进程 vs 普通 node 父进程」做了隔离对照,以及 read-only 档位不受影响。
环境
DSH 桌面版 0.1.7-rc.2,Windows 11(build 26100),已装 PowerShell 7.6.6。
任何权限档为
workspace-write(默认档)的会话必现。现象
shell 命令一律返回
(no output)+ 退出码3221225794(0xC0000142STATUS_DLL_INIT_FAILED):进程在 DLL 初始化阶段就死了。工具结果里没有任何 enforcement / denial 元数据,看起来只是一个普通的非零退出码。隔离复现(同一份 runner、同一组参数,只换父进程)
直接调用
dsh-sandbox-windows-acl/lib/runner.js,带真实的--write-sid/--temp-write-sid:node.exe:read-only 与 workspace-write 都 exit 0DeepSeek Harness.exe(ELECTRON_RUN_AS_NODE=1):workspace-write 必死3221225794,read-only 正常cmd.exe死法完全相同已排除
PowerShell 版本、受限令牌创建本身(沙箱内
BUILTIN\Administrators正确显示 "Group used for deny only")、能力 SID 授权(手工补 ACE 无效)、CREATE_NO_WINDOW(windowsHide 两态在 node 父进程下都通过)、通用受限令牌(runas /trustlevel:0x20000下 pwsh 正常)。影响与绕行
桌面版上所有默认(workspace-write)会话都没有可用的 shell。本机绕行:会话切到
danger-full-access。另请确认 #1344 提到的STARTF_USESHOWWINDOW+SW_HIDE改法是否覆盖 Electron 宿主这一情形。最小复现(节选)
关键只有一处:让沙箱 runner 的父解释器变成桌面版可执行文件。
spawn(desktopExe, [runnerJs, '--workspace', ws, '--temp', tmp, '--mode', 'workspace-write', '--write-sid', sid, '--temp-write-sid', tsid, '--', 'C:\Windows\System32\cmd.exe', '/c', 'echo hi'],
{ env: { ...process.env, ELECTRON_RUN_AS_NODE: '1' }, stdio: ['pipe', 'pipe', 'pipe'] });
用 cmd.exe 就能复现(不必依赖 PowerShell),退出码 3221225794。
All reactions