Andy Mal
Andy is offline · heartbeat 62d ago

← all versions of 0xray

[email protected]

suspicious   confidence 65%   action isolate   analyzed 2026-09-23 21:56 UTC by yolo in 17 tool calls, with lab detonation

Summary

The postinstall hook copies .opencode/ to the project, writes AGENTS.md, .mcp.json (with 7 npx -y 0xray mcp ... entries), patches Grok hooks.json, and registers MCP servers via grok CLI. It also writes plugins to ~/.hermes/, ~/.grok/, ~/.openclaw/. Requires --i-mean-it for destructive foundry release operations. No credential theft or phone-home observed; the lab produced 0 network connections.

Intent

Multi-agent orchestration framework that installs bridges to OpenCode, Grok, Hermes, and OpenClaw by modifying their configuration directories and installing git hooks.

agent_config_tamper persistence code_execution reconnaissance

Findings

Agent config tamper via postinstall high scripts/node/install-bridges.cjs:346
scripts/node/install-bridges.cjs copies .opencode/ tree, writes .mcp.json with 7 npx MCP servers, patches .grok/plugins/0xray/hooks.json, and registers servers via `grok mcp add` (line 346).
Persistence via git hooks medium scripts/hooks/install-hooks.cjs:75
scripts/hooks/install-hooks.cjs installs pre-commit and post-commit hooks into .git/hooks/ that invoke node scripts on every commit (line 75-).
Download-execute at require time medium AGENTS-consumer.md:25
.mcp.json contains `npx -y 0xray mcp <cmd>` entries (line 25 of AGENTS-consumer.md) which will download and execute the package from npm registry on each MCP server invocation.
Prompt injection in codex rules high .xray/codex.json:545
.xray/codex.json rule 68 instructs agents to 'Take ownership. Implement production-ready code without asking for permission or confirmation.' (line 545).
Home directory plugin writes high scripts/node/bridge-mcp-wiring.cjs:22-25
install-bridges.cjs copies plugins to ~/.hermes/plugins/xray-hermes/, ~/.grok/plugins/0xray/, and ~/.openclaw/ (lines 22-25, 381-398).
No network egress at install time info lab report
Lab run produced 0 DNS names, 0 HTTP requests, 0 TLS SNI. Offline isolated.

Lab evidence

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