pacsomatic

Pass

Audited by Gen Agent Trust Hub on Sep 8, 2026

Risk Level: SAFECOMMAND_EXECUTIONREMOTE_CODE_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
  • [COMMAND_EXECUTION]: The main logic in scripts/run_pacsomatic.py manages the lifecycle of the nf-core/pacsomatic pipeline by executing system utilities such as git, java, conda/mamba, and high-performance computing (HPC) schedulers (sbatch, bsub, qsub). These operations are performed using list-based arguments in subprocess.run calls, which effectively prevents shell injection vulnerabilities.
  • [REMOTE_CODE_EXECUTION]: The skill facilitates the cloning of the nf-core/pacsomatic pipeline repository using git clone. This operation targets a well-known and reputable community organization. The execution of the cloned pipeline is performed through a generated launch script which is properly sanitized.
  • [INDIRECT_PROMPT_INJECTION]: The skill accepts external inputs such as BAM file paths, sample identifiers, and project metadata. It implements significant defensive measures against potential injection attacks, including:
  • Ingestion points: CLI arguments passed to run_pacsomatic.py and subsequently written to samplesheets and launch scripts.
  • Boundary markers: Extensive use of shlex.quote() when interpolating variables into generated shell scripts ensures that user-supplied strings cannot break out of their intended context.
  • Capability inventory: Access to system tools is scoped to the requirements of bioinformatics processing (Nextflow, git, etc.).
  • Sanitization: A dedicated validator (normalize_module_load) is used to strictly filter the module-load parameter, blocking shell metacharacters and ensuring only legitimate environment module commands are included in the execution context.
Audit Metadata
Risk Level
SAFE
Analyzed
Sep 8, 2026, 04:42 AM