File name:

sh.sh

Full analysis: https://app.any.run/tasks/610fd3db-358f-46ee-a6f7-707d1712d4ec
Verdict: Malicious activity
Threats:

Crypto mining malware is a resource-intensive threat that infiltrates computers with the purpose of mining cryptocurrencies. This type of threat can be deployed either on an infected machine or a compromised website. In both cases the miner will utilize the computing power of the device and its network bandwidth.

Analysis date: November 24, 2024, 07:06:40
OS: Ubuntu 22.04.2 LTS
Tags:
miner
Indicators:
MIME: text/x-shellscript
File info: Bourne-Again shell script, ASCII text executable
MD5:

5A86127D998B5C3496802959AC0A3D11

SHA1:

21D05B5A016CDD8245E24778E479BF6330867C3F

SHA256:

AED29398112AD074B8FD8A2E25020FB01DB1F8CDAFF86326222529DBEBA5746B

SSDEEP:

24:Oz2zUSLN9AltrM35BFRDD6n0LY83H0tfhhp5wEliodZYDYc7QW:OyASLitonmzfvJlBZY6W

ANY.RUN is an interactive service which provides full access to the guest system. Information in this report could be distorted by user actions and is provided for user acknowledgement as it is. ANY.RUN does not guarantee maliciousness or safety of the content.
  • MALICIOUS

    • MINER has been detected (SURICATA)

      • .redtail (PID: 38851)
    • Connects to the CnC server

      • .redtail (PID: 38851)
  • SUSPICIOUS

    • Modifies file or directory owner

      • sudo (PID: 38748)
    • Executes commands using command-line interpreter

      • sudo (PID: 38752)
    • Executes the "rm" command to delete files or directories

      • bash (PID: 38753)
      • dash (PID: 38780)
    • Reads /proc/mounts (likely used to find writable filesystems)

      • cat (PID: 38756)
      • .redtail (PID: 38850)
    • Removes file immutable attribute

      • dash (PID: 38780)
    • Connects to the server without a host name

      • wget (PID: 38774)
      • wget (PID: 38843)
    • Uses wget to download content

      • bash (PID: 38753)
    • Potential Corporate Privacy Violation

      • wget (PID: 38843)
      • .redtail (PID: 38851)
    • Checks DMI information (probably VM detection)

      • udevadm (PID: 38867)
      • .redtail (PID: 38850)
    • Modifies Cron jobs

      • dash (PID: 38853)
    • Connects to unusual port

      • .redtail (PID: 38851)
    • Crypto Currency Mining Activity Detected

      • .redtail (PID: 38851)
  • INFO

    No info indicators.
Find more information about signature artifacts and mapping to MITRE ATT&CK™ MATRIX at the full report
No Malware configuration.

TRiD

.sh | Linux/UNIX shell script (100)
No data.
screenshot
All screenshots are available in the full report
All screenshots are available in the full report
Total processes
316
Monitored processes
107
Malicious processes
6
Suspicious processes
1

Behavior graph

Click at the process to see the details
start dash no specs sudo no specs chown no specs chmod no specs sudo no specs bash no specs locale-check no specs bash no specs cat no specs grep no specs mawk no specs bash no specs whoami no specs find no specs dash no specs systemctl no specs systemctl no specs uname no specs touch no specs bash no specs rm no specs wget dd no specs systemctl no specs systemctl no specs chmod no specs dash no specs systemctl no specs systemctl no specs tracker-extract-3 no specs chattr no specs chattr no specs grep no specs mv no specs chattr no specs chattr no specs chattr no specs grep no specs mv no specs chattr no specs grep no specs mv no specs chattr no specs grep no specs mv no specs chattr no specs grep no specs mv no specs chattr no specs grep no specs mv no specs chattr no specs grep no specs mv no specs chattr no specs grep no specs mv no specs chattr no specs chattr no specs grep no specs mv no specs chattr no specs grep no specs mv no specs chattr no specs chattr no specs grep no specs mv no specs chattr no specs chattr no specs grep no specs mv no specs chattr no specs grep no specs mv no specs chattr no specs grep no specs mv no specs rm no specs rm no specs rm no specs rm no specs rm no specs bash no specs grep no specs wget systemctl no specs systemctl no specs mv no specs chmod no specs .redtail no specs #MINER .redtail dash no specs dash no specs crontab no specs dash no specs crontab no specs dash no specs dash no specs dash no specs dash no specs dash no specs .redtail no specs dash no specs dash no specs xtables-nft-multi no specs udevadm no specs

Process information

PID
CMD
Path
Indicators
Parent process
38747/bin/sh -c "sudo chown user /home/user/Desktop/sh\.sh && chmod +x /home/user/Desktop/sh\.sh && DISPLAY=:0 sudo -iu user /home/user/Desktop/sh\.sh "/usr/bin/dashany-guest-agent
User:
user
Integrity Level:
UNKNOWN
Exit code:
0
38748sudo chown user /home/user/Desktop/sh.sh/usr/bin/sudodash
User:
root
Integrity Level:
UNKNOWN
Exit code:
0
38749chown user /home/user/Desktop/sh.sh/usr/bin/chownsudo
User:
root
Integrity Level:
UNKNOWN
Exit code:
0
38750chmod +x /home/user/Desktop/sh.sh/usr/bin/chmoddash
User:
user
Integrity Level:
UNKNOWN
Exit code:
0
38752sudo -iu user /home/user/Desktop/sh.sh/usr/bin/sudodash
User:
root
Integrity Level:
UNKNOWN
Exit code:
0
38753/bin/bash /home/user/Desktop/sh.sh/usr/bin/bashsudo
User:
user
Integrity Level:
UNKNOWN
Exit code:
0
38754/usr/bin/locale-check C.UTF-8/usr/bin/locale-checkbash
User:
user
Integrity Level:
UNKNOWN
Exit code:
0
38755/bin/bash /home/user/Desktop/sh.sh/usr/bin/bashbash
User:
user
Integrity Level:
UNKNOWN
Exit code:
0
38756cat /proc/mounts/usr/bin/catbash
User:
user
Integrity Level:
UNKNOWN
Exit code:
0
38757grep noexec/usr/bin/grepbash
User:
user
Integrity Level:
UNKNOWN
Exit code:
0
Executable files
0
Suspicious files
2
Text files
1
Unknown types
0

Dropped files

PID
Process
Filename
Type
38772dd/home/user/.testfile2 (deleted)binary
MD5:
SHA256:
38774wget/home/user/cleantext
MD5:
SHA256:
38843wget/home/user/x86_64binary
MD5:
SHA256:
Download PCAP, analyze network streams, HTTP content and a lot more at the full report
HTTP(S) requests
18
TCP/UDP connections
28
DNS requests
14
Threats
9

HTTP requests

PID
Process
Method
HTTP Code
IP
URL
CN
Type
Size
Reputation
GET
204
91.189.91.98:80
http://connectivity-check.ubuntu.com/
unknown
whitelisted
GET
204
91.189.91.98:80
http://connectivity-check.ubuntu.com/
unknown
whitelisted
38774
wget
GET
200
45.202.35.190:80
http://45.202.35.190/clean
unknown
unknown
38843
wget
GET
200
45.202.35.190:80
http://45.202.35.190/x86_64
unknown
unknown
GET
200
37.19.194.81:443
https://odrs.gnome.org/1.0/reviews/api/ratings
unknown
binary
1.61 Mb
whitelisted
POST
200
185.125.188.58:443
https://api.snapcraft.io/v2/snaps/refresh
unknown
tss
43.7 Kb
whitelisted
POST
200
185.125.188.55:443
https://api.snapcraft.io/v2/snaps/refresh
unknown
tss
43.7 Kb
whitelisted
POST
200
185.125.188.59:443
https://api.snapcraft.io/v2/snaps/refresh
unknown
whitelisted
POST
200
185.125.188.54:443
https://api.snapcraft.io/v2/snaps/refresh
unknown
tss
43.7 Kb
whitelisted
GET
200
195.181.175.40:443
https://odrs.gnome.org/1.0/reviews/api/ratings
unknown
binary
1.61 Mb
whitelisted
Download PCAP, analyze network streams, HTTP content and a lot more at the full report

Connections

PID
Process
IP
Domain
ASN
CN
Reputation
185.125.190.49:80
connectivity-check.ubuntu.com
Canonical Group Limited
GB
whitelisted
91.189.91.98:80
connectivity-check.ubuntu.com
Canonical Group Limited
US
whitelisted
484
avahi-daemon
224.0.0.251:5353
unknown
195.181.170.18:443
odrs.gnome.org
Datacamp Limited
DE
whitelisted
488
NetworkManager
185.125.190.18:80
connectivity-check.ubuntu.com
Canonical Group Limited
GB
whitelisted
512
snapd
185.125.188.54:443
api.snapcraft.io
Canonical Group Limited
GB
whitelisted
512
snapd
185.125.188.55:443
api.snapcraft.io
Canonical Group Limited
GB
whitelisted
512
snapd
185.125.188.58:443
api.snapcraft.io
Canonical Group Limited
GB
whitelisted
38774
wget
45.202.35.190:80
MULTA-ASN1
MU
unknown
38843
wget
45.202.35.190:80
MULTA-ASN1
MU
unknown

DNS requests

Domain
IP
Reputation
connectivity-check.ubuntu.com
  • 2001:67c:1562::24
  • 2620:2d:4002:1::198
  • 2620:2d:4000:1::96
  • 2001:67c:1562::23
  • 2620:2d:4000:1::2b
  • 2620:2d:4000:1::98
  • 2620:2d:4000:1::2a
  • 2620:2d:4000:1::22
  • 2620:2d:4000:1::97
  • 2620:2d:4002:1::197
  • 2620:2d:4000:1::23
  • 2620:2d:4002:1::196
  • 91.189.91.98
  • 185.125.190.49
  • 185.125.190.18
  • 185.125.190.17
  • 185.125.190.97
  • 185.125.190.98
  • 91.189.91.96
  • 185.125.190.96
  • 91.189.91.48
  • 185.125.190.48
  • 91.189.91.97
  • 91.189.91.49
whitelisted
odrs.gnome.org
  • 195.181.170.18
  • 212.102.56.178
  • 37.19.194.80
  • 169.150.255.184
  • 169.150.255.180
  • 207.211.211.26
  • 195.181.175.40
  • 2a02:6ea0:c700::112
  • 2a02:6ea0:c700::11
  • 2a02:6ea0:c700::107
  • 2a02:6ea0:c700::18
  • 2a02:6ea0:c700::101
  • 2a02:6ea0:c700::19
  • 2a02:6ea0:c700::21
whitelisted
google.com
  • 142.250.185.78
  • 2a00:1450:4001:80e::200e
whitelisted
api.snapcraft.io
  • 185.125.188.54
  • 185.125.188.58
  • 185.125.188.55
  • 185.125.188.59
  • 2620:2d:4000:1010::2e6
  • 2620:2d:4000:1010::6d
  • 2620:2d:4000:1010::42
  • 2620:2d:4000:1010::117
whitelisted
75.100.168.192.in-addr.arpa
unknown
moneroed.net
  • 80.94.92.136
  • 80.94.92.147
  • 80.94.92.135
  • 80.94.92.149
  • 92.118.39.120
  • 80.94.92.146
  • 80.94.92.140
unknown

Threats

PID
Process
Class
Message
38774
wget
Misc Attack
ET DROP Spamhaus DROP Listed Traffic Inbound group 5
38843
wget
Potential Corporate Privacy Violation
ET POLICY Executable and linking format (ELF) file download Over HTTP
38851
.redtail
Misc Attack
ET TOR Known Tor Relay/Router (Not Exit) Node Traffic group 312
38851
.redtail
Misc Attack
ET TOR Known Tor Relay/Router (Not Exit) Node Traffic group 196
38851
.redtail
Potential Corporate Privacy Violation
ET POLICY Cryptocurrency Miner Checkin
38851
.redtail
Misc Attack
ET DROP Spamhaus DROP Listed Traffic Inbound group 8
38851
.redtail
Crypto Currency Mining Activity Detected
MINER [ANY.RUN] CoinMiner Agent CnC Initial Connection
38851
.redtail
Potential Corporate Privacy Violation
ET POLICY Cryptocurrency Miner Checkin
1 ETPRO signatures available at the full report
No debug info