agent-platform-autorater-customization
Pass
Audited by Gen Agent Trust Hub on Nov 12, 2026
Risk Level: SAFEDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- Dynamic Code Execution: The
scripts/run_metrics.pyutility uses Python'simportlibto load and execute metric definitions from a user-provided file. This allows the skill to perform complex, custom evaluation logic. - Evidence:
spec.loader.exec_module(mod)inscripts/run_metrics.pyloads code from the file path provided via the--metrics_fileargument. - Context: This is a standard pattern for extending the functionality of evaluation frameworks with custom logic, but it means the agent will execute any code contained within the specified file.
- Indirect Prompt Injection Surface: The skill is designed to ingest and analyze agent trajectories (conversations, tool calls, and results). If these trajectories originate from untrusted interactions, they could contain adversarial content designed to manipulate the LLM judge's verdict.
- Evidence Chain:
- Ingestion points:
scripts/run_metrics.pyreads trajectory data from JSONL files provided by the user. - Boundary markers: Prompts in
references/metric_templates.mduse Markdown headers (e.g.,# User request,# Agent trajectory) to delineate data types. - Capability inventory: The skill makes network calls to the Google Cloud AI Platform API and executes local Python code.
- Sanitization: The skill provides templates and best practices in
references/writing_checks.mdto help users write robust evaluation rubrics that resist bias. - Command Execution & Cloud Interaction: The skill instructs the agent to execute various
gcloudcommands for authentication, project configuration, and API management. - Evidence: Multiple
gcloudcommands in theSetupsection ofSKILL.md(e.g.,gcloud auth login,gcloud services enable). - Context: The skill adheres to the principle of least privilege by recommending the
roles/aiplatform.userrole instead of broader administrative permissions. - Usage Attribution: The skill requires the agent to add attribution tags to CLI commands and HTTP headers for telemetry purposes.
- Evidence:
references/attribution.mdspecifies the use ofCLOUDSDK_METRICS_REQUEST_ATTRIBUTIONand customUser-Agentstrings. - Context: This is a standard practice for platform-integrated tools to monitor usage and does not involve the collection of sensitive user data.
Audit Metadata