grok-cli
Pass
Audited by Gen Agent Trust Hub on Sep 12, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The skill uses
subprocess.Popento launch the localgrokexecutable and its own background worker processes to manage ACP (Agent Client Protocol) sessions. Evidence is found inscripts/acp_client.pyandscripts/agent_task_runtime.pywhere subprocesses are created to handle the external agent's lifecycle. - [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted input through task prompts and handles responses from the external Grok agent, creating a surface for potential instruction injection. 1. Ingestion points: Prompts provided via
--prompt,--prompt-file, or stdin inscripts/grok.py. 2. Boundary markers: Prompts are encapsulated within JSON-RPC messages sent to the Grok agent. 3. Capability inventory: Execution of subprocesses and local file system access for logging and state management. 4. Sanitization: Standard JSON encoding is used for message transport between processes. - [DYNAMIC_EXECUTION]: The skill utilizes
ctypesto interface with the Windowskernel32library to manage process groups and ensure reliable cleanup of the background agent processes. Evidence is found inscripts/agent_task_runtime.pywherectypes.WinDLLis used to callCreateJobObjectWandAssignProcessToJobObject.
Audit Metadata