The metadata access is purpose-linked to Vertex AI authentication, follows configured ADC sources, and is only performed when credential resolution is invoked. The lookalike hostname pointer comes from a comment describing URL validation; the inspected entry point shows re-exports rather than an automatic credential request.
Static reason
One or more suspicious static signals were detected.; previous stored version diff introduced dangerous source
Trigger
A caller uses Vertex AI credential resolution or configures a Vertex usage request.
Impact
No unrelated collection or credential disclosure was identified in the reviewed paths.
Mechanism
The code resolves Google Application Default Credentials from configured sources and can fall back to the standard Google cloud metadata service. The lookalike OpenAI host is cited as an example rejected by strict URL checks.
Evidence
GOOGLE_APPLICATION_CREDENTIALS file when configured~/.config/gcloud/application_default_credentials.json
Network endpoints3
oauth2.googleapis.comiamcredentials.googleapis.com