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.py and scripts/generate_schematic_ai.py sends 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.py script allows users to specify an output file path for template generation. The script uses shutil.copy without 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.py uses subprocess.run to 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, and scripts/extract_clinical_data.py ingest 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
Risk Level
MEDIUM
Analyzed
Jul 12, 2026, 03:13 PM