cloud-trace-querying
Pass
Audited by Gen Agent Trust Hub on Nov 18, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTION
Full Analysis
- Managed Execution Environment: The skill utilizes a custom management system to create and run Python scripts within isolated virtual environments. This system uses
os.execvto transition into the virtual environment andsubprocess.Popenfor background maintenance tasks, such as cleaning up stale environments. These patterns are used to ensure dependency isolation and a consistent runtime environment. - Dependency Installation: The skill automatically manages its Python dependencies by invoking
pip installagainst a localizedrequirements.txtfile. This occurs during the initial setup of the virtual environment to ensure all necessary libraries, such asgoogle-cloud-traceandgoogle-cloud-logging, are available. - Untrusted Telemetry Handling (Indirect Prompt Injection Surface): The skill retrieves data from external sources (Google Cloud Trace and Logging) that may contain content controlled by external parties. To mitigate the risk of the agent misinterpreting this data as instructions, the skill implements a protective tagging mechanism.
- Ingestion points: Data is ingested via the
fetch_logs,fetch_span,search_traces, andfetch_entire_tracefunctions. - Boundary markers: Output is wrapped in unique, randomly generated tags like
<untrusted_telemetry_[token]>to help the agent distinguish between tool output and instructions. - Capability inventory: The skill executes bash scripts,
gcloudcommands, and Python scripts with network access to Google Cloud APIs. - Sanitization: The skill relies on structured JSON output and the aforementioned boundary markers rather than deep content sanitization.
- Official Service Interaction: The skill communicates exclusively with established Google Cloud API endpoints (e.g.,
cloudtrace.googleapis.com,logging.googleapis.com) to perform its diagnostic tasks. These interactions are consistent with the skill's stated purpose of cloud observability.
Audit Metadata