File name:

xm.sh

Full analysis: https://app.any.run/tasks/217f1725-ecb5-44ad-9c15-fd2800be2fd0
Verdict: Malicious activity
Analysis date: April 18, 2025, 18:38:05
OS: Ubuntu 22.04.2
MIME: text/x-shellscript
File info: Bourne-Again shell script, ASCII text executable
MD5:

42CD4166421870164BA885A0A4F4BC71

SHA1:

C55D84E58A912EC377C6751A8942D8A63138C499

SHA256:

AE98C57496DEAECF17B7E2A44F07B41B295A3D5E673FFADD46EDA5674D40F735

SSDEEP:

48:Q8Hq7WXJHFhBty61q15MqB6nWnynw0nrJC96C0wGm1IC0W91jdpqjitsLZpRpg0c:o72btGB6C0wGm1IC0W/j7kiqV7W9

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

    No malicious indicators.
  • SUSPICIOUS

    • Executes commands using command-line interpreter

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

      • bash (PID: 39504)
    • Modifies file or directory owner

      • sudo (PID: 39499)
      • sudo (PID: 39674)
      • sudo (PID: 39604)
      • sudo (PID: 39608)
      • sudo (PID: 39606)
      • sudo (PID: 39685)
    • Reads passwd file

      • dumpe2fs (PID: 39538)
      • dumpe2fs (PID: 39545)
      • curl (PID: 39515)
      • curl (PID: 39562)
      • curl (PID: 39639)
    • Check the Environment Variables Related to System Identification (os-release)

      • curl (PID: 39515)
      • curl (PID: 39562)
      • curl (PID: 39639)
    • Reads /proc/mounts (likely used to find writable filesystems)

      • curl (PID: 39562)
      • curl (PID: 39639)
    • Potential Corporate Privacy Violation

      • curl (PID: 39515)
      • curl (PID: 39562)
    • Modify startup scripts of the system services

      • bash (PID: 39504)
    • Checks kernel release information (uname)

      • bash (PID: 39504)
    • Connects to the server without a host name

      • curl (PID: 39515)
      • curl (PID: 39562)
    • Changes time attribute to hide new files or make changes to the existing one

      • sudo (PID: 39683)
    • Removes file immutable attribute

      • sudo (PID: 39598)
    • Writes to Systemd service files (likely for persistence achievement)

      • systemd (PID: 39616)
    • Creates or rewrites file in the "bin" folder

      • touch (PID: 39684)
  • INFO

    • Checks timezone

      • dumpe2fs (PID: 39538)
      • dumpe2fs (PID: 39545)
      • touch (PID: 39684)
    • Creates file in the temporary folder

      • cat (PID: 39514)
      • curl (PID: 39515)
      • curl (PID: 39639)
      • cat (PID: 39678)
      • curl (PID: 39562)
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
427
Monitored processes
207
Malicious processes
3
Suspicious processes
3

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 rm no specs bash no specs ps no specs grep no specs bash no specs ps no specs grep no specs cat no specs curl snap-seccomp no specs snap-confine no specs dumpe2fs no specs snap-update-ns no specs dumpe2fs no specs systemctl no specs systemctl no specs curl snap-seccomp no specs snap-confine no specs snap-confine no specs systemctl no specs sudo no specs mv no specs sudo no specs mv no specs sudo no specs mv no specs sudo no specs chmod no specs sudo no specs touch no specs sudo no specs chattr no specs sudo no specs chmod no specs sudo no specs echo no specs sudo no specs chown no specs sudo no specs chown no specs sudo no specs chown no specs sudo no specs chattr no specs sudo no specs systemctl no specs systemd no specs snapd-env-generator no specs systemd no specs dash no specs generate no specs dash no specs snapd-generator no specs systemd-bless-boot-generator no specs systemd-cryptsetup-generator no specs systemd-debug-generator no specs systemd-fstab-generator no specs systemd-getty-generator no specs systemd-gpt-auto-generator no specs systemd-hibernate-resume-generator no specs systemd-rc-local-generator no specs systemd-run-generator no specs systemd-system-update-generator no specs systemd-sysv-generator no specs systemd-veritysetup-generator no specs mkdir no specs ls no specs cat no specs uname no specs uname no specs bash no specs curl snap-seccomp no specs snap-confine no specs snap-confine no specs tar no specs make no specs sudo no specs mv no specs sudo no specs kmod no specs rm no specs rm no specs sudo no specs chown no specs sudo no specs mv no specs cat no specs sudo no specs mv no specs sudo no specs chmod no specs sudo no specs touch no specs sudo no specs chown no specs sudo no specs systemctl no specs systemd no specs touch no specs bash no specs bash no specs find no specs grep no specs cat no specs grep no specs mawk no specs bash no specs bash no specs bash no specs find no specs uniq no specs cat no specs grep no specs mawk no specs cat no specs grep no specs grep no specs bash no specs cat no specs grep no specs uniq no specs bash no specs find no specs uniq no specs xargs no specs mawk no specs mawk no specs uniq no specs grep no specs bash no specs bash no specs find no specs bash no specs tr no specs nl no specs sort no specs sort no specs cut no specs bash no specs grep no specs tr no specs nl no specs sort no specs sort no specs cut no specs bash no specs bash no specs tr no specs nl no specs sort no specs sort no specs cut no specs systemd no specs systemd no specs systemd no specs systemd no specs systemd no specs systemd no specs systemd no specs systemd no specs systemd no specs systemd no specs systemd no specs systemd no specs systemd no specs systemd no specs systemd no specs systemd no specs systemd no specs systemd no specs systemd no specs systemd no specs systemd no specs systemd no specs systemd no specs systemd no specs systemd no specs systemd no specs systemd no specs systemd no specs systemd no specs systemd no specs systemd no specs systemd no specs systemd no specs systemd no specs systemd no specs systemd no specs systemd no specs systemd no specs systemd no specs systemd no specs systemd no specs systemd no specs systemd no specs systemd no specs systemd no specs

Process information

PID
CMD
Path
Indicators
Parent process
39498/bin/sh -c "sudo chown user /home/user/Desktop/xm\.sh && chmod +x /home/user/Desktop/xm\.sh && DISPLAY=:0 sudo -iu user /home/user/Desktop/xm\.sh "/usr/bin/dashany-guest-agent
User:
user
Integrity Level:
UNKNOWN
Exit code:
0
39499sudo chown user /home/user/Desktop/xm.sh/usr/bin/sudodash
User:
root
Integrity Level:
UNKNOWN
Exit code:
0
39500chown user /home/user/Desktop/xm.sh/usr/bin/chownsudo
User:
root
Integrity Level:
UNKNOWN
Exit code:
0
39501chmod +x /home/user/Desktop/xm.sh/usr/bin/chmoddash
User:
user
Integrity Level:
UNKNOWN
Exit code:
0
39502sudo -iu user /home/user/Desktop/xm.sh/usr/bin/sudodash
User:
root
Integrity Level:
UNKNOWN
Exit code:
0
39504/bin/bash /home/user/Desktop/xm.sh/usr/bin/bashsudo
User:
user
Integrity Level:
UNKNOWN
Exit code:
0
39505/usr/bin/locale-check C.UTF-8/usr/bin/locale-checkbash
User:
user
Integrity Level:
UNKNOWN
Exit code:
0
39506/bin/bash /home/user/Desktop/xm.sh/usr/bin/bashbash
User:
user
Integrity Level:
UNKNOWN
Exit code:
32512
39507rm -rf /var/games/java /tmp/javs/usr/bin/rmbash
User:
user
Integrity Level:
UNKNOWN
Exit code:
0
39508/bin/bash /home/user/Desktop/xm.sh/usr/bin/bashbash
User:
user
Integrity Level:
UNKNOWN
Exit code:
256
Executable files
0
Suspicious files
0
Text files
4
Unknown types
0

Dropped files

PID
Process
Filename
Type
39514cat/tmp/nvidia-drivice.servicetext
MD5:
SHA256:
39602sudo/etc/ld.so.preloadtext
MD5:
SHA256:
39678cat/tmp/pstext
MD5:
SHA256:
39684touch/usr/bin/pstext
MD5:
SHA256:
Download PCAP, analyze network streams, HTTP content and a lot more at the full report
HTTP(S) requests
19
TCP/UDP connections
11
DNS requests
12
Threats
5

HTTP requests

PID
Process
Method
HTTP Code
IP
URL
CN
Type
Size
Reputation
GET
204
91.189.91.96:80
http://connectivity-check.ubuntu.com/
unknown
whitelisted
GET
204
185.125.190.48:80
http://connectivity-check.ubuntu.com/
unknown
whitelisted
GET
204
185.125.190.97:80
http://connectivity-check.ubuntu.com/
unknown
whitelisted
39515
curl
GET
200
209.141.49.113:80
http://209.141.49.113/tc/cloud
unknown
unknown
39562
curl
GET
200
209.141.49.113:80
http://209.141.49.113/tc/python3.7.3.so
unknown
unknown
39639
curl
GET
200
209.141.49.113:80
http://209.141.49.113/tc/python37.tar
unknown
unknown
GET
200
169.150.255.183:443
https://odrs.gnome.org/1.0/reviews/api/ratings
unknown
binary
1.50 Mb
whitelisted
GET
200
212.102.56.178:443
https://odrs.gnome.org/1.0/reviews/api/ratings
unknown
binary
1.50 Mb
whitelisted
POST
200
185.125.188.55:443
https://api.snapcraft.io/v2/snaps/refresh
unknown
tss
45.5 Kb
whitelisted
POST
200
185.125.188.59:443
https://api.snapcraft.io/api/v1/snaps/auth/sessions
unknown
binary
587 b
whitelisted
Download PCAP, analyze network streams, HTTP content and a lot more at the full report

Connections

PID
Process
IP
Domain
ASN
CN
Reputation
484
avahi-daemon
224.0.0.251:5353
unknown
185.125.190.48:80
connectivity-check.ubuntu.com
Canonical Group Limited
GB
whitelisted
185.125.190.97:80
connectivity-check.ubuntu.com
Canonical Group Limited
GB
whitelisted
91.189.91.96:80
connectivity-check.ubuntu.com
Canonical Group Limited
US
whitelisted
195.181.170.19:443
odrs.gnome.org
Datacamp Limited
DE
whitelisted
195.181.175.40:443
odrs.gnome.org
Datacamp Limited
DE
whitelisted
512
snapd
185.125.188.58:443
api.snapcraft.io
Canonical Group Limited
GB
whitelisted
39515
curl
209.141.49.113:80
PONYNET
US
unknown
39562
curl
209.141.49.113:80
PONYNET
US
unknown
39639
curl
209.141.49.113:80
PONYNET
US
unknown

DNS requests

Domain
IP
Reputation
connectivity-check.ubuntu.com
  • 2620:2d:4002:1::197
  • 2620:2d:4000:1::2b
  • 2001:67c:1562::23
  • 2001:67c:1562::24
  • 2620:2d:4000:1::98
  • 2620:2d:4000:1::96
  • 2620:2d:4000:1::2a
  • 2620:2d:4002:1::198
  • 2620:2d:4000:1::97
  • 2620:2d:4002:1::196
  • 2620:2d:4000:1::23
  • 2620:2d:4000:1::22
  • 91.189.91.96
  • 91.189.91.48
  • 185.125.190.48
  • 185.125.190.97
  • 185.125.190.96
  • 91.189.91.49
  • 185.125.190.18
  • 91.189.91.98
  • 185.125.190.98
  • 91.189.91.97
  • 185.125.190.17
  • 185.125.190.49
whitelisted
odrs.gnome.org
  • 195.181.170.19
  • 169.150.255.180
  • 207.211.211.27
  • 212.102.56.178
  • 169.150.255.183
  • 37.19.194.81
  • 195.181.175.40
  • 2a02:6ea0:c700::11
  • 2a02:6ea0:c700::19
  • 2a02:6ea0:c700::112
  • 2a02:6ea0:c700::21
  • 2a02:6ea0:c700::18
  • 2a02:6ea0:c700::107
  • 2a02:6ea0:c700::101
whitelisted
google.com
  • 142.250.186.142
  • 2a00:1450:4001:82a::200e
whitelisted
api.snapcraft.io
  • 185.125.188.58
  • 185.125.188.55
  • 185.125.188.54
  • 185.125.188.59
  • 2620:2d:4000:1010::6d
  • 2620:2d:4000:1010::117
  • 2620:2d:4000:1010::344
  • 2620:2d:4000:1010::42
whitelisted
6.100.168.192.in-addr.arpa
unknown

Threats

PID
Process
Class
Message
39515
curl
Potentially Bad Traffic
ET HUNTING curl User-Agent to Dotted Quad
39515
curl
Potential Corporate Privacy Violation
ET INFO Executable and linking format (ELF) file download Over HTTP
39562
curl
Potentially Bad Traffic
ET HUNTING curl User-Agent to Dotted Quad
39562
curl
Potential Corporate Privacy Violation
ET INFO Executable and linking format (ELF) file download Over HTTP
39639
curl
Potentially Bad Traffic
ET HUNTING curl User-Agent to Dotted Quad
No debug info