model-scaffold
Warn
Audited by Gen Agent Trust Hub on Jul 14, 2026
Risk Level: MEDIUMREMOTE_CODE_EXECUTIONCOMMAND_EXECUTIONEXTERNAL_DOWNLOADS
Full Analysis
- [REMOTE_CODE_EXECUTION]: The
scripts/scaffold.pyscript creates Python source files by interpolating user-controlled strings—such as manifest CSV headers, manifest filenames, and the--from-pretrainedCLI argument—directly into code templates. A lack of sanitization or escaping allows for arbitrary Python code to be injected into the generated project files, such asdataset.pyormodel.py. - [REMOTE_CODE_EXECUTION]: The skill's verification and testing suites (
scripts/scaffold_challenge/verify.shandtests/test_training_hygiene.sh) utilizeimportlibandexec_moduleto dynamically load and run the generated code for validation. This behavior results in the immediate execution of any code injected during the generation phase. - [COMMAND_EXECUTION]: The skill uses the
Bashtool to orchestrate the execution of its internal scaffolding scripts and testing utilities, which involves running local Python and shell scripts. - [EXTERNAL_DOWNLOADS]: The generated
requirements.txtand various documentation files (e.g.,training_guide.md,mlops_guide.md) encourage the installation and use of external libraries includingtorch,numpy,monai,timm,torchvision,torchio,nibabel,pydicom,tifffile,tensorboard,wandb,mlflow,dvc,hydra-core, andomegaconf. While these are established tools in the machine learning domain, they represent external dependencies managed by the skill's output.
Audit Metadata