grok-delegate
Pass
Audited by Gen Agent Trust Hub on Oct 14, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADS
Full Analysis
- [COMMAND_EXECUTION]: The skill invokes the
grokandgitcommand-line tools via a Node.js relay script. - Argument Validation: Critical flags such as
--model,--effort, and--sessionare validated against a strict alphanumeric allowlist (/^[A-Za-z0-9][A-Za-z0-9._:\/-]*$/) to prevent shell injection. - Shell Usage: On Windows systems, the script uses
shell: trueto executegrokto ensure compatibility with NPM shims. While path arguments are quoted, the script serializes the command string, which could present a risk if the orchestrating agent passes unverified path strings containing shell metacharacters. - [INDIRECT_PROMPT_INJECTION]: The skill acts as a bridge, passing natural language instructions ("briefs") to an external implementer (
grok) that possesses significant workspace permissions. - Ingestion points:
scripts/relay.mjsreads the task brief from files or standard input. - Boundary markers: Documentation encourages the use of XML tags (e.g.,
<task>,<verification_loop>) to define task boundaries and safety constraints for the implementer. - Capability inventory: The
groktool can perform file writes, execute shell commands, and access the network. - Sanitization: No sanitization is performed on the brief's natural language content; the skill relies on the implementer's internal safety protocols and a mandatory human review of the generated changes.
- [EXTERNAL_DOWNLOADS]: The skill documentation recommends installing the
grokCLI from the official@xai-officialNPM registry. As a well-known and reputable service, this dependency is considered safe.
Audit Metadata