improvement-gate
Fail
Audited by Gen Agent Trust Hub on Oct 13, 2026
Risk Level: HIGHCOMMAND_EXECUTIONPERSISTENCEINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The rollback mechanism in
scripts/gate.pyextractsbackup_pathandtarget_pathdirectly from theexecution.jsonartifact provided via CLI arguments. Because these paths are not sanitized or validated against a whitelist, an attacker can craft a malicious artifact to overwrite sensitive system files when the gate validation fails. - [INDIRECT_PROMPT_INJECTION]: The skill is vulnerable to indirect injection via its primary ingestion points in
scripts/gate.pywhich reads--rankingand--executionJSON files. It lacks boundary markers or sanitization for interpolated fields and path parameters, allowing untrusted data to control file system operations and thepy_compilelogic. - [PERSISTENCE]: The arbitrary file write capability identified in the rollback logic allows for the modification of user shell profiles (such as
.bashrcor.zshrc), cron jobs, or startup services, enabling an attacker to maintain persistent access to the execution environment. - [DYNAMIC_EXECUTION]: The
CompileGateinscripts/gate.pyuses thepy_compilemodule to process files at paths defined by the untrusted execution artifact. This can be exploited to force the agent to process arbitrary or sensitive files, potentially leading to information disclosure or resource exhaustion.
Recommendations
- AI detected serious security threats
Audit Metadata