validate-judge
Pass
Audited by Gen Agent Trust Hub on Apr 16, 2026
Risk Level: SAFEPROMPT_INJECTION
Full Analysis
- [PROMPT_INJECTION]: The
scripts/validate_judge.pyscript contains an indirect prompt injection surface that could allow malicious validation data to influence the judge's verdict. - Ingestion points: The script ingests untrusted content from the
outputfield of YAML files (e.g.,.kensa/labels/<judge-name>.yaml) via theload_labelsfunction. - Boundary markers: The
build_validation_promptfunction uses markdown headers (## Agent Output) to delimit the ingested data, but it lacks explicit instructions to the model to ignore any instructions contained within that data. - Capability inventory: The script can make network calls to LLM providers (Anthropic or OpenAI) through the
kensa.judgemodule. - Sanitization: There is no evidence of sanitization, validation, or escaping of the
outputstring before it is interpolated into the final prompt in thebuild_validation_promptfunction.
Audit Metadata