type-expand
Warn
Audited by Gen Agent Trust Hub on Jul 2, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONREMOTE_CODE_EXECUTIONEXTERNAL_DOWNLOADSPROMPT_INJECTION
Full Analysis
- [REMOTE_CODE_EXECUTION]: The script
scripts/expand-type.tsusesmodule.createRequireto dynamically load thetypescriptmodule from a path computed from the target file's location. This allows for the execution of arbitrary code if the analyzed directory contains a maliciouspackage.jsonornode_modulesfolder. - [COMMAND_EXECUTION]: The skill instructions direct the agent to execute shell commands using
pnpm exec tsx. This executes a local script provided with the skill, utilizing the system's shell environment and allowing for execution of the script at a local path. - [EXTERNAL_DOWNLOADS]: The skill documentation refers to
pnpm dlx tsx, which involves fetching thetsxpackage from the public npm registry for execution. - [PROMPT_INJECTION]: The skill reads and processes the content of external TypeScript files, which serves as an indirect prompt injection surface. Maliciously crafted source code or comments could potentially influence the agent's behavior.
- Ingestion points: Source files specified via the
--fileargument. - Boundary markers: Expanded types are returned within markdown code blocks.
- Capability inventory: The skill has file system read access and shell command execution capabilities.
- Sanitization: The script uses the TypeScript compiler API to parse types, but does not explicitly filter or sanitize comments within the ingested files.
Audit Metadata