Back to skill

Security audit

Google AI Model API Audit

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this skill suspicious because its token cache may expose or allow substitution of credentials, and a referenced script was only partially inspected.

The verdict is suspicious, not a claim of malicious intent. Consider the token-cache risk and the incomplete inspection of the console-report script before installing; the available scan evidence does not fully establish that script's behavior.

Vulnerability Patterns
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • Taint TrackingDirect Taint Flow, Variable-Mediated Taint Flow, Credential Exfiltration Chain
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (9)

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 37)May include surrounding context.

md
node scripts/console-report.mjs --account <BILLING_ACCOUNT_ID> \

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 114)May include surrounding context.

md
Until the export exists, drive `scripts/console-report.mjs` for the current day; after it exists,

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 149)May include surrounding context.

md
- `scripts/console-report.mjs` — read Billing Reports as JSON via Chrome DevTools Protocol.

Tainted flow: 'req' from open (line 30, file read) → urllib.request.urlopen (network output)

High
Category
Data Flow
Confidence
80% confidence
Finding

File contents flow to a network sink. This may indicate data exfiltration of sensitive files.

Content

Scanner excerpt · scripts/bigquery.py (reported line 34)May include surrounding context.

python
"Authorization": "Bearer " + token,
        "Content-Type": "application/json",
    })
    with urllib.request.urlopen(req, timeout=timeout) as r:
        return json.load(r)

Credential Access

High
Category
Privilege Escalation
Confidence
97% confidence
Finding

Token minting is legitimate, but the implementation caches bearer credentials at a predictable shared-/tmp path, trusts existing cache contents without ownership checks, and applies restrictive permissions only after writing. On susceptible multi-user systems, this permits token exposure or cache substitution through precreated files, symlinks, or permissive initial file permissions; stolen tokens inherit the service account's access.

Content

Scanner excerpt · scripts/bigquery_token.py (reported line 2)May include surrounding context.

python
#!/usr/bin/env python3
"""bigquery_token.py - mint a BigQuery access token from a service-account JSON key.

No gcloud, no bq CLI, no SDK. Works even when the user's gcloud session is expired,
which is the usual reason the bq CLI refuses --service_account_credential_file.

Tainted flow: 'req' from open (line 69, file read) → urllib.request.urlopen (network output)

High
Category
Data Flow
Confidence
80% confidence
Finding

File contents flow to a network sink. This may indicate data exfiltration of sensitive files.

Content

Scanner excerpt · scripts/bigquery_token.py (reported line 73)May include surrounding context.

python
key["token_uri"], data=body,
        headers={"Content-Type": "application/x-www-form-urlencoded"},
    )
    with urllib.request.urlopen(req, timeout=30) as r:
        resp = json.load(r)
    json.dump({"token": resp["access_token"], "exp": time.time() + resp["expires_in"]}, open(cache, "w"))
    os.chmod(cache, 0o600)

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: file_write, network, shell.

Medium
Category
MCP Least Privilege
Confidence
70% confidence
Finding

Without declared permissions the skill's intent is opaque and cannot be validated.

Content

No source excerpt is available for this finding.

Billing export setup omits a warning about ongoing BigQuery storage and query charges.

Medium
Category
Output Handling
Confidence
90% confidence
Finding

The workflow instructs the agent to enable both standard and detailed billing exports, creating ongoing BigQuery data storage that subsequent audit queries consume. Although it explains permissions and export timing, it does not warn that storage and queries can themselves incur charges.

Content

No source excerpt is available for this finding.

The workflow persists personal and billing-account information without warning the user.

Medium
Category
Output Handling
Confidence
91% confidence
Finding

The skill instructs the agent to save the owner's email, billing account ID, project identifiers, and credential-file location in a workspace file for reuse on later runs. It does not notify the user that this account-linked information will be retained or explain the privacy implications of storing it in the workspace.

Content

No source excerpt is available for this finding.