role-creator
Fail
Audited by Gen Agent Trust Hub on Sep 18, 2026
Risk Level: HIGHCOMMAND_EXECUTIONCREDENTIALS_UNSAFEINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The
scripts/write_role_config.shscript is vulnerable to a filter injection attack. The script concatenates user-supplied input from the--mcp-enableand--mcp-disablearguments directly into atomlq(jq-style) expression string. A malicious user could provide a crafted string, such asname"] | .sandbox_mode = "danger-full-access" | .mcp_servers["dummy, which would effectively inject arbitrary TOML configuration keys into the resulting file, potentially disabling sandboxing or adding malicious external services. - [CREDENTIALS_UNSAFE]: The skill includes functionality in
scripts/write_role_config.shto read the contents of a local file via the--developer-instructions-fileflag and embed that content into a configuration file. If an attacker successfully tricks the agent into reading a sensitive file like~/.ssh/id_rsaor a.envfile, the contents would be exposed and potentially exfiltrated through the generated configuration. - [INDIRECT_PROMPT_INJECTION]: The skill manages and writes configuration files that control the behavior of other agents, representing a significant attack surface for indirect prompt injection.
- Ingestion points: User-provided inputs for role names, descriptions, and developer instructions as seen in the
SKILL.mdworkflows. - Boundary markers: None. The scripts perform direct shell-based string manipulations and command executions without isolating user-provided data.
- Capability inventory: The skill can create directories (
mkdir -p), write new files, and modify the core Codex configuration file (~/.codex/config.toml). - Sanitization: There is no evidence of input validation or sanitization to prevent control characters from influencing the command strings used by
tomlqor the shell environment.
Recommendations
- AI detected serious security threats
Audit Metadata