improvement-discriminator
Warn
Audited by Gen Agent Trust Hub on Oct 13, 2026
Risk Level: MEDIUMDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [DYNAMIC_EXECUTION]: The
RealSkillEvaluatorclass ininterfaces/critic_engine.pydynamically loads and executes Python modules from local file paths usingimportlib. The_load_skillmethod usesspec.loader.exec_module(self.skill_module)to run code from files such asmain.py,evaluate.py, orexecutor.pyfound 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
LLMJudgeclass ininterfaces/llm_judge.pyprocesses candidate content that could contain malicious instructions. - Ingestion points: Untrusted data enters the agent context via the
candidates.jsonfile, specifically theproposed_contentfield. - Boundary markers: The
JUDGE_PROMPT_TEMPLATEuses 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
JUnitXMLRegressionAdapterininterfaces/external_regression.pyuses the standardxml.etree.ElementTreelibrary 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