pacsomatic
Pass
Audited by Gen Agent Trust Hub on Oct 31, 2026
Risk Level: SAFE
Full Analysis
- [COMMAND_EXECUTION]: The helper script
run_pacsomatic.pyexecutes external tools includinggit,nextflow, and HPC scheduler commands (sbatch,bsub,qsub). All commands are invoked using argument lists withsubprocess.run(), preventing shell injection vulnerabilities. User-supplied strings are sanitized usingshlex.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-loadparameter 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