diffusers-ascend-weight-prep
Fail
Audited by Gen Agent Trust Hub on May 19, 2026
Risk Level: HIGHREMOTE_CODE_EXECUTIONCOMMAND_EXECUTIONEXTERNAL_DOWNLOADS
Full Analysis
- [REMOTE_CODE_EXECUTION]: The script
scripts/generate_fake_weights.pyutilizestransformers.AutoConfig.from_pretrainedwith thetrust_remote_code=Trueflag enabled. This allows for the loading and execution of custom Python code defined in the model repository. Since the repository ID is an external input, this creates a vector for arbitrary code execution if a user is directed to process a malicious model repo. - [COMMAND_EXECUTION]: The skill uses
subprocess.runinscripts/download_weights.pyto call CLI tools likehfandmodelscope. Additionally,scripts/validate_on_npu.shperforms several shell operations including sourcing user profiles and installing packages viapip. These actions interact with the system's execution environment. - [EXTERNAL_DOWNLOADS]: The skill downloads model weights and metadata from HuggingFace and ModelScope. It also supports user-defined proxy endpoints for HuggingFace, such as
hf-mirror.com. While these are established platforms for AI models, the ability to pull and process untrusted remote content is a foundational risk factor for subsequent code execution.
Recommendations
- AI detected serious security threats
Audit Metadata