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.py extracts backup_path and target_path directly from the execution.json artifact 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.py which reads --ranking and --execution JSON files. It lacks boundary markers or sanitization for interpolated fields and path parameters, allowing untrusted data to control file system operations and the py_compile logic.
  • [PERSISTENCE]: The arbitrary file write capability identified in the rollback logic allows for the modification of user shell profiles (such as .bashrc or .zshrc), cron jobs, or startup services, enabling an attacker to maintain persistent access to the execution environment.
  • [DYNAMIC_EXECUTION]: The CompileGate in scripts/gate.py uses the py_compile module 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
Risk Level
HIGH
Analyzed
Oct 13, 2026, 01:07 AM