pacsomatic

Warn

Audited by Gen Agent Trust Hub on Jun 29, 2026

Risk Level: MEDIUMCOMMAND_EXECUTIONEXTERNAL_DOWNLOADSREMOTE_CODE_EXECUTION
Full Analysis
  • [COMMAND_EXECUTION]: In the scripts/run_pacsomatic.py file, the write_launch_script function constructs a bash script by directly appending the string provided in the --module-load argument (lines.append(args.module_load)). Because this input is not quoted, escaped, or validated, an attacker can provide a string with command separators to execute arbitrary code when the generated script is run.
  • [COMMAND_EXECUTION]: The execute_launch function in scripts/run_pacsomatic.py uses subprocess.run with shell=True to execute scheduler commands like bsub or sbatch. While the script path itself is quoted, the use of a shell environment for execution increases the overall attack surface.
  • [EXTERNAL_DOWNLOADS]: The ensure_pipeline_repo function in scripts/run_pacsomatic.py executes a git clone command using a URL supplied via the --repo-url argument. This allows the skill to pull and execute content from any remote repository.
  • [REMOTE_CODE_EXECUTION]: The combination of unvalidated external code downloads (via git) and the script-based command injection vulnerability (via --module-load) creates a significant risk of remote code execution during the workflow launch process.
Audit Metadata
Risk Level
MEDIUM
Analyzed
Jun 29, 2026, 02:19 PM