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.pyfile, thewrite_launch_scriptfunction constructs a bash script by directly appending the string provided in the--module-loadargument (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_launchfunction inscripts/run_pacsomatic.pyusessubprocess.runwithshell=Trueto execute scheduler commands likebsuborsbatch. 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_repofunction inscripts/run_pacsomatic.pyexecutes agit clonecommand using a URL supplied via the--repo-urlargument. 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