マイライブラリ
マイライブラリ

+ マイライブラリに追加

電話

お問い合わせ履歴

電話(英語)

+7 (495) 789-45-86

Profile

ウイルスライブラリ

サイバー犯罪者に悪用されるテクノロジーを解析することによって、今後の効果的なウイルス防御対策を策定することが可能になります。感染したシステムにおける各マルウェアの挙動およびその防御対策について、もっと詳しく知りたい方は、ぜひこのページをご覧ください。

Linux.Mirai ウイルスライブラリ内:

A family of Linux Trojans. One of its representatives is described below.

SHA1:

  • 7e0e07d19b9c57149e72a7ed266e0c8aa5019a6f

A modified version of Linux.DDoS.87 and Linux.DDoS.89. Its main differences from Linux.DDoS.89 are as follows:

  1. Some samples of the Trojan can now delete themselves.
  2. The Trojan can disable the watchdog timer, which prevents system hangs, to make it impossible to reboot the computer.
  3. The process’s name is changed to a random sequence containing the characters [a-z 0-9].
  4. The configuration structure has been changed.
  5. If a process named “.anime” is found, the Runkiller function not only terminates this process but also deletes the executable file.
  6. Unlike Linux.DDoS.89, this version can execute HTTP Flood attacks.
  7. If the Trojan fails to create a socket and connect to it, the corresponding function searches for the process that owns the socket and kills it.

The Trojan’s configuration looks as follows:

NumberValuePurpose
3listening tun0main output to stdin
4HostCommand and control (C&C) server’s IP address
5PortC&C server’s port
6"https://youtube.com/watch?v=dQw4w9WgXcQ"
7"/proc/" runkiller
8"/exe" runkiller
9" (deleted)"
10"/fd" runkiller
11".anime"runkiller
12"REPORT %s:%s"runkiller
13"HTTPFLOOD"runkiller
14"LOLNOGTFO"runkiller
15"\x58\x4D\x4E\x4E\x43\x50\x46\x22"runkiller
16"zollard"runkiller
17"GETLOCALIP"
18Host
19Port
20"shell"
21"enable"
22"system"
23"sh"
24"/bin/busybox MIRAI"
25"MIRAI: applet not found"
26"ncorrect"
27"/bin/busybox ps"
28"/bin/busybox kill -9 "
29"TSource Engine Query"
30"/etc/resolv.conf"
31"nameserver"
32"Connection: keep-alive"
33"Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8"
34"Accept-Language: en-US,en;q=0.8"
35"Content-Type: application/x-www-form-urlencoded"
36"setCookie('"
37"refresh:"
38"location:"
39"set-cookie:"
40"content-length:"
41"transfer-encoding:"
42"chunked"
43"keep-alive"
44"connection:"
45"server: dosarrest"
46"server: cloudflare-nginx"
47"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36" User Agent
48"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36" User Agent
49"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36" User Agent
50"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36" User Agent
51"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/601.7.7 (KHTML, like Gecko) Version/9.1.2 Safari/601.7.7" User Agent

All samples of the Trojan use a function that hides the following strings:

def decode(str_enc):
  return "".join([chr(ord(x) ^ 0x22) for x in str_enc])

Once launched, the Trojan removes its executable file from the disk, blocks the SIGINT signal with the help of sigprocmask, and sets the parameter SIG_IGN for SIGCHLD and a handler for SIGTRAP.

Then the Trojan tries to open the /dev/watchdog file for reading/writing (/dev/misc/watchdog is also checked) and, if successful, disables the watchdog timer.

ioctl(fd, WDIOC_SETOPTION, WDIOS_DISABLECARD)

The Trojan subsequently opens a root folder and sends a request to the address 8.8.8.8:53 to get the IP address of its network traffic.

Next, the Trojan calculates a function taken from the argv[0] value:

def check(name):
    print name
    a = [ord(x) for x in name]
    sum = (0 - 0x51) & 0xff
    for i in [2,4,6,8,10,12]:
        z =  (~a[i % len(a)] & 0xff)
        sum = (sum + z)&0xff
        #print "%x %x %x" % (z, sum, sum % 9)
    return sum % 9

This function returns a number from 0 to 8 that represents an index in a function array:

off_8055DC0     dd offset bind_socket   ; DATA XREF: main+109o
.rodata:08055DC4                     dd offset sub_80517E0
.rodata:08055DC8                     dd offset sub_8051730
.rodata:08055DCC                     dd offset create_config
.rodata:08055DD0                     dd offset sub_8051760
.rodata:08055DD4                     dd offset sub_80523F0
.rodata:08055DD8                     dd offset strcopy
.rodata:08055DDC                     dd offset runkiller
.rodata:08055DE0                     dd offset sub_804E900

If argv[0] == “./dvrHelper”, a parental process receives the SIGTRAP signal (for which a handler was previously installed). The handler, in turn, modifies the IP address taken from the configuration and the C&C server’s port to which the Trojan will connect.

Then a listening socket is opened at the address 127.0.0.1:48101. If this port is busy with another process, the Trojan runs a function that finds the process and kills it.

The Trojan subsequently generates a name that looks like a random sequence containing the characters [a-z 0-9] and writes it to argv[0]. Using the prctl function, the process’s name is changed to a random one.

Next, the Trojan creates child processes and terminates the parental one. All further steps are performed in a child process—in particular, a structure containing handlers is filled in. Then a function responsible for scanning telnet nodes and a function that terminates the processes of other Trojans are launched. The Trojan then runs a handler for incoming instructions sent from the C&C server. If the Trojan detects that a connection to a local server is being established, it runs a child process to scan vulnerable telnet nodes and terminates the parental process.

The picture below shows a code fragment for Linux.DDoS.87 (left column) and Linux.Mirai (right column).

screen Linux.DDoS.87 #drweb screen Linux.Mirai #drweb

Linux.Mirai ウイルスライブラリ内:

Linux.Mirai.4394
Linux.Mirai.4790
Linux.Mirai.4797
Linux.Mirai.4798
Linux.Mirai.4799
Linux.Mirai.4815
Linux.Mirai.4818
Linux.Mirai.4852
Linux.Mirai.4892
Linux.Mirai.4895
Linux.Mirai.4897
Linux.Mirai.4904
Linux.Mirai.4905
Linux.Mirai.4906
Linux.Mirai.4907
Linux.Mirai.4925
Linux.Mirai.4943
Linux.Mirai.4947
Linux.Mirai.4948
Linux.Mirai.4949
Linux.Mirai.4950
Linux.Mirai.4951
Linux.Mirai.4952
Linux.Mirai.4953
Linux.Mirai.4955
Linux.Mirai.4956
Linux.Mirai.4957
Linux.Mirai.4966
Linux.Mirai.4967
Linux.Mirai.4968
Linux.Mirai.4969
Linux.Mirai.4970
Linux.Mirai.4971
Linux.Mirai.4972
Linux.Mirai.4973
Linux.Mirai.4975
Linux.Mirai.4984
Linux.Mirai.4989
Linux.Mirai.4990
Linux.Mirai.4992
Linux.Mirai.4993
Linux.Mirai.5000
Linux.Mirai.5001
Linux.Mirai.5002
Linux.Mirai.5003
Linux.Mirai.5004
Linux.Mirai.5005
Linux.Mirai.5006
Linux.Mirai.5007
Linux.Mirai.5008

1 2 3 4 5 6 7 8

Android 特有の脆弱性

統計データによると、5つの Android対応ソフトウェアのうち、1つのソフトウェアが脆弱性(「セキュリティホール」)を抱えています。こうした状況下では、サイバー犯罪者はモバイルデバイス上にトロイの木馬を仕掛け、それを操ることができます。

Dr.Web for Androidに含まれるSecurity Auditor が、デバイスのセキュリティ上の問題を検出し、問題および脆弱性に対処するソリューションを提供します。