import-model
Warn
Audited by Gen Agent Trust Hub on Nov 22, 2026
Risk Level: MEDIUMDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTIONEXTERNAL_DOWNLOADS
Full Analysis
- [DYNAMIC_EXECUTION]: The skill uses dynamic loading and execution to support its development and verification lifecycle.\n
- The script
scripts/check_port.pydynamically imports the newly created model 'port' by appending a user-supplied directory tosys.pathand callingimportlib.import_module(). This is used to validate model parameters without full compilation.\n - The test suite in
scripts/test_scripts.pyusesexec()andcompile()to execute generated Python strings in a controlled namespace to verify the output of scaffolding templates.\n - Several scripts and instructions utilize the
trust_remote_code=Trueparameter with thetransformerslibrary, which allows the execution of arbitrary code defined within a Hugging Face model repository. While necessary for some architectures, this represents a significant execution risk if the target model is malicious.\n- [INDIRECT_PROMPT_INJECTION]: The skill processes external model configurations that could be used for indirect injection attacks.\n - Ingestion points:
scripts/hub_config.pyretrievesconfig.jsonfiles from the Hugging Face Hub.\n - Boundary markers: There are no explicit markers or instruction delimiters used when the agent processes the ingested JSON to generate implementation plans or code.\n
- Capability inventory: The skill can execute shell commands, write files, and perform dynamic imports.\n
- Sanitization: The skill lacks rigorous sanitization for JSON values before they are used in code generation, creating a surface where a malicious configuration could influence the generated logic or agent behavior.\n- [COMMAND_EXECUTION]: The skill invokes external tools via shell commands.\n
scripts/scaffold.pyusessubprocess.run()to executerufffor code formatting.\nscripts/test_scripts.pyruns the various helper scripts as subprocesses to conduct smoke tests.\n- [EXTERNAL_DOWNLOADS]: The skill fetches resources from the Hugging Face Hub (huggingface.co). This is a well-known service, and the downloads are documented as a core part of the skill's functionality.
Audit Metadata