Benign linux Download

install_script_agent6.sh

AArch64 (ARM64) architecture stringNames Python cache/build artifacts
SHA-256a9faa1a32b43d99172c19d9c151ea4dcb504d4f1a9fc3121eb4e7c22b9f7b8ac

Evidence

Stderr redirection followed by a pipe lines 54–60
54:16… s and use explicit env passing instead
55if [ -n "$sudo_cmd" ] && sudo --version 2>&1 | sed -n '1p' | grep -q 'sudo-rs'; then
56 sudo_env_cmd() {
57 local env_args=()
58 while IFS='=' read -r name value; do
59 case "$name" in
60 D …
od command invoked with option flags lines 73–86
⋯4 lines
77
78# Trace creation
79trace_id=$(od -An -N8 -tu8 < /dev/urandom | tr -d ' ')
80start_time=$(date +%s%N)
81export DATADOG_TRACE_ID=$trace_id
82export DATADOG_PARENT_ID=$trace_id
83
84# Stage tracking globals for detailed telemetry spans
85CURRENT_STAGE=""
86STAGE_START_TI …
HTTP or HTTPS URL reference lines 90–118
90:6… re -a SCRIPT_STAGES=()
91
92# Set up a named pipe for logging
93npipe=/tmp/$$.tmp
94mknod $npipe p
95
96# Log all output to a log for error checking
97tee <$npipe $logfile &
98exec 1>&-
99exec 1>$npipe 2>&1
100
101# Set telemetry URL
102telemetry_url="https://instrumentation-telemetry-intake.datadoghq.com/api/v2/apmtelemetry"
103if [ -n "$DD_SITE" ]; then
104 telemetry_url="https://instrumentation-telemetry-intake.${DD_SITE}/api/v2/apmtelemetry"
105fi
106
107# OS/Distro Detection
108# Try lsb_release, fallback with /etc/issue then uname command
109KNOWN_DISTRIBUTION="(Debian|Ubuntu|Red Hat|CentOS|openSUSE|Amazon|Arista|SUSE|Rocky|AlmaLinux)"
110DISTRIBUTION=$(lsb_release -d 2>/dev/null | grep -Eo "$KNOWN_DISTRIBUTION" || grep -Eo "$KNOWN_DISTRIBUTION" /etc/issue 2>/dev/null || grep -Eo "$KNOWN_DISTRIBUTION" /etc/Eos-release 2>/dev/null || grep -m1 -Eo "$KNOWN_DISTRIBUTION" /etc/os-release 2>/dev/null || uname -s)
111
112function on_exit() {
113 exit_code=$?
114 rm -f $npipe
115
116 # Handle any remaining active stage
117 if [ -n "$CURRENT_STAGE" ]; then
118 end_stage "$exit_code" # End with actual …
Shell suppresses failure with || true lines 118–131
118:56… t exit code
119 fi
120
121 report_installer_telemetry "$sudo_cmd" "$DD_API_KEY" "$DD_SITE" "$telemetry_url" "$trace_id" "$logfile" "$start_time" "$exit_code" "$DISTRIBUTION" || true
122}
123trap on_exit EXIT
124
125##
126# REPORTING AND COMMON METHODS
127##
128function fallback_msg(){
129 printf "
130If you are still having problems, please send an email to $support_email
131with the contents of $logfile and an …
curl sends a URL-encoded form field lines 132–143
132:30… y best to help you solve your problem.\n"
133}
134
135function report(){
136 if curl -f -sSL --retry 5 \
137 --data-urlencode "os=${OS}" \
138 --data-urlencode "version=${agent_major_version}" \
139 --data-urlencode "log=$(cat $logfile)" \
140 --data-urlencode "email=${email}" \
141 --data-urlencode "apikey=${apikey}" \
142 --data-urlencode "variant=${variant}" \
143 "$ …

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.