create-agentic-workflow
Fail
Audited by Gen Agent Trust Hub on May 24, 2026
Risk Level: HIGHCOMMAND_EXECUTIONREMOTE_CODE_EXECUTIONDATA_EXFILTRATIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/scaffold_agentic_workflow.pyis vulnerable to command injection. The--kill-switchparameter is interpolated directly into a shell command within the generated GitHub Actions YAML file (.github/workflows/name-agent.yml) using an f-string without any sanitization or escaping. A malicious input could escape thegrepcommand and execute arbitrary shell commands within the GitHub Actions runner environment. - [REMOTE_CODE_EXECUTION]: The skill programmatically generates and writes executable content, including GitHub Actions workflows and Python scripts. These generated workflows are configured to download the
@github/copilotCLI and execute it with theshelltool enabled, allowing the agent to perform arbitrary command execution on the runner based on the persona instructions. - [DATA_EXFILTRATION]: The generated workflows are configured with elevated repository permissions (
pull-requests: write,issues: write) and utilize theCOPILOT_GITHUB_TOKENsecret. This high-privilege environment poses a risk if an agent persona is compromised or if the source skill used for scaffolding contains malicious instructions, as it could lead to data theft or unauthorized repository modifications. - [PROMPT_INJECTION]: The skill exhibits a surface for Indirect Prompt Injection. It scaffolds agents that derive their system instructions from local Markdown files (
.agent.md), which are then used as prompts for the Copilot CLI in an environment where powerful system tools (read, write, shell) are active. - Ingestion points: The generated workflow in
scripts/scaffold_agentic_workflow.pyreads content from.github/agents/{name}.agent.mdinto the agent's prompt. - Boundary markers: Absent; instructions are concatenated directly into the prompt string.
- Capability inventory: The Copilot CLI is invoked with
read,write, andshelltool permissions. - Sanitization: Absent; the script does not validate or sanitize the source skill content before it is used to generate the agent's persona.
Recommendations
- AI detected serious security threats
Audit Metadata