T08 · Insecure Dependencies
- Location
SKILL.md:10- Finding
Execution of Unpinned Dependencies and Unaudited External Application Code
- Content
View full analysis
/tmp/heartclaws.log 2>&1 & ``` ### Technical Analysis The instructions install `fastapi` and `uvicorn` without pinning package versions or validating package hashes. Consequently, the dependency versions resolved at installation time can differ from those reviewed or tested by the author. The instructions then import and execute `server:app` from `~/shared/projects/heartclaws`. That directory is outside this skill package and its contents are absent from the audited artifact. Importing the application through Uvicorn executes Python module-level code in `server.py`, so the effective executable payload cannot be established by reviewing this skill alone. Anyone capable of modifying that external directory can alter the code that executes when the setup instructions are followed. This finding does not establish that the named PyPI packages are malicious. The vulnerability is the unpinned dependency resolution and execution of unaudited, independently mutable application code. ### Attack Path 1. An attacker compromises a dependency source, influences dependency resolution, or gains write access to `~/shared/projects/heartclaws`. 2. The attacker places malicious import-time code in `server.py` or causes an unsafe package version to be installed. 3. The user follows the skill instructions and runs `pip install fastapi uvicorn`. 4. The user starts Uvicorn with `server:app`. 5. Python imports the external module and executes its module-level code under the user's account. 6. The payload can access the same files, env ...[truncated 502 chars]- Remediation
View remediation
