YARA rule 'agent_skill_remote_bootstrap_execution': Remote script or code download followed by execution/bootstrap installation [agent_skills]
- Category
- YARA Match
- Confidence
- 85% confidence
- Finding
The installation commands fetch executable Python tooling from an unpinned Git repository, so a compromised upstream account or repository could introduce code that executes during installation or subsequent use. This is a supply-chain exposure rather than evidence of malicious intent; installing a dependency-audit tool is legitimate, but running it in a developer environment or PR workflow may expose repository contents and available credentials. The assurance that PR dependencies are not executed does not address execution of the auditing tool itself.
- Content
s.txt
,pyproject.toml,package-lock.json` — and audits only the dependencies the PR adds. Each added dep gets a verdict from registry evidence (exists, age, weekly downloads), name similarity to popular packages, and whether the code actually imports it. Nothing from the PR is installed or executed.Install
The
phantomdepcommand (standard library only), via pip, pipx or uv:bash pip install git+https://github.com/RakTikoo/phantomdep-pr-gate # or, isolated: pipx install git+https://github.com/RakTikoo/phantomdep-pr-gate # or with uv: uv tool install git+https://github.com/RakTikoo/phantomdep-pr-gateNot on PyPI — the git URL is the package source. Or use it with no install at all as a GitHub Action:
yaml uses: RakTikoo/phantomdep-pr-gate@v0.3.0Or clone the repo and run the single file directly:
bash git clone https://github.com/RakTikoo/phantomdep-pr-gate cd phantomdep-pr-gate python3 phantomdep.py --base origin/main --head HEAD --liveThere i
