atomic-task-graph
Fail
Audited by Gen Agent Trust Hub on Sep 30, 2026
Risk Level: HIGHCOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTIONDATA_EXFILTRATION
Full Analysis
- [COMMAND_EXECUTION]: The skill facilitates the execution of shell commands through a 'run:' field defined within its task graph format. The core logic in 'atg/execute.py' utilizes 'subprocess.run(shell=True)' to execute these strings directly in the host environment. While the documentation contains warnings, this provides a direct path for arbitrary code execution.
- [DYNAMIC_EXECUTION]: Executable shell commands are constructed dynamically at runtime. The 'resolve_command' function in 'atg/execute.py' takes a template from the 'run:' field and populates it by interpolating values retrieved from the task context, environment variables, or outputs of previously executed nodes.
- [INDIRECT_PROMPT_INJECTION]: The skill is susceptible to command injection because its variable substitution logic lacks sanitization. Inputs from external sources, such as tool outputs, are directly interpolated into shell command templates. If an untrusted source provides shell metacharacters (e.g., backticks or semicolons), they will be executed by the shell harness.
- Ingestion points: Data returned by tools (captured in 'events.jsonl') and initial task-level input parameters.
- Boundary markers: The skill lacks protective delimiters or escaping routines when merging external data into shell command strings.
- Capability inventory: The executor has broad shell access and file system write permissions for run logs and artifacts.
- Sanitization: No escaping or validation is performed on the substituted values; the 'spill' utility only manages data storage based on string length.
- [DATA_EXFILTRATION]: The skill provides a mechanism to read host environment variables using the '$env' reference syntax (e.g., '$env.API_KEY'). This allows for the retrieval of sensitive information such as system credentials or access tokens, which could be processed by subsequent tools or leaked through the skill's extensive event logging and reporting features.
Recommendations
- AI detected serious security threats
Audit Metadata