T08 · Insecure Dependencies
- Location
SKILL.md:155- Finding
Execution of Unreviewed Project Code and Third-Party Dependencies
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 155-165
Vulnerability Type: Unreviewed dependency installation and arbitrary project-code execution
Risk Level: HighVulnerable Code
bash cd <PROJECT_DIR> python3 -m venv .venv . .venv/bin/activate pip install -r requirements.txt cp .env.example .env nohup env PYTHONUNBUFFERED=1 python3 cli_bot.py loop > logs/runner_v2.log 2>&1 < /dev/null &Technical Analysis
The Skill is intended to operate against an arbitrary user-provided project directory. It instructs the agent to install all packages named in
requirements.txtand then executecli_bot.pywithout first requiring source review, dependency pinning, hash verification, package-origin validation, or integrity checks.Python package installation may execute package build logic during installation. The subsequent invocation of
cli_bot.pydirectly executes project-controlled Python code. Because the workflow also expects a Polymarket private key and wallet configuration to be available through.env, malicious project code or a compromised dependency could access highly sensitive trading credentials.The use of a virtual environment limits Python package placement but does not sandbox processes or prevent access to the user's files, environment variables, network, wallet credentials, or other resources available to the invoking account.
Attack Path
- An attacker supplies or modifies the designated project directory.
- The attacker adds a malicious dependency to
requirements.txt, compromises an existing dependency source, or inserts malicious behavior intocli_bot.py. - The agent follows the Skill and runs
pip install -r requirements.txt. - Malicious package installation logic may execute with the permissions of the invoking user.
- The agent launches
cli_bot.py, causing any project-controlled Python payload to execute. - The paylo ...[truncated 597 chars]
- Remediation
View remediation
Remediation Suggestions
- Require a source-code security review of
cli_bot.py, imported local modules, package configuration, and installation hooks before execution. - Require exact dependency versions and cryptographic hashes, preferably through a reviewed lockfile and
pip install --require-hashes. - Restrict package installation to explicitly approved indexes and disable unexpected extra indexes.
- Check packages for typosquatting, dependency confusion, known vulnerabilities, and unexpected source distributions.
- Run the project in an isolated, least-privilege container or dedicated account with narrowly restricted filesystem and network access.
- Do not expose live private keys during installation or initial testing. Use paper mode and test credentials first.
- Inject live credentials only after code integrity has been verified, and use a wallet with limited funds and permissions where possible.
- Require explicit user approval before installing dependencies or running code from a newly selected project directory.
- Require a source-code security review of
