T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:20- Finding
Overbroad Inspection of User Shell Configuration
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This bioinformatics workflow skill is coherent, but it gives unsafe templates for handling secrets and automatically inspecting user shell profiles, so users should review it before installing.
Install only if you are comfortable reviewing and adapting the templates. Replace `source .env` with a non-executing dotenv parser, avoid automatic shell-profile inspection unless the user explicitly consents, and treat generated logs as sensitive until redaction is reliable.
SKILL.md:20Overbroad Inspection of User Shell Configuration
SKILL.md:604Arbitrary Shell Command Execution Through Sourced .env Files
SKILL.md:612Plaintext Secrets May Persist in Unredacted Pipeline Logs
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
*.log
# 密钥(Git 忽略!)
.env
.env.local
# IDE
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
*.log
# 密钥(Git 忽略!)
.env
.env.local
# IDE
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
*.log
# 密钥(Git 忽略!)
.env
.env.local
# IDE
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
*.log
# 密钥(Git 忽略!)
.env
.env.local
# IDE
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
*.log
# 密钥(Git 忽略!)
.env
.env.local
# IDE
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
*.log
# 密钥(Git 忽略!)
.env
.env.local
# IDE
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
*.log
# 密钥(Git 忽略!)
.env
.env.local
# IDE
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
*.log
# 密钥(Git 忽略!)
.env
.env.local
# IDE
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
*.log
# 密钥(Git 忽略!)
.env
.env.local
# IDE
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
*.log
# 密钥(Git 忽略!)
.env
.env.local
# IDE
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
*.log
# 密钥(Git 忽略!)
.env
.env.local
# IDE
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
*.log
# 密钥(Git 忽略!)
.env
.env.local
# IDE
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
*.log
# 密钥(Git 忽略!)
.env
.env.local
# IDE
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
*.log
# 密钥(Git 忽略!)
.env
.env.local
# IDE
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
*.log
# 密钥(Git 忽略!)
.env
.env.local
# IDE
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
# 密钥(Git 忽略!)
.env
.env.local
# IDE
.vscode/
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
# 密钥(Git 忽略!)
.env
.env.local
# IDE
.vscode/
The skill instructs sourcing .env directly in the shell before DVC remote configuration. If .env is modified maliciously or contains shell metacharacters/command substitutions, 'source .env' will execute arbitrary shell code in the operator context, turning a secrets-loading step into code execution.
# 从 .env 读取凭证
source .env
# S3
This finding is part of the same unsafe pattern: loading a .env file via shell sourcing in order to use cloud-related variables. In a skill that routinely handles API keys and storage credentials, this creates a realistic path for command execution and possible secret exfiltration if the .env file is attacker-controlled or tampered with.
# 从 .env 读取凭证
source .env
# S3
dvc remote add -d myremote s3://${S3_BUCKET_NAME}/dvc-storage
The provided run script template executes 'source .env' at runtime. In this skill context, the script is meant to be reused broadly for bioinformatics pipelines and may run with access to cloud credentials, databases, and HPC resources; sourcing an attacker-modified .env can therefore lead to arbitrary command execution and theft of those credentials.
cd "$PROJECT_DIR"
# --- 加载密钥 ---
source .env
# --- 激活环境 ---
conda activate {env_name}
This markdown skill file imposes a single language/locale throughout the instructions, examples, prompts, and user interaction guidance. Under the policy, forcing a specific language without offering user choice is a natural-language policy violation unless the locale restriction is clearly documented and justified, which is not present here.
The skill repeatedly states that all paths should be project-root-relative and that absolute paths should trigger warnings, yet this section explicitly standardizes an external repository location as ~/experience-pipelines/ and /path/to/experience-pipelines. That is a direct contradiction in the skill's own guidance, not merely an omitted detail.