Benign go Download

github.com/datadog/datadog-agent/comp/otelcol/otlp/components/exporter/serializerexporter v0.82.0-rc.8

Legitimate Datadog Agent source code

Go reads System32 utilitiesWindows system executable masquerade name set

Evidence

References Go net/http standard package consumer.go · lines 6–26
⋯5 lines
11 "fmt"
12 "io"
13 "net/http"
14 "strings"
15 "time"
16
17 "go.opentelemetry.io/collector/exporter"
18 "go.opentelemetry.io/collector/pdata/pmetric"
19 "go.uber.org/multierr"
20 "go.uber.org/zap"
21
22 "github.com/tinylib/msgp/msgp"
⋯4 lines
Go HTTP Post method call consumer.go · lines 305–309
305:51… (c.apmstats))
306 for _, body := range c.apmstats {
307 resp, err := http.Post(c.apmReceiverAddr, "application/msgpack", body)
308 if err != nil {
309 return fmt.Errorf("could not flush StatsPayload: %v", err)
imports net/http/httptest consumer_test.go · lines 4–36
4:32… og, Inc.
5
6package serializerexporter
7
8import (
9 "bytes"
10 "context"
11 "fmt"
12 "io"
13 "net"
14 "net/http"
15 "net/http/httptest"
16 "strings"
17 "testing"
18
19 "github.com/DataDog/datadog-agent/pkg/metrics"
20 "github.com/DataDog/datadog-agent/pkg/metrics/event"
21 "github.com/DataDog/datadog-agent/pkg/metrics/servicecheck"
22 pb "github.com/DataDog/datadog-agent/pkg/proto/pbgo/trace"
23 "github.com/DataDog/datadog-agent/pkg/serializer/marshaler"
24 "github.com/DataDog/datadog-agent/pkg/serializer/types"
25
26 "github.com/stretchr/testify/assert"
27 "github.com/stretchr/testify/require"
28 "github.com/tinylib/msgp/msgp"
29)
30
31var statsPayloads = []*pb.ClientStatsPayload{
32 {
33 Hostname: "host",
34 Env: "prod",
35 Version: "v1.2",
36 Lang: "g …
Copies data with Go io.Copy consumer_test.go · lines 152–158
152:33… HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
153 io.Copy(io.Discard, req.Body)
154 req.Body.Close()
155 w.WriteHeader(http.StatusInternalServerError)
156 called++
157 }))
158 defer srv.Close( …
Go repeats a byte slice 100+ times consumer_test.go · lines 171–178
171:9… ody.Close()
172 w.WriteHeader(http.StatusInternalServerError)
173 w.Write(bytes.Repeat([]byte{'A'}, 2000))
174 called++
175 }))
176 defer srv.Close()
177
178 sc := serializerConsumer{extraTags: []string{"k:v"}, apmReceiverAddr: fmt.Sprintf("ht …

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.