pathml

Pass

Audited by Gen Agent Trust Hub on Sep 28, 2026

Risk Level: SAFEEXTERNAL_DOWNLOADSREMOTE_CODE_EXECUTIONINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTIONCOMMAND_EXECUTION
Full Analysis
  • [EXTERNAL_DOWNLOADS]: The skill documents and provides access to external resources, including ONNX models from Hugging Face and research datasets from Warwick and Zenodo. These operations are gated by clear instructions for the agent to obtain explicit user consent after disclosing the destination, data usage, and privacy safeguards.
  • [REMOTE_CODE_EXECUTION]: Classes such as SegmentMIFRemote and RemoteTestHoverNet download ONNX model artifacts from Hugging Face for local inference. While this involves executing remote computation, the source is a well-known trusted organization and the skill enforces that this code is executed within a local ONNX Runtime environment rather than as arbitrary shell commands.
  • [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted external data including CSV manifests, JSON schemas, and image files. The attack surface is mitigated by the following controls:
  • Ingestion points: scripts/slide_manifest.py (CSV), scripts/validate_spatial_schema.py (JSON/CSV), and scripts/image_qc.py (PNM/Raster images).
  • Boundary markers: The skill body and references provide extensive documentation on data de-identification and safety boundaries.
  • Capability inventory: The agent has access to standard file system and Bash tools, but these are constrained by the skill's procedural knowledge.
  • Sanitization: All bundled scripts utilize a shared _common.py module that implements strict validation, including path canonicalization to prevent traversal, rejection of symlinks, and limits on file sizes and image dimensions.
  • [DYNAMIC_EXECUTION]: The documentation identifies specific security risks within the third-party PathML library, such as the EntityDataset class which uses unrestricted PyTorch object loading (pickle) and the TileDataset class which interprets HDF5 attributes as Python expressions. The skill mitigates this by instructing the agent to never load untrusted artifacts and provides planners to estimate work without importing these library classes.
  • [COMMAND_EXECUTION]: The skill provides several Python-based CLI utilities for manifest validation, QC, and planning. These utilities are implemented using safe standard library practices, avoiding dangerous subprocess calls on user input and enforcing strict schema validation for all JSON and CSV inputs.
Audit Metadata
Risk Level
SAFE
Analyzed
Sep 28, 2026, 09:46 AM