T08 · Insecure Dependencies
- Location
scripts/ga.sh:35- Finding
Unpinned Packages Are Retrieved and Executed with Access to GA Credentials
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill has a coherent Google Analytics read-only purpose, but its helper runs unpinned external code with service-account credentials and contains unsafe path handling.
Review before installing. Use only with trusted, isolated workspaces; keep credentials out of source control; restrict service accounts to the minimum GA property Viewer role; rotate keys if exposed; and prefer pinned, reviewed dependency versions or a locked local install before running the helper.
scripts/ga.sh:35Unpinned Packages Are Retrieved and Executed with Access to GA Credentials
scripts/ga.sh:27Workspace Path Is Interpolated Directly into Executable Python Source
scripts/ga.sh:8Caller Can Select Arbitrary Workspace Credential Files
The skill instructs users to store and use a Google service account JSON key from the workspace without any explicit guidance on protecting, restricting, or excluding that credential from version control and logs. Service account keys are highly sensitive bearer secrets; if they are exposed through the workspace, shell history, backups, or repository commits, an attacker could use them to access Google Analytics data and potentially other resources granted to that account.
Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
- [Google Analytics Admin API](https://console.cloud.google.com/apis/library/analyticsadmin.googleapis.com)
- [Google Analytics Data API](https://console.cloud.google.com/apis/library/analyticsdata.googleapis.com)
## Step 2 — Create a service account
1. Go to [GCP IAM → Service Accounts](https://console.cloud.google.com/iam-admin/serviceaccounts)
2. Create a new service account (e.g. `openclaw-ga-reader`)
The script executes mcporter via npx --yes without pinning an exact package version or integrity-verified source, so each invocation may fetch whatever package version is currently published. If the npm package is compromised, typosquatted, or a malicious update is released, arbitrary code could run in the user's environment with access to the Google Analytics service account credentials referenced by GOOGLE_APPLICATION_CREDENTIALS.