03.10.2016 Views

Investigation of Linux.Mirai Trojan family

u97CXm

u97CXm

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

54<br />

54<br />

Number Value Purpose<br />

41 "transfer-encoding:"<br />

42 "chunked"<br />

43 "keep-alive"<br />

44 "connection:"<br />

45 "server: dosarrest"<br />

46 "server: cloudflare-nginx"<br />

47 "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36<br />

(KHTML, like Gecko)<br />

Chrome/51.0.2704.103 Safari/537.36"<br />

48 "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36<br />

(KHTML, like Gecko)<br />

Chrome/52.0.2743.116 Safari/537.36"<br />

49 "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36<br />

(KHTML, like Gecko)<br />

Chrome/51.0.2704.103 Safari/537.36"<br />

50 "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36<br />

(KHTML, like Gecko)<br />

Chrome/52.0.2743.116 Safari/537.36"<br />

51 "Mozilla/5.0 (Macintosh; Intel Mac OS X<br />

10_11_6) AppleWebKit/601.7.7 (KHTML, like<br />

Gecko) Version/9.1.2 Safari/601.7.7"<br />

User Agent<br />

User Agent<br />

User Agent<br />

User Agent<br />

User Agent<br />

All samples <strong>of</strong> the <strong>Trojan</strong> use a function that hides the following strings:<br />

def decode(str_enc):<br />

return "".join([chr(ord(x) ^ 0x22) for x in str_enc])<br />

Once launched, the <strong>Trojan</strong> removes its executable file from the disk, blocks the SIGINT signal with the<br />

help <strong>of</strong> sigprocmask, and sets the parameter SIG_IGN for SIGCHLD and a handler for SIGTRAP.<br />

Then the <strong>Trojan</strong> tries to open the /dev/watchdog file for reading/writing (/dev/misc/watchdog is<br />

also checked) and, if successful, disables the watchdog timer.<br />

ioctl(fd, WDIOC_SETOPTION, WDIOS_DISABLECARD)<br />

The <strong>Trojan</strong> subsequently opens a root folder and sends a request to the address 8.8.8.8:53 to get the IP<br />

address <strong>of</strong> its network traffic.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!