contractor
by ArvidSU
Overview
A deterministic task contract server for agent execution verification with human approval, behaving like CI for individual tasks.
Installation
npm startEnvironment Variables
- DATABASE_URL
- NODE_ENV
- CONTRACTOR_HTTP_PORT
- WORKSPACE_PATH
Security Notes
The system presents critical security risks. The `http` validation type allows for direct command injection via the `url` parameter (e.g., `url: "http://example.com'; rm -rf /;"`) which is embedded into a shell script executed within a Docker container. This constitutes a severe Remote Code Execution (RCE) vulnerability. Additionally, the `command` validation type allows agents to propose arbitrary shell commands for execution in a container. While human approval is required, detecting malicious or exploitable command sequences in complex validation specs is extremely difficult and error-prone. The `mcp-toolkit-manifest.json` explicitly mounts the host's Docker socket (`/var/run/docker.sock`) into the server's container and thus into the validation containers, granting them root privileges over the entire Docker daemon, which can lead to host compromise if any RCE vulnerability is exploited. Furthermore, the `ValidationRunner.ts` mounts the `workspacePath` (provided by the client, which could be any host path) into validation containers without explicitly enforcing read-only access (e.g. `src:dest:ro`), meaning by default, these containers have write access to potentially arbitrary host directories, posing a significant data integrity risk if combined with RCE.
Similar Servers
trigger.dev
A platform for building and executing reliable, scalable background tasks and complex workflows, supporting various runtimes (Node.js, Python, Bun), including advanced AI agent orchestration, event-driven processing, and real-time data handling.
mcp_massive
An AI agent orchestration server, likely interacting with LLMs and managing multi-agent workflows.
AgentUp
A developer-first framework for building, deploying, and managing AI agents, bringing Docker-like consistency and operational ease to AI agent development.
2ly
Skilder is an infrastructure layer for AI agent tooling, providing a private tool registry and embedded runtimes for integrating with various agent frameworks and custom tools.