huggingface-llm-trainer
Warn
Audited by Gen Agent Trust Hub on Aug 26, 2026
Risk Level: MEDIUMREMOTE_CODE_EXECUTIONCOMMAND_EXECUTIONEXTERNAL_DOWNLOADS
Full Analysis
- [REMOTE_CODE_EXECUTION]: The
scripts/convert_to_gguf.pyscript clones thellama.cpprepository from GitHub (https://github.com/ggerganov/llama.cpp.git) and executes its internal Python scripts and compiled binaries. This pattern of downloading and running code from non-trusted third-party sources is a significant risk vector.\n- [COMMAND_EXECUTION]: Multiple scripts, particularlyscripts/convert_to_gguf.py, usesubprocess.runto execute shell commands for git operations, build processes (cmake, make), and package management (pip). The use ofshell=Truewas not detected, but the execution of downloaded binaries poses a risk.\n- [PRIVILEGE_ESCALATION]: Instructions inreferences/gguf_conversion.mdand logic inscripts/convert_to_gguf.pyrecommend or attempt to perform system package installations usingapt-get, which requires root/sudo privileges.\n- [INDIRECT_PROMPT_INJECTION]: The skill's core purpose is to ingest datasets from the Hugging Face Hub (viaload_dataset) for training and preference alignment (SFT, DPO, GRPO). This creates a vector for indirect prompt injection if the dataset contents are malicious and intended to influence the model's behavior or escape the training environment.\n- [DYNAMIC_EXECUTION]: The skill utilizes thehf_jobsMCP tool to submit and run dynamically generated Python script strings on remote GPU infrastructure. It also performs runtime compilation and execution of thellama-quantizebinary.\n- [EXTERNAL_DOWNLOADS]: The skill downloads external dependencies and scripts from GitHub and Hugging Face. While Hugging Face is a trusted organization, the skill also targets theggerganov/llama.cpprepository, which is a third-party resource.
Audit Metadata