typescript-expert
Pass
Audited by Gen Agent Trust Hub on Feb 17, 2026
Risk Level: SAFE
Full Analysis
- COMMAND_EXECUTION (LOW): The
ts_diagnostic.pyscript utilizessubprocess.run(shell=True)to perform project analysis tasks such as version checking (node -v,npx tsc --version) and code searching (grep). - Evidence: Functions like
check_versions,check_type_errors, andcheck_any_usageinvoke a genericrun_cmdwrapper. - Context: The commands are hardcoded and do not interpolate untrusted user input, making the risk of command injection negligible in its current form. Use of
shell=Trueis common for utility scripts but should generally be replaced with argument lists for better security. - INDIRECT_PROMPT_INJECTION (LOW): The script parses local
package.jsonandtsconfig.jsonfiles and searches files within asrc/directory. - Ingestion points:
scripts/ts_diagnostic.pyreads local JSON configuration files and directory contents. - Boundary markers: None (standard file reading).
- Capability inventory: Read access to local filesystem, shell command execution for diagnostics.
- Sanitization: The script uses
json.load()for parsing, which is safe against code execution, and limitsgrepsearches to specific extensions. - EXTERNAL_DOWNLOADS (SAFE): The script uses
npx, which may attempt to download packages from the npm registry if they are not found locally. This is standard behavior for JavaScript development environments.
Audit Metadata