improvement-discriminator

Warn

Audited by Gen Agent Trust Hub on Oct 13, 2026

Risk Level: MEDIUMDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
  • [DYNAMIC_EXECUTION]: The RealSkillEvaluator class in interfaces/critic_engine.py dynamically loads and executes Python modules from local file paths using importlib. The _load_skill method uses spec.loader.exec_module(self.skill_module) to run code from files such as main.py, evaluate.py, or executor.py found in the provided skill directory. While intended for benchmarking, this provides a mechanism for arbitrary code execution if the path is influenced by untrusted data.
  • [INDIRECT_PROMPT_INJECTION]: The LLMJudge class in interfaces/llm_judge.py processes candidate content that could contain malicious instructions.
  • Ingestion points: Untrusted data enters the agent context via the candidates.json file, specifically the proposed_content field.
  • Boundary markers: The JUDGE_PROMPT_TEMPLATE uses markdown headers (e.g., ## Proposed Content) to separate user data, but it lacks explicit instructions for the LLM to ignore or escape any embedded commands within that content.
  • Capability inventory: Scored candidates are likely intended for further processing by an executor skill, and the engine itself has dynamic execution capabilities through RealSkillEvaluator.
  • Sanitization: The implementation includes basic truncation (proposed_content[:1000]) but does not perform escaping, filtering, or validation of the input content.
  • [INDIRECT_PROMPT_INJECTION]: The JUnitXMLRegressionAdapter in interfaces/external_regression.py uses the standard xml.etree.ElementTree library to parse regression results. This library is known to be vulnerable to XML External Entity (XXE) attacks, which could be used for local file disclosure or server-side request forgery (SSRF) if the regression XML source is attacker-controlled.
Audit Metadata
Risk Level
MEDIUM
Analyzed
Oct 13, 2026, 01:27 AM