Hostile 92% go Download

github.com/kubernetes/cloud-provider-gcp v0.0.0-20260921170611-6c35ee95ab49

Legitimate Kubernetes GCP provider source

Go logs raw token parse input on JSON failureBasename is uppercase README.md

Also flagged by https://falhumaid.github.io/DFIR_Radar_RSS/rss.xml (Unpatched credential leak in kubernetes/cloud-provider-gcp (auth-provider-gcp) - CVE requested (CAN-2026-2039459)).

Evidence

Kubernetes source copyright marker lines 1–8
1/*
2Copyright 2014 The Kubernetes Authors.
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2 …
Go imports os/exec under exec name lines 12–39
12:42… IND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
16
17package gcpcredential
18
19import (
20 "bytes"
21 "context"
22 "encoding/json"
23 "fmt"
24 "io"
25 "net/http"
26 "os"
27 "os/exec"
28 "runtime"
29 "strings"
30 "time"
31
32 "k8s.io/cloud-provider-gcp/pkg/credentialconfig"
33 "k8s.io/klog/v2"
34)
35
36const (
37 metadataURL = "http://metadata.google.internal./computeMetadata/v1/"
38 metadataAttributes = metadataURL + "instance/attributes/"
39 // DockerConfigKey is the URL of the dockercfg metadata key used b …
Registry authentication or configuration text lines 61–70
61:77… r.io" will match
62// "foo.gcr.io" and "bar.gcr.io".
63var containerRegistryUrls = []string{"container.cloud.google.com", "gcr.io", "*.gcr.io", "*.pkg.dev"}
64
65var metadataHeader = &http.Header{
66 "Metadata-Flavor": []string{"Google"},
67 "User-Agent": []string{"GKE auth-provider-gcp image pull"},
68}
69
70// MetadataProvider is a DockerConfi …
Go exec.Command child-command construction call lines 104–113
104:53… PI.
105func onGCEVM() bool {
106 var name string
107
108 if runtime.GOOS == "windows" {
109 data, err := exec.Command("wmic", "computersystem", "get", "model").Output()
110 if err != nil {
111 return false
112 }
113 fields := strings.Split(strings.TrimSpace(s …
Go unmarshals credential variable as JSON lines 308–324
308:14… ("while reading email endpoint: %v", err)
309 return cfg
310 }
311
312 var parsedBlob TokenBlob
313 if err := json.Unmarshal([]byte(tokenJSONBlob), &parsedBlob); err != nil {
314 klog.Errorf("while parsing json blob %s: %v", tokenJSONBlob, err)
315 return cfg
316 }
⋯8 lines

Showing the top 5 files — 3 more files (23 regions) not shown.

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.