iam-helper-for-troubleshooting
Pass
Audited by Gen Agent Trust Hub on Sep 9, 2026
Risk Level: SAFECOMMAND_EXECUTION
Full Analysis
- Command Execution via Subprocess: The skill's automation scripts (
scripts/least_privileged_role.pyandscripts/troubleshooting_error_id.py) interact with the environment using thesubprocessmodule to call thegcloudCLI. - Assessment: This is the intended functionality for a cloud management skill. The implementation uses list-style arguments (avoiding
shell=True), which is a secure pattern that prevents shell injection vulnerabilities by ensuring inputs are treated as literal arguments rather than executable shell code. - Human-in-the-Loop (HITL) Approval Gating: The skill defines a robust safety policy in
references/guardrails.mdandSKILL.mdrequiring explicit human confirmation before any IAM role is provisioned or modified. - Assessment: This mechanism mitigates the risk of unauthorized privilege escalation by ensuring that a human operator reviews the scope of access (Read-Only vs. Admin) and the target resource before changes are applied.
- Data Processing of Error Identifiers: The script
scripts/troubleshooting_error_id.pydecodes Base64-encoded Google Cloud Error IDs to extract project context for API calls. - Assessment: The script uses a restrictive regular expression (
projects/([^\s\x00-\x1f\"]+)) to sanitize the extracted data. This prevents potential injection into HTTP headers or downstream command arguments, ensuring that only valid project identifiers are processed. - External Service Integration: The skill references a remote Policy Troubleshooter server via the Model Context Protocol (MCP) at a
googleapis.comendpoint. - Assessment: These references point to official Google Cloud infrastructure, which is consistent with the skill's purpose and the vendor's own services.
Audit Metadata