pacsomatic
Pass
Audited by Gen Agent Trust Hub on Nov 2, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill utilizes a Python script
scripts/run_pacsomatic.pyto generate and execute shell commands and launch scripts. These commands are used for pipeline execution and interaction with HPC job schedulers (e.g.,sbatch,bsub). The script usesshlex.quoteto sanitize inputs and avoidsshell=Truein subprocess calls. - [EXTERNAL_DOWNLOADS]: The skill can optionally clone the nf-core/pacsomatic pipeline repository from GitHub (
https://github.com/nf-core/pacsomatic.git) if the code is not locally available. nf-core is a well-known organization for bioinformatics pipelines. - [INDIRECT_PROMPT_INJECTION]: The skill processes user-supplied metadata and file paths to construct samplesheets and execution commands, creating a potential surface for indirect injection.
- Ingestion points: Data enters via CLI arguments such as
tumor-bam,normal-bam,patient-id,tumor-sample-id, andmodule-load. - Boundary markers: None explicitly defined in the agent instructions, though the script performs its own validation.
- Capability inventory: The skill has the ability to write files to the output directory, execute shell commands, and perform git clones.
- Sanitization: Significant mitigations are in place: all shell-bound parameters are processed through
shlex.quote(), identifiers are checked for forbidden spaces, and themodule-loadargument is restricted to a subset of characters to prevent command chaining or shell expansion.
Audit Metadata