pinescript
Warn
Audited by Gen Agent Trust Hub on Sep 30, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONDYNAMIC_EXECUTIONEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/pinescript_lint.mjsuseschild_process.spawnwith theshell: trueoption to execute a command constructed through simple string concatenation of thePINESCRIPT_LINT_CMDenvironment variable and command-line arguments. This pattern is vulnerable to shell command injection if file names or arguments contain metacharacters like;,&, or|. - [DYNAMIC_EXECUTION]: The linter script automatically loads environment variables from various
.envfiles within the project structure (e.g.,.opencode/skill/pinescript/.env). This allows a local project file to override thePINESCRIPT_LINT_CMDvariable and redirect execution to a malicious binary or command when the linter is invoked. - [EXTERNAL_DOWNLOADS]: The skill defaults to running
npx --yes pinescript-lint, which fetches and executes the linter package from the public npm registry at runtime without a pinned version. - [INDIRECT_PROMPT_INJECTION]: The skill processes external Pine Script files and passes their paths to the shell-executing linter script without sanitization. Ingestion points:
scripts/pinescript_lint.mjsreads file paths provided via command-line arguments. Capability inventory: Shell command execution viaspawnwithshell: true. Boundary markers: None implemented. Sanitization: None; arguments are joined directly into the shell command string.
Audit Metadata