T03 · Remote Payload Retrieval and Execution
- Location
scripts/detect_network.py:28- Finding
Automatic Retrieval and Execution of Mutable Code Through an Unverified Third-Party Mirror
- Content
View full analysis
3s) need_github_mirror = not github_ok or github_ms > 3000 need_pypi_mirror = not pypi_ok or pypi_ms > 3000 result = { "github": { "direct_reachable": github_ok, "latency_ms": round(github_ms, 1) if github_ms >= 0 else None, "use_mirror": need_github_mirror, "prefix": "https://ghfast.top/https://github.com" if need_github_mirror else "https://github.com", }, "pypi": { "direct_reachable": pypi_ok, "latency_ms": round(pypi_ms, 1) if pypi_ms >= 0 else None, "use_mirror": need_pypi_mirror, "index_flag": "-i https://pypi.tuna.tsinghua.edu.cn/simple" if need_pypi_mirror else "", }, } return result ``` The selected source is subsequently used by the following commands: ```bash docker exec bash -c " cd /tmp && git clone ${GITHUB_PREFIX}/FlagOpen/FlagGems cd FlagGems && pip install ${PIP_INDEX} -e . " ``` ```bash docker exec bash -c " cd /tmp && git clone ${GITHUB_PREFIX}/flagos-ai/FlagCX cd FlagCX && git submodule update --init --recursive make -j\$(nproc) " ``` ```bash docker exec bash -c " cd /tmp && git clone ${GITHUB_PREFIX}/flagos-ai/vllm-plugin-FL cd vllm-plugin-FL pip install ${PIP_INDEX} -r requirements.txt pip install --no-build-isolation -e . " ``` ### Technical Analysis The Skill switches from GitHub ...[truncated 3243 chars]- Remediation
View remediation
