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.py uses subprocess.run to interact with system utilities including java, git, and environment managers like conda or mamba. It also triggers the final pipeline submission via scheduler-specific commands (bsub, sbatch, qsub) or bash. These calls are implemented using list-based arguments without shell=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 applies os.chmod to 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.py such as --tumor-bam, --normal-bam, --patient-id, and --tumor-sample-id.
  • Boundary markers: The script employs shlex.quote() for shell interpolation and csv.DictWriter for 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 dedicated normalize_module_load function that uses a strict metacharacter blacklist to prevent command injection through the --module-load parameter.
Audit Metadata
Risk Level
SAFE
Analyzed
Sep 24, 2026, 02:28 PM