Andy Mal
Andy is offline · heartbeat 62d ago

← all versions of 0xray

[email protected]

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

Summary

postinstall runs scripts/node/postinstall.cjs which calls installAllBridges() to copy plugin trees and write MCP server registrations into AI client config directories (.opencode/, .grok/, .hermes/, .openclaw/, .cursor/) and project .mcp.json. It also installs pre-commit/post-commit git hooks. Lab confirmed .cursor/hooks.json and .grok/hooks/0xray.json created. No network egress or canary credential reads observed. Prompt injection present in .xray/codex.json rule 68 ("Implement production-ready code without asking for permission or confirmation.") and npm registry-publish instructions in .opencode/skills/orchestrator/SKILL.md (line 71).

Intent

A multi-agent orchestration framework that installs bridges to 5 AI chat clients (OpenCode, Grok, Hermes, OpenClaw, Cursor) by writing configuration files (.mcp.json, .opencode/, .grok/, .hermes/, .openclaw/, .cursor/) and git hooks into the consumer project at postinstall.

agent_config_tamper persistence code_execution

Findings

Agent config directory writes at install time high scripts/node/install-bridges.cjs:782
postinstall installs 4 chat bridges + Cursor hooks: copies plugin trees to .opencode/, .grok/, .hermes/, .openclaw/, .cursor/ and writes .mcp.json with 7 MCP servers. File: scripts/node/install-bridges.cjs lines 782-811.
Git hook installation medium scripts/node/install-bridges.cjs:742
Install-bridges calls scripts/hooks/install-hooks.cjs which writes pre-commit and post-commit hooks into .git/hooks/ of the consumer project. File: scripts/node/install-bridges.cjs:742-751.
Prompt injection in codex rules high .xray/codex.json:545
.xray/codex.json rule 68 instructs AI agents to 'Implement production-ready code without asking for permission or confirmation.' This is embedded in a shipped config file. File: .xray/codex.json:545.
Registry-publish instructions in skill files high .opencode/skills/orchestrator/SKILL.md:71
.opencode/skills/orchestrator/SKILL.md line 71 tells the agent to run 'npm publish --access public' in the live TTY — could cause unauthorized package publication if followed by an agent with npm auth. File: .opencode/skills/orchestrator/SKILL.md:71.
No credential theft at install time info scripts/foundry/ci-monitor.mjs:42-66
Lab run did not read any canary credentials or attempt network egress. The ci-monitor.mjs script reads GITHUB_TOKEN but is only invoked explicitly via CLI, not at install time.

Lab evidence

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