T09 · Insecure Skill Coding Practices
- Location
scripts/generate.js:107- Finding
Unsupported Internal API Access Using Spoofed Client Metadata
- Content
View full analysis
{ ``` The associated endpoint and fallback project configuration are defined at lines 17-20: ```js const ENDPOINT = "https://daily-cloudcode-pa.sandbox.googleapis.com/v1internal:streamGenerateContent?alt=sse"; const PROFILE_PATH = process.env.OPENCLAW_AUTH_PATH || path.join(process.env.HOME || process.env.USERPROFILE, '.openclaw/agents/main/agent/auth-profiles.json'); // Project ID found in auth profile or fallback const FALLBACK_PROJECT_ID = "junoai-465910"; ``` ### Technical Analysis The script calls a Google endpoint whose route is explicitly identified as `v1internal` and deliberately supplies client metadata associated with Antigravity, Google Cloud SDK, and a VS Code Cloud Shell editor. The source comment states that the fabricated version is intended to bypass deprecation checks. This creates an unsupported authentication and API-access pattern. The request is not transparently identifying the actual skill implementation, and its continued operation depends on internal behavior that may change without compatibility or security guarantees. The hard-coded fallback project identifier can also cause requests to be associated with a project that was not ...[truncated 1987 chars]- Remediation
View remediation
