pacsomatic

Pass

Audited by Gen Agent Trust Hub on Oct 31, 2026

Risk Level: SAFE
Full Analysis
  • [COMMAND_EXECUTION]: The helper script run_pacsomatic.py executes external tools including git, nextflow, and HPC scheduler commands (sbatch, bsub, qsub). All commands are invoked using argument lists with subprocess.run(), preventing shell injection vulnerabilities. User-supplied strings are sanitized using shlex.quote() or validated against strict character whitelists.
  • [DYNAMIC_EXECUTION]: The skill generates a shell script at runtime to launch the Nextflow pipeline. It implements thorough protection against injection by using shlex.quote() for path and parameter interpolations. It also includes a specialized validator, normalize_module_load(), which restricts the --module-load parameter to only allow legitimate 'module' commands, rejecting shell metacharacters.
  • [EXTERNAL_DOWNLOADS]: The script facilitates cloning the pipeline repository from its official GitHub location (github.com/nf-core/pacsomatic.git). This is a well-known and reputable community organization for bioinformatics pipelines.
  • [DATA_EXPOSURE]: The skill handles metadata and paths related to genomic sequencing (BAM files). It correctly instructs users not to embed credentials in generated files and enforces secure handling of local and remote file URIs.
Audit Metadata
Risk Level
SAFE
Analyzed
Oct 31, 2026, 03:29 PM