pacsomatic
Pass
Audited by Gen Agent Trust Hub on Sep 28, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSREMOTE_CODE_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The helper script
scripts/run_pacsomatic.pyexecutes system commands to interact with version control (git), environment managers (conda,mamba), and job schedulers (bsub,sbatch,qsub). Security is maintained by usingsubprocess.runwith argument lists and applyingshlex.quote()to all user-controlled variables interpolated into shell environments. - [EXTERNAL_DOWNLOADS]: The skill facilitates the download of the nf-core/pacsomatic pipeline from GitHub and the installation of environment dependencies via Conda. These operations target well-known services and trusted community repositories.
- [DYNAMIC_EXECUTION]: The skill dynamically assembles a bash launch script to orchestrate Nextflow execution. It implements a robust sanitization strategy for shell-sensitive inputs, including a specific metacharacter filter and a strict command-whitelist for the
--module-loadparameter, ensuring only legitimate environment setup commands are generated. - [INDIRECT_PROMPT_INJECTION]: The skill defines an attack surface by ingesting file paths and sample metadata from the user. It mitigates injection risks by enforcing naming constraints (e.g., no spaces in identifiers) and escaping data before it is written to samplesheet CSVs or launch scripts.
- [REMOTE_CODE_EXECUTION]: The skill is designed to fetch and run remote pipeline code. By default, it points to the official nf-core repository, a recognized standard in bioinformatics, and requires explicit user-provided parameters to execute.
Audit Metadata