skills/datadrivenconstruction/ddc_skills_for_ai_agents_in_construction/defect-detection-ai/Gen Agent Trust Hub
defect-detection-ai
Warn
Audited by Gen Agent Trust Hub on Mar 5, 2026
Risk Level: MEDIUMEXTERNAL_DOWNLOADSREMOTE_CODE_EXECUTIONPROMPT_INJECTION
Full Analysis
- [EXTERNAL_DOWNLOADS]: The skill utilizes
torchvision.modelswithpretrained=TrueinSKILL.mdto initialize model architectures. This triggers the download of pretrained weights from PyTorch's official repository, which is a standard and expected operation for computer vision tasks. - [REMOTE_CODE_EXECUTION]: The
DefectDetectionModelclass inSKILL.mdusestorch.load(model_path)to load model state dictionaries. This function uses thepicklemodule for deserialization by default, which can be exploited to execute arbitrary code if themodel_pathpoints to a malicious file. This represents a potential path for code execution via untrusted model files. - [PROMPT_INJECTION]: The skill is designed to process external images and structured data (CSV, Excel, JSON) as described in
instructions.mdandSKILL.md, establishing an indirect prompt injection surface. - Ingestion points: Untrusted data enters via
image_pathparameters in thepredict,detect, andperform_inspectionmethods inSKILL.md, as well as via file imports described ininstructions.md. - Boundary markers: Absent. The skill does not implement delimiters or safety instructions to distinguish between data and control commands when processing external files.
- Capability inventory: The skill possesses filesystem write capabilities via
pd.ExcelWriterand potential for code execution through unsafe model loading inSKILL.md. - Sanitization: Absent. There is no evidence of validation or sanitization of content extracted from processed files before it enters the execution context.
Audit Metadata