T08 · Insecure Dependencies
- Location
SKILL.md:8- Finding
Mandatory Execution of Unreviewed External Shell Scripts
- Content
View full analysis
source ../dolphindb-skills/scripts/dolphin_wrapper.sh # Method 2: Run from any location source ~/.jvs/.openclaw/workspace/skills/dolphindb-skills/scripts/dolphin_global.sh ``` A second external script is sourced later: ```bash # Load the environment detector source ../dolphindb-skills/scripts/load_dolphindb_env.sh ``` ### Technical Analysis The skill declares environment initialization to be mandatory and directs the user or agent to execute several shell scripts through `source`. These scripts are not included in the audited project, so their behavior and integrity cannot be verified from the available artifact. Unlike launching an isolated subprocess, `source` evaluates the target script in the current shell. The external script consequently inherits the invoking process's permissions and can: - Execute arbitrary commands with the invoking user's privileges. - Read or alter environment variables and shell state. - Define or replace functions, aliases, and command wrappers. - Change the working directory or shell options. - Access files and credentials available to the invoking process. - Influence all subsequent commands in the same shell session. The referenced paths depend on mutable sibling installations. No exact dependency version, cryptographic digest, ownership validation, or integrity check is required before execution. ### Attack Path 1. An attacker compromises, replaces, or modifies the installed `dolphindb-skills` dependency or one of its referenced shell scripts. 2. A user or agent loads this skill and follows its mandatory initialization procedure. 3. The current shell executes the attacker-controlled script through `so ...[truncated 685 chars]- Remediation
View remediation
