pacsomatic
Pass
Audited by Gen Agent Trust Hub on Sep 24, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The helper script
scripts/run_pacsomatic.pyusessubprocess.runto interact with system utilities includingjava,git, and environment managers likecondaormamba. It also triggers the final pipeline submission via scheduler-specific commands (bsub,sbatch,qsub) orbash. These calls are implemented using list-based arguments withoutshell=True, following security best practices for subprocess management. - [EXTERNAL_DOWNLOADS]: The skill fetches the nf-core/pacsomatic pipeline source from its official GitHub repository and facilitates the creation of Conda environments to satisfy Nextflow dependencies. These external references are consistent with the skill's documented purpose of managing scientific pipeline executions.
- [DYNAMIC_EXECUTION]: The skill dynamically generates a shell launch script (
run_pacsomatic.<executor>.sh) tailored to the user's environment and executor requirements. It appliesos.chmodto the generated file to ensure it is executable before submission to the compute backend. - [INDIRECT_PROMPT_INJECTION]: The skill processes user-supplied input to construct execution artifacts, which represents a potential attack surface for indirect injection.
- Ingestion points: User-provided arguments in
scripts/run_pacsomatic.pysuch as--tumor-bam,--normal-bam,--patient-id, and--tumor-sample-id. - Boundary markers: The script employs
shlex.quote()for shell interpolation andcsv.DictWriterfor samplesheet generation to prevent data from being interpreted as commands. - Capability inventory: The skill possesses capabilities to execute shell commands, clone remote repositories, and write/execute local scripts.
- Sanitization: Robust sanitization is present via
shlex.quote()for most variables and a dedicatednormalize_module_loadfunction that uses a strict metacharacter blacklist to prevent command injection through the--module-loadparameter.
Audit Metadata