nv-generate-mr-brain

Pass

Audited by Gen Agent Trust Hub on Jul 8, 2026

Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSPROMPT_INJECTION
Full Analysis
  • [COMMAND_EXECUTION]: The script scripts/run_mr_brain.py uses subprocess.run to invoke the upstream scripts.diff_model_infer module and git for metadata collection. The commands are executed without shell=True, and the arguments are constructed from fixed entry points and validated configuration paths, minimizing the risk of command injection.
  • [EXTERNAL_DOWNLOADS]: The skill requires external assets including the NV-Generate-CTMR repository from GitHub and model weights from HuggingFace. These downloads are documented as prerequisites and target official vendor-controlled organizations, meeting safe usage criteria for specialized medical AI research tools.
  • [PROMPT_INJECTION]: The skill processes user-supplied JSON files to override model parameters, creating a surface for indirect prompt injection. However, the wrapper script scripts/run_mr_brain.py implements robust mitigations by validating all input keys against a strict whitelist (OVERRIDE_KEYS) and performing type and range checks on values (e.g., dimensions and inference steps) before they are used.
Audit Metadata
Risk Level
SAFE
Analyzed
Jul 8, 2026, 07:15 PM
Security Audit — agent-trust-hub — nv-generate-mr-brain