aicr-analyzing-snapshots
Pass
Audited by Gen Agent Trust Hub on Oct 3, 2026
Risk Level: SAFEDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [DYNAMIC_EXECUTION]: The skill provides Python templates for the agent to generate and execute scripts via a tool to process large YAML files.
- Evidence: Step 1 contains a Python block using
import yamlandyaml.safe_load(FILE_CONTENT)for systematic analysis of snapshots. - [INDIRECT_PROMPT_INJECTION]: The skill processes user-supplied AICR snapshot YAML files which may contain instructions or malicious data in metadata or label fields.
- Ingestion points: The skill parses
metadata,labels, andmeasurementsfrom large YAML files (up to 80K tokens) provided by the user. - Boundary markers: The instructions do not specify the use of delimiters or warnings to ignore instructions embedded inside the snapshot data when generating the cluster assessment report.
- Capability inventory: The agent has access to
mcp__plugin_context-mode_context-mode__execute_file(Python execution),Grep, andReadtools. - Sanitization: The skill uses
yaml.safe_loadfor secure deserialization, but lacks semantic sanitization or escaping of the values extracted from the YAML before processing them or including them in reports. - [COMMAND_EXECUTION]: The skill provides a template for mapping snapshot data to an
aicr recipeCLI command using extracted data. - Evidence: The "AICR Criteria Mapping" section demonstrates a
bashcommand template where extracted fields such asdetected_service,detected_accelerator, anddetected_osare interpolated. If an agent executes this command without validating the source data, it creates a potential command injection surface.
Audit Metadata