pi-delegate
Pass
Audited by Gen Agent Trust Hub on Oct 4, 2026
Risk Level: SAFECOMMAND_EXECUTIONCREDENTIALS_UNSAFEINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill launches the 'Pi' worker process via
child_process.spawnwithshell: false. This approach prevents shell injection attacks. It also safely resolves Windows npm shims to avoid shell usage on that platform. - [CREDENTIALS_UNSAFE]: A dedicated
redactSensitivefunction inscripts/pi-worker.mjsidentifies and masks secrets such as API keys, authorization headers, and platform-specific tokens (e.g., GitHub, Slack) in the tool's output before it is processed or logged. - [INDIRECT_PROMPT_INJECTION]: The skill processes task objectives that could contain untrusted instructions. It mitigates this via:
- Ingestion points: The
objectiveandpromptfields in the JSON request. - Boundary markers: The
buildPromptfunction uses structured headers to separate task components. - Capability inventory: The worker process can read/write files and execute tools (e.g.,
bash,grep). - Sanitization: Input is validated by
looksVagueto reject non-atomic tasks, and output is scrubbed byredactSensitive. - [SAFE]: The skill implements significant defensive coding practices to ensure task delegation is performed within a bounded, monitored, and redacted environment.
Audit Metadata