Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of wind-agent-cli

[email protected]

clean   confidence 78%   action allow   analyzed 2026-09-24 21:14 UTC by yolo in 20 tool calls, with lab detonation

Summary

Postinstall scripts fix node-pty spawn-helper permissions on macOS and add windowsHide:true to @openai/codex-sdk on Windows — both benign. The Electron app writes API keys to a local store (encrypted with safeStorage) and copies user-requested passwords to the clipboard. No unexpected egress, no credential harvesting, no obfuscated payload execution.

Intent

A local-first desktop+server application for interacting with AI coding agents (Claude, Codex, etc.). The install hooks fix binary permissions and patch a dependency's subprocess behavior. The Electron desktop app copies passwords to the system clipboard on user request and stores a cloud-sync API key encrypted with Electron's safeStorage. Network calls go to the developer's own cloudcli.ai control plane.

Findings

Postinstall fixes node-pty permissions on macOS info scripts/fix-node-pty.js:56
scripts/fix-node-pty.js chmod's node-pty/prebuilds/darwin-*/spawn-helper to 0o755. Harmless platform fix.
Postinstall patches @openai/codex-sdk subprocess spawn options on Windows info scripts/fix-codex-sdk-windows-hide.js:49
scripts/fix-codex-sdk-windows-hide.js regex-replaces the codex-sdk spawn call to add windowsHide:true. Modifies a node_module file but only on win32 and only to a known pattern.
Electron copies user-requested passwords to system clipboard low electron/main.js:467
electron/main.js:467 calls clipboard.writeText(credentials.password) when the user triggers 'copy password' for a cloud environment. This is user-initiated, not automatic exfiltration.
API key stored locally, encrypted with Electron safeStorage info electron/cloud.js:15
electron/cloud.js:15 encrypts the cloud API key with safeStorage.encryptString before writing to disk.
Docs contain GitHub Actions ${{ secrets.* }} syntax examples info dist/api-docs.html:778
dist/api-docs.html:778 and public/api-docs.html:778 show ${{ secrets.GITHUB_TOKEN }} in example YAML — documentation snippets, not secret extraction.
Minified vendor code flagged as obfuscated (false positives) info dist/assets/Shell-Cr0LJvIl.js:1
The static prescreen flagged atob, Buffer.from(base64), String.fromCharCode in dist/assets/ (mermaid, cytoscape, xterm, codemirror bundles). These are legitimate library code.

Lab evidence

Install hooks ran in the isolated lab. Processes spawned: 10. Hooks: postinstall (exit 0), prepare (exit 127), require (exit 0).