typescript-expert
Warn
Audited by Gen Agent Trust Hub on Jul 20, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONEXTERNAL_DOWNLOADSPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The diagnostic script (
scripts/ts_diagnostic.py) usessubprocess.runwithshell=Trueto execute system commands. This method is utilized to enable shell-specific features like piping and output redirection, but it represents a security risk as it could allow for command injection if the strings being executed were manipulated by untrusted data.\n- [COMMAND_EXECUTION]: The instructions inSKILL.mdrecommend running destructive commands, specificallyrm -rf node_modules/.cache .tsbuildinfo, to troubleshoot module resolution errors. While these are common development fixes, they involve significant file system modifications.\n- [EXTERNAL_DOWNLOADS]: The skill frequently usesbunxandnpxto download and run various development tools (includingtsc,ts-migrate,typesync, andvitest) from the public NPM registry during its diagnostic and maintenance tasks.\n- [PROMPT_INJECTION]: The skill is susceptible to indirect prompt injection because it reads and processes local configuration files (package.json,tsconfig.json) and source code files from the project directory.\n - Ingestion points: Files are read using Python's
open()function and scanned with system utilities likegrepandtsc.\n - Boundary markers: There are no explicit delimiters or specific instructions to the agent to ignore potentially malicious directions found within the files it analyzes.\n
- Capability inventory: The agent is authorized to run shell commands, perform file system operations, and delete project directories.\n
- Sanitization: The skill does not perform validation or sanitization on the content of the files it reads before processing them as part of its diagnostic logic.
Audit Metadata