clinical-reports
Warn
Audited by Gen Agent Trust Hub on Jul 12, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONDATA_EXFILTRATIONPROMPT_INJECTION
Full Analysis
- [DATA_EXFILTRATION]: The mandatory schematic generation feature in
scripts/generate_schematic.pyandscripts/generate_schematic_ai.pysends prompts to an external API (openrouter.ai). While OpenRouter is a well-known service, the requirement to process clinical data through this external endpoint poses a data exposure risk for Protected Health Information (PHI) if not properly de-identified beforehand. - [COMMAND_EXECUTION]: The
scripts/generate_report_template.pyscript allows users to specify an output file path for template generation. The script usesshutil.copywithout verifying the destination, which could lead to accidental or intentional overwriting of sensitive configuration or system files if the agent is misled by a user or malicious data. - [COMMAND_EXECUTION]: The script
scripts/generate_schematic.pyusessubprocess.runto call an internal Python script (generate_schematic_ai.py). While this is used for legitimate skill functionality, subprocess calls can be a vector for command injection if the input prompts are not strictly controlled. - [PROMPT_INJECTION]: Multiple scripts including
scripts/validate_case_report.py,scripts/check_deidentification.py, andscripts/extract_clinical_data.pyingest and parse untrusted text from clinical reports. These ingestion points serve as a surface for indirect prompt injection attacks where malicious instructions embedded in clinical documents could attempt to influence the agent's behavior during validation steps.
Audit Metadata