Incomplete referenced artifact analysis
- Category
- analysis-evasion
- Confidence
- 100% confidence
- Finding
Referenced artifact was not completely inspected
- Content
md node scripts/console-report.mjs --account <BILLING_ACCOUNT_ID> \
Security audit
Security checks for vulnerabilities and agentic risk
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.
Referenced artifact was not completely inspected
node scripts/console-report.mjs --account <BILLING_ACCOUNT_ID> \
Referenced artifact was not completely inspected
Until the export exists, drive `scripts/console-report.mjs` for the current day; after it exists,
Referenced artifact was not completely inspected
- `scripts/console-report.mjs` — read Billing Reports as JSON via Chrome DevTools Protocol.
File contents flow to a network sink. This may indicate data exfiltration of sensitive files.
"Authorization": "Bearer " + token,
"Content-Type": "application/json",
})
with urllib.request.urlopen(req, timeout=timeout) as r:
return json.load(r)
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.
#!/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.
File contents flow to a network sink. This may indicate data exfiltration of sensitive files.
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)
Without declared permissions the skill's intent is opaque and cannot be validated.
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.
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.