2019-09-29 14:21:03 +00:00
# Analysis about campaign of unknown phishing group (29-09-2019)
## Table of Contents
* [Malware analysis ](#Malware-analysis )
* [Indicators Of Compromise (IOC) ](#IOC )
* [References MITRE ATT&CK Matrix ](#Ref-MITRE-ATTACK )
* [Links ](#Links )
+ [Original Tweet ](#Original-Tweet )
+ [Link Anyrun ](#Links-Anyrun )
+ [Documents ](#Documents )
## Malware analysis <a name="Malware-analysis"></a>
2019-09-30 09:09:13 +00:00
###### The initial vector is a spear phishing who usurp the brand TNT to incite the victim to download and execute the payload.
![alt text ](https://raw.githubusercontent.com/StrangerealIntel/CyberThreatIntel/master/Unknown/Unknown%20phishing%20group/Images/TNT/mail.png "" )
2019-09-30 22:58:43 +00:00
###### On the JS payload, an array "tankew" is edited by a replace characters of the first layer of obfuscation and execute the JS backdoor by an eval call.
2019-09-30 09:09:13 +00:00
![alt text ](https://raw.githubusercontent.com/StrangerealIntel/CyberThreatIntel/master/Unknown/Unknown%20phishing%20group/Images/TNT/TNT%20layer%201.png "" )
###### The first action perform on the system is to self extract in APPDATA folder as js file and run as another instance.
![alt text ](https://raw.githubusercontent.com/StrangerealIntel/CyberThreatIntel/master/Unknown/Unknown%20phishing%20group/Images/TNT/persistence_pay.png "" )
![alt text ](https://raw.githubusercontent.com/StrangerealIntel/CyberThreatIntel/master/Unknown/Unknown%20phishing%20group/Images/TNT/persistence.png "" )
2019-09-30 22:58:43 +00:00
###### We can see the global configuration of the backdoor, the IP of the C2, the paths for installers, logs..
![alt text ](https://raw.githubusercontent.com/StrangerealIntel/CyberThreatIntel/master/Unknown/Unknown%20phishing%20group/Images/TNT/config.png "" )
###### We can list all the commands that the attacker can perform on the compromised system.
![alt text ](https://raw.githubusercontent.com/StrangerealIntel/CyberThreatIntel/master/Unknown/Unknown%20phishing%20group/Images/TNT/switch.png "" )
2019-09-30 09:09:13 +00:00
2019-09-30 22:58:43 +00:00
###### List of commands (v2.0) :
2019-09-29 22:29:36 +00:00
|Command|Description|
|:-------------:| :------------- |
|disconnect|Disconnect reverse shell|
|reboot|Reboot the computer|
|shutdown|Shutdown the computer|
|execute|Execute commands (cmd + PowerShell)|
|install-sdk|Install sdk tool for grabbing password for browser|
|get-pass|Grabbing the password of specific browser chosen by the attacker|
|get-pass-offline|Grabbing the password off all current browser|
|update|run update the version of the script|
|uninstall|Remove persistence + close process|
|up-n-exec|"Download and execute an executable file (Fixed URL ->""send-to-me"")"|
|bring-log|upload the log of the js backdoor|
|down-n-exec|Download and execute an executable file (Custom URL )|
|filemanager|Kill the backdoor process + download an executable file (Custom URL)|
|rdp|Start rdp module|
|rev-proxy|Start reverse proxy module|
|exit-proxy|kill reverse proxy process|
|keylogger|Start keylogger module|
|offline-keylogger|Launch keylogger module with mod|
|browse-logs|Send the logs do by the backdoor|
|cmd-shell|Execute commands (cmd + PowerShell) [Write the output in a file, read it, delete it]|
|get-processes|Enumerates processes|
|disable-uac|Disable security settings (UAC + Defender)|
|check-eligible|Check existence of the file verified by the attacker|
|force-eligible|Check existence of the file verified by the attacker + elevated rights|
|elevate|Check elevated rights + runas for elevated the rights|
|if-elevate|Check elevated rights|
|kill-process|Kill a specific process (by taskkill)|
|Sleep|Hibernate process via a duration chosen by the attacker|
2019-09-30 22:58:43 +00:00
###### On the function which crawl the system informations, we observe an number of version (2.0).
![alt text ](https://raw.githubusercontent.com/StrangerealIntel/CyberThreatIntel/master/Unknown/Unknown%20phishing%20group/Images/TNT/infos.png "" )
###### This matching with another sample spotted on the cofense analysis. This report that new variant in Javascript (latest VBS) of Houdini Worm targeting commercial banking customers with campaigns containing either URLs, .zip, or .mht files. However, the version number is not indicated, we need to analysis it.
###### On the first layer on the payload, we observe that this uses a switch case structure for less the detection of the AV.
![alt text ](https://raw.githubusercontent.com/StrangerealIntel/CyberThreatIntel/master/Unknown/Unknown%20phishing%20group/Images/Bank/LAY11.png "" )
![alt text ](https://raw.githubusercontent.com/StrangerealIntel/CyberThreatIntel/master/Unknown/Unknown%20phishing%20group/Images/Bank/LAY12.png "" )
###### We can confirm that the version 1.2 of the js version of Hworm and compare the improvements between the two versions. The main improvement is the fact that the payload have multiple PE in the script and this avoid to have additionnal online storage for distribute the tool if needed.
![alt text ](https://raw.githubusercontent.com/StrangerealIntel/CyberThreatIntel/master/Unknown/Unknown%20phishing%20group/Images/Bank/config.png "" )
![alt text ](https://raw.githubusercontent.com/StrangerealIntel/CyberThreatIntel/master/Unknown/Unknown%20phishing%20group/Images/Bank/infos.png "" )
2019-09-29 22:29:36 +00:00
2019-09-30 22:58:43 +00:00
###### List of commands (v1.2) :
2019-09-29 22:29:36 +00:00
|Command|Description|
|:-------------:| :------------- |
|disconnect|Disconnect reverse shell|
|reboot|Reboot the computer|
|shutdown|Shutdown the computer|
|execute|Execute commands (cmd + PowerShell)|
|get-pass|Grabbing the password of specific browser chosen by the attacker|
|get-pass-offline|Grabbing the password off all current browser|
|update|run update the version of the script|
|uninstall|Remove persistence + close process|
|up-n-exec|Download and execute an executable file (Fixed URL ->"send-to-me")|
|bring-log|upload the log of the js backdoor|
|down-n-exec|Download and execute an executable file (Custom URL )|
|filemanager|Kill the backdoor process + download an executable file (Custom URL)|
|rdp|Start rdp module|
|keylogger|Start keylogger module|
|offline-keylogger|Launch keylogger module with mod|
|browse-logs|Send the logs do by the backdoor|
|cmd-shell|Execute commands (cmd + PowerShell) [Write the output in a file, read it, delete it]|
|get-processes|Enumerates processes|
|disable-uac|Disable security settings (UAC + Defender)|
|elevate|Check elevated rights + runas for elevated the rights|
|if-elevate|Check elevated rights|
|kill-process|Kill a specific process (by taskkill)|
|Sleep|Hibernate process via a duration chosen by the attacker|
2019-09-30 22:58:43 +00:00
###### A new sample have been spotted (17 September), this gives a period of 2 months between the two versions. The group seems focus the phishing campaign on the general common topics (Bank, suppliers, service provider...), not specific sectors and only as financial goals.
2019-09-29 14:21:03 +00:00
## Cyber kill chain <a name="Cyber-kill-chain"></a>
###### The process graph resume the cyber kill chain used by the attacker.
2019-09-30 22:58:43 +00:00
![alt text ](https://raw.githubusercontent.com/StrangerealIntel/CyberThreatIntel/master/Unknown/Unknown%20phishing%20group/Images/TNT/Cyber.PNG "" )
2019-09-29 14:21:03 +00:00
## References MITRE ATT&CK Matrix <a name="Ref-MITRE-ATTACK"></a>
###### List of all the references with MITRE ATT&CK Matrix
|Enterprise tactics|Technics used|Ref URL|
| :---------------: |:-------------| :------------- |
2019-09-30 22:58:43 +00:00
|Execution|Scripting< br > Execution through API|https://attack.mitre.org/techniques/T1064/< br > https://attack.mitre.org/techniques/T1106/|
|Persistence|Registry Run Keys / Startup Folder|https://attack.mitre.org/techniques/T1060/|
|Defense Evasion|Scripting|https://attack.mitre.org/techniques/T1064/|
|Discovery|Query Registry< br > System Information Discovery|https://attack.mitre.org/techniques/T1012/< br > https://attack.mitre.org/techniques/T1082/|
2019-09-29 14:21:03 +00:00
## Indicators Of Compromise (IOC) <a name="IOC"></a>
###### List of all the Indicators Of Compromise (IOC)
| Indicator | Description|
| ------------- |:-------------:|
2019-09-30 22:58:43 +00:00
|TNT Collection Request BH7 297745.js|5e3ddf08616d4d0e7ba2a42af8e51e30e184eccb931ce36515cf5b24f3eb538d|
|BANK DETAILS CONFIRMATION_PDF.js|2f3541dd71b6c3f2cc4ef9f3a6dd36df1749ac4c062dfca7d955ac93bad8f53f|
|vvvv.js|09e9c9b722e63fa6f2d5b3e2949fb0a4d0cc42183b8e1c3030ecd46691a866b4|
|kl-plugin.exe|272e64291748fa8be01109faa46c0ea919bf4baf4924177ea6ac2ee0574f1c1a|
|bpvpl.tar.gz|27bd6db946dd85de546f6fb9b80658e46ecd327136773c949cd212ddfd52aa4e|
|mapv.tar.gz|bfcde7f66c042845af095b5600d1e7a383926e2836624f7eb1690b078e9cfe28|
|rd-plugin.exe|d65a3033e440575a7d32f4399176e0cdb1b7e4efa108452fcdde658e90722653|
|2813.noip.me|Domain C2|
|tcoolsoul.com|Domain C2|
|ip-api.com|Domain requested|
|brothersjoy.nl|Domain requested|
|doughnut-snack.live|Domain requested|
|hxxp[:]//pluginsrv1.duckdns.org:7757/is-ready|HTTP/HTTPS requests|
|hxxp[:]//ip-api.com/json/|HTTP/HTTPS requests|
|hxxp[:]//tcoolsoul.com:1765/is-ready|HTTP/HTTPS requests|
|hxxp[:]//doughnut-snack.live/mapv.tar.gz|HTTP/HTTPS requests|
|hxxp[:]//doughnut-snack.live/klplu.tar.gz|HTTP/HTTPS requests|
|hxxp[:]//doughnut-snack.live/bpvpl.tar.gz|HTTP/HTTPS requests|
|hxxp[:]//doughnut-snack.live/rdplu1.tar.gz|HTTP/HTTPS requests|
|hxxp[:]//185.247.228.159:1765/open-rdp|1280x720|HTTP/HTTPS requests|
|79.134.225.100|IP requested|
|192.169.69.25|IP requested|
|172.245.14.10|IP requested|
|185.194.141.58|IP C2|
|185.247.228.159|IP C2|
###### This can be exported as JSON format [Export in JSON](https://raw.githubusercontent.com/StrangerealIntel/CyberThreatIntel/master/Unknown/Unknown%20phishing%20group/IOC/IOC_01-10-19.json)
2019-09-29 14:21:03 +00:00
## Links <a name="Links"></a>
###### Original tweet: [https://twitter.com/dvk01uk/status/1176483058058440705](https://twitter.com/dvk01uk/status/1176483058058440705) <a name="Original-Tweet"></a>
###### Links Anyrun: <a name="Links-Anyrun"></a>
2019-09-29 22:29:36 +00:00
* [TNT Collection Request BH7 297745.js ](https://app.any.run/tasks/62990e45-e920-48b0-a3b3-9ce2e83f99dc )
* [BANK DETAILS CONFIRMATION_PDF.js ](https://app.any.run/tasks/ec7c360a-5cd0-4cfc-b123-2f43fda77423 )
* [vvvv.js ](https://app.any.run/tasks/26647b54-0c71-4461-adee-765e926ab5fc )
2019-09-29 14:21:03 +00:00
###### Documents: <a name="Documents"></a>
2019-09-29 22:29:36 +00:00
* [Houdini Worm Transformed in New Phishing Attack - June 2019 ](https://cofense.com/houdini-worm-transformed-new-phishing-attack/ )
2019-09-30 22:58:43 +00:00
* [Houdini’ s Magic Reappearance - October 2016 ](https://unit42.paloaltonetworks.com/unit42-houdinis-magic-reappearance/ )