medtech-model-evidence-export
Pass
Audited by Gen Agent Trust Hub on Sep 2, 2026
Risk Level: SAFEDATA_EXFILTRATIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [DATA_EXFILTRATION]: The skill is designed to export inference metadata and artifacts to remote MLflow or Databricks servers. To mitigate the risk of exposing sensitive data, the
scripts/export_evidence_pack.pyscript implements a_sanitizefunction. This function redacts keys matching a broad regex of sensitive terms (e.g.,api_key,password,patient,dob,mrn), hashes prompt content using SHA256, and ensures file paths are stripped of local directory prefixes. Furthermore, the skill requires an explicit--confirm-medical-artifact-uploadflag before medical images or masks are transmitted to a live server. - [DYNAMIC_EXECUTION]: The main script utilizes
importlib.import_moduleandimportlib.util.find_specto load optional dependencies such asmlflow,numpy, andnibabel. These imports use hardcoded string literals and occur within a controlled logic flow for dependency checking and logging, which is a safe implementation of dynamic loading for known libraries. - [INDIRECT_PROMPT_INJECTION]: The skill processes inference result files that may contain data from untrusted sources. It manages this attack surface by applying the sanitization layer, treating imported content as data (not instructions), and enforcing a workflow that starts with a
dry-runmode for user verification. - Ingestion points: Data is read from the path provided to the
sourceargument inscripts/export_evidence_pack.py(e.g.,manifest.json,output.json). - Boundary markers: The
SKILL.mdinstructions require users to inspect thedry-runoutput, specificallyparams,metrics, and theartifact_planbefore proceeding to live export. - Capability inventory: The skill uses
file_readto ingest evidence,file_writefor local MLflow stores, andnetworkaccess to log data to tracking servers. - Sanitization: Implements regex-based redaction of credentials and Protected Health Information (PHI), hashes prompt text, and truncates long strings.
Audit Metadata