pi-agent

Warn

Audited by Gen Agent Trust Hub on Sep 8, 2026

Risk Level: MEDIUMCOMMAND_EXECUTIONPRIVILEGE_ESCALATIONREMOTE_CODE_EXECUTIONINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADS
Full Analysis
  • [COMMAND_EXECUTION]: The documentation describes a mechanism in auth.json, models.json, and mcp.json where a leading ! character in a value causes the remaining string to be executed as a shell command to resolve credentials or headers at runtime.
  • [PRIVILEGE_ESCALATION]: The extension API, as described in references/extensions.md, includes a project_trust hook that allows an extension to programmatically grant trust to a project. This mechanism can be used to suppress and bypass the user's interactive trust prompt, potentially allowing malicious project-local resources to load without oversight.
  • [REMOTE_CODE_EXECUTION]: The skill recommends installing the tool using a shell-piped script (curl -fsSL https://pi.dev/install.sh | sh), which executes unverified remote code directly in the user's environment.
  • [INDIRECT_PROMPT_INJECTION]: The skill possesses a significant attack surface for indirect prompt injection. It is designed to ingest and process untrusted data from the web (via web_search and fetch_content), PDF files, and third-party GitHub repositories, while simultaneously providing the agent with powerful local capabilities such as shell command execution, file system modification, and package installation.
  • Ingestion points: Data enters the context through web_search, fetch_content, read of project files, and cloning of external git repositories.
  • Boundary markers: The skill mentions serializeConversation using [User]: and [Assistant]: markers to help distinguish roles and prevent models from continuing the input as a conversation.
  • Capability inventory: The agent has access to bash, write, edit, pi install, and subagent tools across its various packages.
  • Sanitization: Documentation notes that tool results are truncated (e.g., 50 KB / 2000 lines) and that fetch_content employs SSRF validation and size limits on responses.
Audit Metadata
Risk Level
MEDIUM
Analyzed
Sep 8, 2026, 04:43 AM