senior-computer-vision
Warn
Audited by Gen Agent Trust Hub on Sep 4, 2026
Risk Level: MEDIUMDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [DYNAMIC_EXECUTION]: The script
scripts/inference_optimizer.pyuses an unsafe deserialization method to analyze PyTorch model files. - Evidence: Lines 145 and 239 in
scripts/inference_optimizer.pycalltorch.load(str(self.model_path), map_location='cpu')andtorch.load(str(self.model_path), map_location=device)respectively. - Risk: By default,
torch.loaduses the Pythonpicklemodule, which is vulnerable to arbitrary code execution during deserialization. If an attacker provides a malicious.ptor.pthmodel file and a user attempts to benchmark or analyze it with this script, it could result in full system compromise. Usingweights_only=Trueis the recommended mitigation, which is not implemented here. - [INDIRECT_PROMPT_INJECTION]: The skill's scripts process untrusted external data (datasets, annotations, and model structures) which provides an attack surface for indirect prompt injection.
- Ingestion points:
scripts/dataset_pipeline_builder.pyreads COCO JSON, Pascal VOC XML, and YOLO TXT annotation files;scripts/vision_model_trainer.pyreads JSON and YAML configuration files;scripts/inference_optimizer.pyreads model files (.pt,.onnx). - Boundary markers: Absent. There are no explicit instructions to ignore embedded commands or markers within the processed data.
- Capability inventory: The scripts have capabilities for file system writes (
json.dump,yaml.dump,Path.write_text), directory creation, and potential code execution through unsafe model loading. - Sanitization: Inconsistent. While
vision_model_trainer.pyusesyaml.safe_load(), other scripts process JSON and XML (viaxml.etree.ElementTree) without robust sanitization of the content against malicious patterns.
Audit Metadata