A post on X tells traders to hand their AI agent "these 20 GitHub repos from best Hedge-funds & Quants". If the agent clones one and runs pip install . or npm install inside it, that repo's own install code runs as your user before any strategy script starts. If it runs pip install -r requirements.txt instead, the code that runs belongs to every listed dependency that pip builds from source. That code can read your environment variables and the .env files that hold exchange API keys, and it can reach the network. The post's summary doesn't list the repos, so this covers risks you can check, not reported incidents.
The BTCUSDT 1h chart above (USDT, 2026-11-21 21:00 to 2026-11-28 20:00 UTC) is market background only.
When installing from source, pip runs every top-level line of setup.py, not just custom cmdclass commands. A pyproject.toml project runs the build backend it names. npm runs the preinstall, install, postinstall and prepare scripts.
ls setup.py 2>/dev/null # if it exists, pip runs all of it: read the whole file
grep -nE '"(pre|post)?(install|prepare)"' package.json 2>/dev/null
grep -nE 'cmdclass|build-backend' setup.py pyproject.toml 2>/dev/null
grep -rnE 'os\.environ|getenv|load_dotenv|API_KEY|SECRET' --include='*.py' .
grep -rnE 'requests\.(get|post)|urllib|httpx|https?://' --include='*.py' .
A hit only marks a line to read. Trading bots read keys and call exchanges for good reasons, so check where the key goes and which hosts the code contacts.
An empty result doesn't prove the repo is safe. pip still runs setup.py, and the greps only cover .py files, so they miss obfuscated code and every dependency pip or npm installs.
grep won't catch prompt injection. Skim the README and code comments for sentences written to an AI, such as a request to run a command or send a file. An agent may follow them.
On your exchange's API page, check each key: withdrawals off, trading on only if this use needs it, and bound to an IP. Use a separate read-only key for research. Do the first install in a container or a new user account with no real keys in its environment and no copy of your .env.
This article was written with AI assistance.