Bokbot
Typically, I analysis these malware sample from the detection standpoint of SYSMON, however the URL that this malware references was taken down within a day. That does not mean we can't still take a look at it.
Thank you to malware-traffic-analysis.net for providing the Bokbot malware sample[1].
Most malware that has a macro will prompt to "Enable Content", and "Enable Editing" as seen below.

Typically, these macro have VBA or VBS with the some kind base64 encoded badness or call to download more badness directly. However, this one does not. Apart from the poetic comments this VBA is very simple.

Let breakdown the steps.

The VBA then calls some kind of custom XML. Within the file structure there is a directory call "customxml"; how fortuitous.

Looking that item1.xml we can now see what text value is assigned to the variable "Si" in the VBA. VBA script call for first item in the second ChildNodes. In this case a URL to CAB file.
VBA

XML

Thank you to malware-traffic-analysis.net for providing the Bokbot malware sample[1].
Most malware that has a macro will prompt to "Enable Content", and "Enable Editing" as seen below.
Typically, these macro have VBA or VBS with the some kind base64 encoded badness or call to download more badness directly. However, this one does not. Apart from the poetic comments this VBA is very simple.
- It calls a custom XML file
- It downloads something from the XML file
- It try to run downloaded something
Let breakdown the steps.
STEP 1 It calls a custom XML file
Microsoft Word documents are just a group of XML files. You can view these files by changing the file extension on the Word document to .zip, and then extracting this file.The VBA then calls some kind of custom XML. Within the file structure there is a directory call "customxml"; how fortuitous.
Looking that item1.xml we can now see what text value is assigned to the variable "Si" in the VBA. VBA script call for first item in the second ChildNodes. In this case a URL to CAB file.
VBA
XML
STEP 2 It downloads something from the XML file
Now that the VBA has a URL it needs to download the badness.
STEP 3 It try to run downloaded something
Once it downloads badness it them attempts to run said badness using the "Shell" function.
It's at this point the attack fails because as mention previously the domain has been taken down.
It's at this point the attack fails because as mention previously the domain has been taken down.
Bibliography:
- ^2020-07-20 - WORD DOCS WITH MACROS PUSHING ICEDID (BOKBOT). https://www.malware-traffic-analysis.net/2020/07/20/index.html
Comments
Post a Comment