evaluating-llms-harness
Pass
Audited by Gen Agent Trust Hub on Nov 1, 2026
Risk Level: SAFECOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTIONCREDENTIALS_UNSAFE
Full Analysis
- [COMMAND_EXECUTION]: The skill's documentation and workflow examples in
SKILL.mdsuggest usingos.system()to invoke shell scripts and thelm_evalCLI. These f-string-based commands (e.g., in Workflow 2) use variables likecheckpoint_pathandstep, which could be vulnerable to command injection if an attacker can influence those values. Additionally,references/custom-tasks.mdprovides examples usingsubprocessfor executing code logic. - [DYNAMIC_EXECUTION]: The skill provides instructions for benchmarks such as
HumanEvalandMBPPwhich involve executing Python code generated by the model. This capability is gated by the--allow_code_executionflag. Furthermore,references/custom-tasks.mddemonstrates how to implement custom evaluation metrics that usesubprocessto execute generated code snippets. - [INDIRECT_PROMPT_INJECTION]: The skill is designed to ingest and process untrusted data from external benchmarks and model generations, creating a surface for indirect prompt injection.
- Ingestion points: Untrusted content enters via
dataset_path(supporting HuggingFace datasets, local JSONL, and CSV files) and the resulting model predictions analyzed during evaluation. - Boundary markers: The skill uses Jinja2 templates (e.g.,
doc_to_text) to format prompts, but these do not sanitize or escape model-generated content that may be executed later. - Capability inventory: The skill relies on
os.system(SKILL.md),subprocess(references/custom-tasks.md), and file-writing capabilities to automate the evaluation pipeline. - Sanitization: No explicit validation or sanitization is documented for model-generated code before it is executed by the evaluation harness or custom metrics.
- [CREDENTIALS_UNSAFE]: The documentation in
references/api-evaluation.mdprovides instructions for setting up API keys for OpenAI and Anthropic using environment variables. While the examples use standard placeholders (e.g.,sk-...), the skill facilitates the management and use of sensitive API credentials within the agent's environment.
Audit Metadata