skills/modular/skills/import-model/Gen Agent Trust Hub

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.py dynamically imports the newly created model 'port' by appending a user-supplied directory to sys.path and calling importlib.import_module(). This is used to validate model parameters without full compilation.\n
  • The test suite in scripts/test_scripts.py uses exec() and compile() 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=True parameter with the transformers library, 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.py retrieves config.json files 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.py uses subprocess.run() to execute ruff for code formatting.\n
  • scripts/test_scripts.py runs 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
Risk Level
MEDIUM
Analyzed
Nov 22, 2026, 03:51 AM