T08 · Insecure Dependencies
- Location
README.md:51- Finding
Unpinned Third-Party Dependency Installation
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This skill matches its stated purpose of reading GA4 reports through Google APIs, but users should treat the OAuth refresh token and client secret as sensitive credentials.
Install only if you are comfortable giving the skill read-only access to GA4 data through your Google account. Store GOOGLE_CLIENT_SECRET and GOOGLE_REFRESH_TOKEN in a protected secret store or local environment, never commit or paste them into shared logs/chats/issues, and consider using the bundled ga4_auth.py path instead of the documented unpinned pip install where possible.
README.md:51Unpinned Third-Party Dependency Installation
scripts/ga4_auth.py:62Long-Lived OAuth Refresh Token Printed in Plaintext
Credentials or environment variables flow to a network sink. This is a high-confidence indicator of credential exfiltration.
headers={"Content-Type": "application/x-www-form-urlencoded"},
)
try:
with urllib.request.urlopen(req) as resp:
return json.loads(resp.read())["access_token"]
except urllib.error.HTTPError as e:
print(f"Auth error: {e.read().decode()}", file=sys.stderr)
Credentials or environment variables flow to a network sink. This is a high-confidence indicator of credential exfiltration.
headers={"Content-Type": "application/x-www-form-urlencoded"},
)
try:
with urllib.request.urlopen(req) as resp:
return json.loads(resp.read())["access_token"]
except urllib.error.HTTPError as e:
print(f"Auth error: {e.read().decode()}", file=sys.stderr)
The skill is presented as a GA4 reporting/query tool, but the setup instructions also direct users through OAuth credential creation and refresh-token acquisition via Google Accounts endpoints. While this may be operationally necessary, it expands behavior beyond simple analytics querying and can surprise users into handling sensitive OAuth credentials without a clear up-front disclosure.
The README instructs users to generate and store a Google OAuth client secret and long-lived refresh token, but it does not explicitly warn that these values are sensitive credentials that must be protected and never committed, shared, or logged. If exposed, an attacker could use them to obtain access tokens and read GA4 analytics data for the associated property, making the omission a real security weakness in setup guidance.
The skill requires environment variables containing OAuth client secrets and a refresh token, and it performs direct network access to Google APIs, but it does not declare any explicit tool scope such as permissions or allowed-tools. That weakens the security boundary by obscuring what sensitive capabilities the skill needs, making accidental overexposure of secrets and network access more likely in agent environments.
The description does not prominently warn that the skill depends on stored OAuth credentials and transmits analytics queries and resulting data to Google's API. In agent ecosystems, insufficient disclosure around external data transfer and secret usage can lead to uninformed use of sensitive accounts or data.
Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
https://www.googleapis.com/auth/analytics.readonly
This is listed as a "sensitive scope" by Google. If your app is Internal, no verification is needed.
Data from a source is assigned to a variable that is later passed to a sink, creating a variable-mediated taint flow.
)
try:
with urllib.request.urlopen(req) as resp:
tokens = json.loads(resp.read())
except urllib.error.HTTPError as e:
print(f"Error: {e.read().decode()}", file=sys.stderr)
No suspicious patterns detected.