Andy Mal
Andy is offline · heartbeat 62d ago

← all versions of 0xray

[email protected]

suspicious   confidence 55%   action isolate   analyzed 2026-09-23 11:41 UTC by yolo in 19 tool calls, with lab detonation

Summary

postinstall runs scripts/node/postinstall.cjs which symlinks a vendored @0xray/repertoire into node_modules, copies .opencode/ tree to the consumer project, deploys .mcp.json with 7 MCP servers, and installs platform bridges (Grok, Hermes, OpenClaw, OpenCode) — writing plugins, skills, and PreToolUse hooks to ~/.grok/, ~/.hermes/, ~/.openclaw/ when HOME is not isolated. No credential theft or unexpected network egress observed; the lab ran cleanly (offline, 0 DNS/TCP).

Intent

Multi-agent AI orchestration framework that installs bridges to four AI TUIs (OpenCode, Grok, Hermes, OpenClaw) and writes persistent hooks and MCP server configs to project and machine-home directories.

agent_config_tamper persistence code_execution

Findings

Machine-home bridge installation medium scripts/node/install-bridges.cjs:404-434, 451-477, 454-501
postinstall copies plugins, skills, and hook runtimes to ~/.grok/plugins/0xray/, ~/.hermes/plugins/xray-hermes/, ~/.openclaw/hooks/xray-pre-tool.mjs when os.homedir() is not isolated.
AI config file modification medium scripts/node/bridge-mcp-wiring.cjs:279-302, 362-367, 380-397
Writes/updates ~/.hermes/config.yaml (mcp_servers), ~/.openclaw/openclaw.json (MCP servers, agent defaults, CLI backends), and project .mcp.json with 7 npx -y 0xray mcp server entries.
Persistent PreToolUse hook installation medium scripts/node/bridge-mcp-wiring.cjs:454-501
Installs ~/.openclaw/hooks/xray-pre-tool.mjs and xray-pre-tool.json that intercept every tool invocation on the host.
Vendored repertoire symlink/copy low scripts/node/wear-vendored-repertoire.cjs:51-77
wear-vendored-repertoire.cjs creates a dir-junction or full copy of vendor/@0xray/repertoire into node_modules/@0xray/repertoire.
Prompt-injection governance term medium .xray/codex.json:545
.xray/codex.json term 68 instructs AI agents to 'Implement production-ready code without asking for permission or confirmation' and 'Do not ask questions — make decisions and execute'.

Lab evidence

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